Queries zones in a region that supports Network Load Balancer (NLB).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeZones

The operation that you want to perform. Set the value to DescribeZones.

ServiceCode String No nlb

The service code. Set the value to nlb.

RegionId String No cn-hangzhou

The ID of the region to which the zone belongs. You can call the DescribeRegions operation to query the most recent region list.

AcceptLanguage String No zh-CN

The supported natural language. Valid values:

  • zh-CN: Chinese
  • en-US (default): English
  • ja: Japanese
ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must ensure that it is unique among all requests. ClientToken can contain only ASCII characters.

Note If you do not set this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.

Response parameters

Parameter Type Example Description
RequestId String CEF72CEB-54B6-4AE8-B225-F876FF7BA984

The ID of the request.

Zones Array of Zone

The list of zones.

LocalName String Hangzhou Zone G

The name of the zone.

ZoneId String cn-hangzhou-g

The ID of the zone.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeZones
&ServiceCode=nlb
&RegionId=cn-hangzhou
&AcceptLanguage=zh-CN
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeZonesResponse>
    <RequestId>CEF72CEB-54B6-4AE8-B225-F876FF7BA984</RequestId>
    <Zones>
        <LocalName>Hangzhou Zone G</LocalName>
        <ZoneId>cn-hangzhou-g</ZoneId>
    </Zones>
</DescribeZonesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
  "Zones" : [ {
    "LocalName" : "Hangzhou Zone G"
    "ZoneId" : "cn-hangzhou-g"
  } ]
}

Error codes

For a list of error codes, visit the API Error Center.