• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Cinder V3 Interfaces
  5. Volumes
  6. List Availability Zones

List Availability Zones

Function Description

This interface is used to query availability zones (AZs).

Interface Format

Method

URI

Description

GET

/v3/{project_id}/os-availability-zone

This interface is used to query availability zones (AZs).

Restrictions

Expanded Interface

Request Parameter

Response Parameter

Parameter

Type

Mandatory

Remarks

availabilityZoneInfo

List(Dict)

Yes

AZ information

availabilityZoneInfo parameters

Parameter

Type

Mandatory

Remarks

zoneState

Dict

Yes

AZ status

hosts

List

Yes

The value of this field is null.

zoneName

String

Yes

AZ name

zoneState parameters

Parameter

Type

Mandatory

Remarks

available

Bool

Yes

AZ status

Request Example

GET https://volume.localdomain.com:8776/v3/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone

Response Example

{
"availabilityZoneInfo": [{
"zoneState": {
"available": true
},
"hosts": null,
"zoneName": "az1.dc1"
},
{
"zoneState": {
"available": true
},
"hosts": null,
"zoneName": "vmware.az1"
}]
}

Error Code

See section Processing Return Code.