DescribeZones

1. API Description

This API is used to query zones available.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

zoneIds

No

Array of String

List of zone IDs.

3. Output Parameters

Parameter NameTypeDescription

zoneSet

Array of ZoneInfo

The list of zones available.

requestId

String

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

4. Code Example

Query zones available.

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

Request:
{
  "zoneIds": [
    "FRA-A",
    "SIN-E"
  ]
}

Response:
{
  "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
  "response": {
    "requestId": "T6883FCD0-3E7D-44EA-A517-A421A52A27F4",
    "zoneSet": [
      {
        "zoneId": "FRA-A",
        "zoneName": "Frankfurt"
      },
      {
        "zoneId": "SIN-E",
        "zoneName": "Singapore"
      }
    ]
  }
}

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