• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. AZ
  6. Querying AZs

Querying AZs

Function Description

This interface is used to query AZs.

URI

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

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

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

Response

Response parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

availabilityZoneInfo

List(Dict)

Specifies the AZ information.

Table 3 AvailabilityZoneInfo parameter information

Parameter

Type

Description

zoneState

Dict

Specifies the AZ status.

hosts

List

The parameter is set to null.

zoneName

String

Specifies the AZ name.

Table 4 zoneState parameter information

Parameter

Type

Description

available

Bool

Specifies the AZ status.

Examples

  • Example request
    GET /v2/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone
    GET /v2.1/9c53a566cb3443ab910cf0daebca90c4/os-availability-zone
  • Example response
    {
    "availabilityZoneInfo": [{
    "zoneState": {
    "available": true
    },
    "hosts": null,
    "zoneName": "az1.dc1"
    },
    {
    "zoneState": {
    "available": true
    },
    "hosts": null,
    "zoneName": "vmware.az1"
    }]
    }

Returned Values

See General Request Returned Values.