Queries the zones in a region.

Make the API call

You can use OpenAPI Explorer to make API calls, search for API calls, perform debugging, and generate SDK example code.

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 which the zone belongs. To query the region ID, call DescribeRegions.

Response parameters

Parameter Type Example value Description
Zones Array

A list of zones.

Zone

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


http(s)://vpc.aliyuncs.com/? Action=DescribeZones
&RegionId=cn-hangzhou
&<CommonParameters>

Response example

XML format

<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"
			}
		]
	}
}

Errors

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