<commit_before>---
layout: "sakuracloud"
page_title: "SakuraCloud: sakuracloud_archive"
subcategory: "Storage"
description: |-
  Get information about an existing Archive.
---

# Data Source: sakuracloud_archive

Get information about an existing Archive.

## Example Usage

```hcl
data "sakuracloud_archive" "foobar" {
  os_type = "centos8"
}
```
## Argument Reference

* `filter` - (Optional) One or more values used for filtering, as defined below.
* `os_type` - (Optional) The criteria used to filter SakuraCloud archives. This must be one of following:  
`centos`/`centos8`/`centos7`/`centos6`/`ubuntu`/`ubuntu1804`/`ubuntu1604`/`debian`/`debian10`/`debian9`/`coreos`/`rancheros`/`k3os`/`kusanagi`/`freebsd`/`windows2016`/`windows2016-rds`/`windows2016-rds-office`/`windows2016-sql-web`/`windows2016-sql-standard`/`windows2016-sql-standard-all`/`windows2016-sql2017-standard`/`windows2016-sql2017-enterprise`/`windows2016-sql2017-standard-all`/`windows2019`/`windows2019-rds`/`windows2019-rds-office2016`/`windows2019-rds-office2019`/`windows2019-sql2017-web`/`windows2019-sql2019-web`/`windows2019-sql2017-standard`/`windows2019-sql2019-standard`/`windows2019-sql2017-enterprise`/`windows2019-sql2019-enterprise`/`windows2019-sql2017-standard-all`/`windows2019-sql2019-standard-all`.
* `zone` - (Optional) The name of zone that the Archive is in (e.g. `is1a`, `tk1a`).

---

A `filter` block supports the following:

* `condition` - (Optional) One or more name/values pairs used for filtering. There are several valid keys, for a full reference, check out finding section in the [SakuraCloud API reference](https://developer.sakura.ad.jp/cloud/api/1.1/).<commit_msg>Format os_type values<commit_after>---
layout: "sakuracloud"
page_title: "SakuraCloud: sakuracloud_archive"
subcategory: "Storage"
description: |-
  Get information about an existing Archive.
---

# Data Source: sakuracloud_archive

Get information about an existing Archive.

## Example Usage

```hcl
data "sakuracloud_archive" "foobar" {
  os_type = "centos8"
}
```
## Argument Reference

* `filter` - (Optional) One or more values used for filtering, as defined below.
* `os_type` - (Optional) The criteria used to filter SakuraCloud archives. This must be one of following:  
  - **CentOS**: [`centos`/`centos8`/`centos7`/`centos6`]  
  - **Ubuntu**: [`ubuntu`/`ubuntu1804`/`ubuntu1604`]  
  - **Debian**: [`debian`/`debian10`/`debian9`]
  - **CoreOS/ContainerLinux**: `coreos`  
  - **RancherOS**: `rancheros`  
  - **k3OS**: `k3os`  
  - **FreeBSD**: `freebsd`  
  - **Kusanagi**: `kusanagi`
  - **Windows2016**: [`windows2016`/`windows2016-rds`/`windows2016-rds-office`]
  - **Windows2016+SQLServer**:  [`windows2016-sql-web`/`windows2016-sql-standard`/`windows2016-sql-standard-all`]  
  - **Windows2016+SQLServer2017**: [`windows2016-sql2017-standard`/`windows2016-sql2017-enterprise`/`windows2016-sql2017-standard-all`]  
  - **Windows2019**: [`windows2019`/`windows2019-rds`/`windows2019-rds-office2016`/`windows2019-rds-office2019`]  
  - **Windows2019+SQLServer2017**: [`windows2019-sql2017-web`/`windows2019-sql2017-standard`/`windows2019-sql2017-enterprise`/`windows2019-sql2017-standard-all`]  
  - **Windows2019+SQLServer2019**: [`windows2019-sql2019-web`/`windows2019-sql2019-standard`/`windows2019-sql2019-enterprise`/`windows2019-sql2019-standard-all`]  
* `zone` - (Optional) The name of zone that the Archive is in (e.g. `is1a`, `tk1a`).

---

A `filter` block supports the following:

* `condition` - (Optional) One or more name/values pairs used for filtering. There are several valid keys, for a full reference, check out finding section in the [SakuraCloud API reference](https://developer.sakura.ad.jp/cloud/api/1.1/).
{'fraction_non_alphanumeric': 0.16330373957492603, 'fraction_numerical': 0.09389292440139897, 'mean_word_length': 5.217391304347826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1973003', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1296, 'n_words': 248}