Queries the available zones for an instance.
Operation Description
debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
Engine | string | Yes | The database engine of the instance. Valid values:
| MySQL |
ZoneId | string | No | The zone ID of the instance. If the instance spans more than one zone, the value of this parameter contains an | cn-hangzhou-e |
EngineVersion | string | No | The database engine version. Valid values:
| 8.0 |
CommodityCode | string | No | The commodity code of the instance. This operation can return the resources that you can purchase based on the specified commodity code. Valid values:
| bards |
DispenseMode | string | No | Specifies whether to return the zones in which the single-zone deployment method is supported. Valid values:
Note
The single-zone deployment method allows you to deploy an instance that runs RDS Enterprise Edition in a single zone.
| 0 |
DBInstanceName | string | No | The ID of the primary instance. If you want to query the read-only instances that you can purchase for a primary instance, you can specify this parameter. If you set CommodityCode to one of the following values, you must specify this parameter:
| rm-uf6wjk5xxxxxxx |
Category | string | No | The RDS edition of the instance. Valid values:
| HighAvailability |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "4256E149-C3C4-4FA7-BDEA-13CA415E8763",
"AvailableZones": [
{
"ZoneId": "cn-hangzhou-e",
"RegionId": "cn-hangzhou",
"SupportedEngines": [
{
"Engine": "MySQL",
"SupportedEngineVersions": [
{
"Version": "8.0",
"SupportedCategorys": [
{
"Category": "HighAvailability",
"SupportedStorageTypes": [
{
"StorageType": "local_ssd"
}
]
}
]
}
]
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ArticleNotFound | Article not found | No relevant constraints are found. |
404 | InvalidDBInstanceName.NotFound | DBInstanceName not found | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|