Queries one or more zones in a region.

Debug

By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DescribeZones

The name of this action. Value: 

DescribeZones

RegionId String Yes cn-hangzhou

The ID of the region.

To query the region ID, call DescribeRegions.

Response parameters

Parameter Type Example value Description
Zones N/A N/A

A list of zones.

 └LocalName String China Hangzhou Zone B

The name of the zone.

 └ZoneId String cn-hangzhou-b

The ID of the zone.

RequestId String 6FEA0CF3-D3B9-43E5-A304-D217037876A8

The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?RegionId=cn-hangzhou
&<CommonParameters>
Response example

XML format

<?xml version="1.0" encoding="UTF-8" ?>
<DescribeZonesResponse>
<RequestId>6FEA0CF3-D3B9-43E5-A304-D217037876A8</RequestId>
	<Zones>
		<Zone>
			<ZoneId>cn-hangzhou-b</ZoneId>
			<LocalName>China Hangzhou Zone B</LocalName>
		</Zone>
		<Zone>
			<ZoneId>cn-hangzhou-d</ZoneId>
			<LocalName>China Hangzhou Zone D</LocalName>
		</Zone>
		<Zone>
			<ZoneId>cn-hangzhou-e</ZoneId>
			<LocalName>China Hangzhou Zone E</LocalName>
		</Zone>
		<Zone>
			<ZoneId>cn-hangzhou-f</ZoneId>
			<LocalName>China Hangzhou Zone F</LocalName>
		</Zone>
		<Zone>
			<ZoneId>cn-hangzhou-g</ZoneId>
			<LocalName>China Hangzhou Zone G</LocalName>
		</Zone>
		<Zone>
			<ZoneId>cn-hangzhou-h</ZoneId>
			<LocalName>China Hangzhou Zone H</LocalName>
		</Zone>
	</Zones>
<DescribeZonesResponse>

JSON format

{
	"RequestId":"6FEA0CF3-D3B9-43E5-A304-D217037876A8",
	"Zones":{
		"Zone":[
			{
				"ZoneId":"cn-hangzhou-b",
				"LocalName":"China Hangzhou Zone B"
			},
			{
				"ZoneId":"cn-hangzhou-d",
				"LocalName":"China Hangzhou Zone D"
			},
			{
				"ZoneId":"cn-hangzhou-e",
				"LocalName":"China Hangzhou Zone E"
			},
			{
				"ZoneId":"cn-hangzhou-f",
				"LocalName":"China Hangzhou Zone F"
			},
			{
				"ZoneId":"cn-hangzhou-g",
				"LocalName":"China Hangzhou Zone G"
			},
			{
				"ZoneId":"cn-hangzhou-h",
				"LocalName":"China Hangzhou Zone H"
			}
		]
	}
}

Error codes

See common error codes