Queries the list of active zones based on parameters such as region ID and billing method.
Operation description
DescribeZones only queries the list of zones provided by Alibaba Cloud and returns limited inventory information. To query the instance types and disk categories available for purchase in a specific zone, use DescribeAvailableResource.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region where the zones are located. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| Verbose |
boolean |
No |
Specifies whether to display detailed information.
Default value: true. |
false |
| InstanceChargeType |
string |
No |
The billing method supported by resources in the active zone. For more information, see Billing overview. Valid values:
Default value: PostPaid. |
PostPaid |
| SpotStrategy |
string |
No |
The bidding policy for pay-as-you-go instances. You can specify this parameter when
Default value: NoSpot. |
NoSpot |
| AcceptLanguage |
string |
No |
The natural language that is used to filter response results. For more information, see RFC 7231. Valid values:
Default value: zh-CN. Valid values:
|
zh-CN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Zones |
object |
||
| Zone |
array<object> |
The collection of zones and the supported resource information in each zone. |
|
|
array<object> |
|||
| ZoneId |
string |
The ID of the zone. |
cn-hangzhou-g |
| ZoneType |
string |
The type of the zone. Valid values:
|
AvailabilityZone |
| LocalName |
string |
The name of the zone in the local language. |
华东 1 可用区 G |
| AvailableResources |
object |
||
| ResourcesInfo |
array<object> |
Details about the resources that can be created in the zone. |
|
|
array<object> |
|||
| IoOptimized |
boolean |
Indicates whether the instance is I/O optimized. |
true |
| SystemDiskCategories |
object |
||
| supportedSystemDiskCategory |
array |
The categories of system disks that can be created. |
|
|
string |
The category of system disks that can be created. Valid values:
|
cloud_essd |
|
| InstanceGenerations |
object |
||
| supportedInstanceGeneration |
array |
The supported generations of instance families. |
|
|
string |
The supported generation of instance families. |
ecs-6 |
|
| DataDiskCategories |
object |
||
| supportedDataDiskCategory |
array |
The categories of data disks that can be created. |
|
|
string |
The category of data disks that can be created. Valid values:
|
cloud_essd |
|
| InstanceTypes |
object |
||
| supportedInstanceType |
array |
The supported instance types. |
|
|
string |
The instance type of I/O optimized instances of different network types that can be created in the zone. |
ecs.g5.large |
|
| InstanceTypeFamilies |
object |
||
| supportedInstanceTypeFamily |
array |
The supported instance families. |
|
|
string |
The supported instance family. |
ecs.r7t |
|
| NetworkTypes |
object |
||
| supportedNetworkCategory |
array |
The supported network types. |
|
|
string |
The supported network type. Valid values:
|
vpc |
|
| AvailableResourceCreation |
object |
||
| ResourceTypes |
array |
The types of resources that can be created. Valid values:
|
|
|
string |
The type of resources that can be created. Valid values:
|
DedicatedHost |
|
| DedicatedHostGenerations |
object |
||
| DedicatedHostGeneration |
array |
The supported generations of dedicated hosts. |
|
|
string |
The supported generation of dedicated hosts. |
ddh-6 |
|
| AvailableInstanceTypes |
object |
||
| InstanceTypes |
array |
The supported instance types. |
|
|
string |
The supported instance type. |
ecs.g6.xlarge |
|
| AvailableDiskCategories |
object |
||
| DiskCategories |
array |
The categories of cloud disks that can be created. Valid values:
|
|
|
string |
The category of cloud disks that can be created. Valid values:
|
cloud |
|
| AvailableDedicatedHostTypes |
object |
||
| DedicatedHostType |
array |
The supported dedicated host types. |
|
|
string |
The supported dedicated host type. |
ddh.g6 |
|
| AvailableVolumeCategories |
object |
||
| VolumeCategories |
array |
The supported Shared Block Storage device categories. |
|
|
string |
The supported Shared Block Storage device category. |
san_efficiency |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Zones": {
"Zone": [
{
"ZoneId": "cn-hangzhou-g",
"ZoneType": "AvailabilityZone",
"LocalName": "华东 1 可用区 G",
"AvailableResources": {
"ResourcesInfo": [
{
"IoOptimized": true,
"SystemDiskCategories": {
"supportedSystemDiskCategory": [
"cloud_essd"
]
},
"InstanceGenerations": {
"supportedInstanceGeneration": [
"ecs-6"
]
},
"DataDiskCategories": {
"supportedDataDiskCategory": [
"cloud_essd"
]
},
"InstanceTypes": {
"supportedInstanceType": [
"ecs.g5.large"
]
},
"InstanceTypeFamilies": {
"supportedInstanceTypeFamily": [
"ecs.r7t"
]
},
"NetworkTypes": {
"supportedNetworkCategory": [
"vpc"
]
}
}
]
},
"AvailableResourceCreation": {
"ResourceTypes": [
"DedicatedHost"
]
},
"DedicatedHostGenerations": {
"DedicatedHostGeneration": [
"ddh-6"
]
},
"AvailableInstanceTypes": {
"InstanceTypes": [
"ecs.g6.xlarge"
]
},
"AvailableDiskCategories": {
"DiskCategories": [
"cloud"
]
},
"AvailableDedicatedHostTypes": {
"DedicatedHostType": [
"ddh.g6"
]
},
"AvailableVolumeCategories": {
"VolumeCategories": [
"san_efficiency"
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSpotStrategy | The specified SpotStrategy is not valid. | The specified SpotStrategy parameter is invalid. |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | The specified region ID does not exist. |
| 404 | InvalidRegion.NotFound | The specified parameter RegionId is not valid. | |
| 404 | InvalidInstanceChargeType.NotFound | The InstanceChargeType does not exist in our records. | |
| 404 | InvalidAcceptLanguage.NotFound | Only Chinese (zh-CN), English (en-US), and Japanese (ja) are allowed. | Your selected language is invalid. Only Chinese, English, and Japanese are supported. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.