DescribeAvailabilityZones
Queries the zones supported by MongoDB instances.
Operation description
Queries the list of supported MongoDB zones based on the specified purchasing conditions. The region ID is required in the purchasing conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAvailabilityZones |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| ZoneId |
string |
No |
The zone ID. You can call the DescribeRegions operation to query the zone ID. |
cn-hangzhou-b |
| InstanceChargeType |
string |
No |
The billing method. Valid values:
Valid values:
|
PrePaid |
| DbType |
string |
No |
The database type of the instance. Valid values:
Valid values:
|
normal |
| ResourceGroupId |
string |
No |
The resource group ID. For more information about resource groups, see View the basic information of a resource group. |
rg-acfmx2m4rqu7pry |
| AcceptLanguage |
string |
No |
The language of the RegionName and ZoneName response parameters. Valid values:
|
zh |
| StorageSupport |
string |
No |
The storage type. Valid values:
|
local |
| MongoType |
string |
No |
The MongoDB edition, such as the high-availability edition or the test edition (dbfs). |
dbfs |
| StorageType |
string |
No |
The storage type. Valid values:
Note
|
local_ssd |
| ExcludeZoneId |
string |
No |
The zone ID to be excluded from the query results in the current region. |
cn-shanghai-g |
| ExcludeSecondaryZoneId |
string |
No |
The secondary zone ID to be excluded from the query results in the current region. This parameter is used together with ExcludeZoneId to filter multiple zones. |
cn-shanghai-b |
| DBInstanceClass |
string |
No |
The instance type. |
dds.mongo.standard |
| EngineVersion |
string |
No |
The database engine version. |
5.0 |
| ReplicationFactor |
string |
No |
The number of nodes. Note
This parameter is supported only for replica set instances. Valid values:
|
3 |
| InstanceType |
string |
No |
The instance type. Valid values:
|
replicate |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
19A13A33-0FAD-5120-8AE1-B1636F74DD80 |
| AvailableZones |
array<object> |
The details of the zones where resources are available for purchase. |
|
|
object |
|||
| ZoneId |
string |
The zone ID. |
cn-beijing-f |
| ZoneName |
string |
The zone name. The returned language is determined by the AcceptLanguage parameter. Take the cn-hangzhou-h zone as an example:
|
Hangzhou Zone H |
| RegionId |
string |
The region ID. You can call the DescribeRegions operation to query the region ID. |
cn-beijing |
Examples
Success response
JSON format
{
"RequestId": "19A13A33-0FAD-5120-8AE1-B1636F74DD80",
"AvailableZones": [
{
"ZoneId": "cn-beijing-f",
"ZoneName": "杭州 可用区H",
"RegionId": "cn-beijing"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.