Queries zones in a region.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID of the zone. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
| ZoneType | string | No | The zone type. Default value: AvailabilityZone. | AvailabilityZone |
| AcceptLanguage | string | No | The language used in the LocalName parameter. Valid values:
| zh-cn |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "6FEA0CF3-D3B9-43E5-A304-D217037876A8",
"Zones": {
"Zone": [
{
"ZoneId": "cn-hangzhou-b",
"LocalName": "Hangzhou Zone B",
"ZoneType": "AvailabilityZone"
}
]
}
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 404 | InvalidRegionId.NotFound | The 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.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-03-12 | API Description Update. The Error code has changed | View Change Details |
