• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Availability Zones
  6. Querying Availability Zones

Querying Availability Zones

Function Description

This interface is used to query AZs.

URI

  • URI format

    GET /v2/{tenant_id}/os-availability-zone

    GET /v2.1/{tenant_id}/os-availability-zone

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

Response

Parameter

Type

Mandatory

Description

availabilityZoneInfo

List(Dict)

Yes

Specifies the AZ information.

Table 1 AvailabilityZoneInfo parameter information

Parameter

Type

Mandatory

Description

zoneState

Dict

Yes

Specifies the AZ status.

hosts

List

Yes

The parameter is set to null.

zoneName

String

Yes

Specifies the AZ name.

Table 2 zoneState parameter information

Parameter

Type

Mandatory

Description

available

Bool

Yes

Specifies the AZ status.

Request Example

GET /v2/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone

GET /v2.1/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone

Response Example

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

Returned Values

See General Request Returned Values.