Queries zones in a specified region.

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.

RegionId String Yes cn-hangzhou

The ID of the region where zones are queried. You can call the DescribeRegions operation to query region IDs.

Response parameters

Parameter Type Example Description
RequestId String 611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F

The ID of the request.

Zones Array of Zone

The list of zones.

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

<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-d</ZoneId>
                        <LocalName>Hangzhou Zone D</LocalName>
                </Zone>
                <Zone>
                        <ZoneId>cn-hangzhou-e</ZoneId>
                        <LocalName>Hangzhou Zone E</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>
        </Zones>
</DescribeZonesResponse>

JSON format

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

Error codes

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