• Elastic Volume Service

evs
  1. Help Center
  2. Elastic Volume Service
  3. API Reference
  4. OpenStack Cinder API v3
  5. EVS Disk
  6. Querying Information About All AZs

Querying Information About All AZs

Function

This API is used to query information about all AZs.

URI

  • URI format

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

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    availabilityZoneInfo

    list

    Specifies the queried AZs.

    zoneState

    map<string, string>

    Specifies the AZ status.

    zoneName

    string

    Specifies the AZ name.

    available

    boolean

    Specifies whether the AZ is available. The value can be true (available) or false (unavailable).

    message

    string

    Specifies the returned error message when an error occurs.

    code

    string

    Specifies the returned error code when an error occurs. For details about the code, see the following returned values.

  • Example response
    {
        "availabilityZoneInfo": [
            {
                "zoneState": {
                    "available": true
                }, 
                "zoneName": "az1.dc1"
            }
        ]
    }

    or

    {
        "error": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

Returned Values

  • Normal

    200

Error Codes

For details, see Error Codes.