---
title: "openstack_compute_availability_zones_v2.md"
description: ""
sidebar_position: 1
---

# openstack\_compute\_availability\_zones\_v2

:::info

Эта инструкция — копия официальной документации OpenStack Terraform-провайдера в [Terraform Registry](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs).

:::

Use this data source to get a list of availability zones from OpenStack

## Example Usage \{#example-usage}

```hcl
data "openstack_compute_availability_zones_v2" "zones" {}
```

## Argument Reference \{#argument-reference}

* `region` - (Optional) The `region` to fetch availability zones from, defaults to the provider's `region`
* `state` - (Optional) The `state` of the availability zones to match, default ("available").

## Attributes Reference \{#attributes-reference}

`id` is set to hash of the returned zone list. In addition, the following attributes
are exported:

* `names` - The names of the availability zones, ordered alphanumerically, that match the queried `state`
