Queries the available resources in the zone in which an instance resides.
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
rds:DescribeAvailableZones | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the instance. 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 of the instance. Valid values:
Serverless instances
NoteApsaraDB RDS for MariaDB does not support serverless instances. | 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:
NoteThe 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:
Serverless instances
| 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.