该接口用于查询RDS的可用区资源。
接口说明
适用引擎
- RDS MySQL
- RDS PostgreSQL
说明 该接口仅用于查询可用区资源,不用于控制台关于 RDS PostgreSQL 的售卖。购买页根据实际售卖策略不同,部分参数取值会略有不同,实际购买时请以购买页为准。
- RDS SQL Server
- RDS MariaDB
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。可调用 DescribeRegions 获取。 | cn-hangzhou |
Engine | string | 是 | 数据库类型。取值:
| MySQL |
ZoneId | string | 否 | 可用区 ID。多可用区的格式与单可用区不同,包含 | cn-hangzhou-e |
EngineVersion | string | 否 | 数据库版本。取值:
| 8.0 |
CommodityCode | string | 否 | 当前实例的商品码。根据输入的商品码查询可售卖的资源。取值:
| bards |
DispenseMode | string | 否 | 是否返回支持单可用区部署功能的可用区列表。取值:
说明
单可用区部署功能支持将三节点企业系列实例安装到单个可用区中。
| 0 |
DBInstanceName | string | 否 | 主实例 ID。查询该主实例下可售卖的只读实例资源。 CommodityCode 参数为如下值时必填:
| rm-uf6wjk5**** |
Category | string | 否 | 实例系列,取值:
| HighAvailability |
返回参数
示例
正常返回示例
JSON
格式
{
"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"
}
]
}
]
}
]
}
]
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ArticleNotFound | Article not found | 没有找到相关约束 |
400 | Order.ComboInstanceNotAllowOperate | A package instance is not allowed to operate independently. | 套餐实例不允许单独操作。 |
400 | Price.PricingPlanResultNotFound | Pricing plan price result not found. | 定价计划价格结果没有找到。 |
400 | Order.NoRealNameAuthentication | You have not passed the real-name authentication and do not meet the purchase conditions. Please log in to the user center for real-name authentication. | 您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。 |
404 | InvalidDBInstanceName.NotFound | DBInstanceName not found | - |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|
暂无变更历史