Queries zones in a specified region.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeZones |
The operation that you want to perform. Set the value to DescribeZones. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where you want to query zones. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F |
The ID of the request. |
Zones | Array of Zone |
The zones that are returned. |
|
Zone | |||
LocalName | String | Hangzhou Zone B |
The name of the zone. |
ZoneId | String | cn-hangzhou-b |
The ID of the zone. |
Examples
Sample requests
https://[Endpoint]/?Action=DescribeZones
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeZonesResponse>
<RequestId>6FEA0CF3-D3B9-43E5-A304-D217037876A8</RequestId>
<Zones>
<Zone>
<ZoneId>cn-hangzhou-b</ZoneId>
<LocalName>Hangzhou Zone B</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-f</ZoneId>
<LocalName>Hangzhou Zone F</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-g</ZoneId>
<LocalName>Hangzhou Zone G</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-h</ZoneId>
<LocalName>Hangzhou Zone H</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-i</ZoneId>
<LocalName>Hangzhou Zone I</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-j</ZoneId>
<LocalName>Hangzhou Zone J</LocalName>
</Zone>
<Zone>
<ZoneId>cn-hangzhou-k</ZoneId>
<LocalName>Hangzhou Zone K</LocalName>
</Zone>
</Zones>
</DescribeZonesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
"Zones" : {
"Zone" : [ {
"ZoneId" : "cn-hangzhou-b",
"LocalName": "Hangzhou Zone B"
}, {
"ZoneId" : "cn-hangzhou-f",
"LocalName": "Hangzhou Zone F"
}, {
"ZoneId" : "cn-hangzhou-g",
"LocalName": "Hangzhou Zone G"
}, {
"ZoneId" : "cn-hangzhou-h",
"LocalName": "Hangzhou Zone H"
}, {
"ZoneId" : "cn-hangzhou-i",
"LocalName": "Hangzhou Zone I"
}, {
"ZoneId" : "cn-hangzhou-j",
"LocalName": "Hangzhou Zone J"
}, {
"ZoneId" : "cn-hangzhou-k",
"LocalName": "Hangzhou Zone K"
} ]
}
}
Error codes
For a list of error codes, visit the API Error Center.