DescribeZones

1. API Description

This API is used to query availability zones available.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter Name
Required
Type
Description

zoneIds

No

Array of String

List of availability zone IDs.

3. Output Parameters

Parameter Name
Type
Description

zoneSet

Information on availability zones.

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.。

4. Code Example

Query whether zones of asia-east-1a and asia-south-1a available.

POST /api/v2/zec HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: DescribeZones
<Common Request Params>

Request:
{
  "zoneIds": [
    "asia-east-1a",
    "asia-south-1a"
  ]
}

Response:
{
  "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
  "response": {
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "zoneSet": [
      {
        "zoneId": "asia-east-1a",
        "zoneName": "asia-east-1a",
        "supportSecurityGroup": true
      },
      {
        "zoneId": "asia-south-1a",
        "zoneName": "asia-south-1a",
        "supportSecurityGroup": true
      }
    ]
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

No error codes related to the API business logic. For other error codes, see Common Error Codes.​

Last updated