All Products
Search
Document Center

Virtual Private Cloud:DescribeZones

Last Updated:Dec 06, 2023

Queries zones in a specified region.

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
ZoneTypestringNo

The type of the zones to be queried. Default value: AvailabilityZone. This value indicates Alibaba Cloud zones.

AvailabilityZone
AcceptLanguagestringNo

The language used in the LocalName parameter to display the zone names. Valid values:

  • zh-cn: Chinese
  • en-us: English
  • ja: Japanese
zh-cn

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

6FEA0CF3-D3B9-43E5-A304-D217037876A8
Zonesobject []

The zones that are returned.

ZoneIdstring

The ID of the zone.

cn-hangzhou-b
LocalNamestring

The name of the zone.

ZoneTypestring

The type of the zones to be queried. Default value: AvailabilityZone. This value indicates Alibaba Cloud zones.

AvailabilityZone

Examples

Sample success responses

JSONformat

{
  "RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
  "Zones": {
    "Zone": [
      {
        "ZoneId": "cn-hangzhou-b",
        "LocalName": "",
        "ZoneType": "AvailabilityZone"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
404InvalidRegionId.NotFoundThe RegionId provided does not exist in our records.The RegionId parameter is set to an invalid value. Specify a valid value and try again.

For a list of error codes, visit the Service error codes.