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

acceptLanguage

No

String

The languages of zones available. The optional values are as follows:

  • zh-CN: Chinese

  • en-US: English

Default value: en-US.

3. Output Parameters

Parameter NameTypeDescription

requestId

String

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

zoneSet

Array of Zone

The list of zones available.

4. Code Example

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

Request:
{}

Response:
{
  "requestId": "TBD9EB7E4-3982-43F4-8479-7E963997BC85",
  "response": {  
    "requestId": "TBD9EB7E4-3982-43F4-8479-7E963997BC85",
    "zoneSet": [
        {
            "zoneId":"HKG-B",
            "zoneName":"HKG Zone B",
            "cityName":"Hong Kong",
            "areaName":"Asia Pacific"
        }
    ]
  }
} 

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