该接口用于查询RDS实例的可变更规格及存储空间等信息。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
rds:DescribeAvailableClasses | Read |
|
| 无 |
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 当前实例的地域 ID。可以通过接口 DescribeDBInstanceAttribute 查看所属地域 ID。 | cn-hangzhou |
ZoneId | string | 是 | 当前实例的可用区 ID。可以通过接口 DescribeDBInstanceAttribute 查看所属可用区 ID。 说明
若 DescribeDBInstanceAttribute 返回多可用区(例如 cn-hangzhou-MAZ9(g,h) ),请以单可用区形式传入。例如:cn-hangzhou-g 或cn-hangzhou-h 。
| cn-hangzhou-h |
InstanceChargeType | string | 是 | 当前付费类型,取值:
说明
MariaDB 不支持创建 Serverless 实例。
| Prepaid |
Engine | string | 是 | 当前数据库类型。取值:
| MySQL |
EngineVersion | string | 是 | 当前数据库版本。取值:
| 8.0 |
DBInstanceId | string | 否 | 实例 ID。可调用 DescribeDBInstances 获取。 | rm-uf6wjk5**** |
OrderType | string | 否 | 订单类型。当前仅唯一取值:BUY。 | BUY |
DBInstanceStorageType | string | 是 | 当前实例存储类型。取值:
说明
Serverless 实例仅支持 ESSD PL1 云盘,必须传入cloud_essd。
| local_ssd |
Category | string | 是 | 当前实例系列。取值:
| HighAvailability |
CommodityCode | string | 否 | 当前实例的商品码。取值:
说明
查询只读实例时必须传入本参数。
| bards |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "7E4448A6-9FE6-4474-A0C1-AA7CFC772CAC",
"DBInstanceClasses": [
{
"DBInstanceClass": "rds.mysql.c1.large",
"DBInstanceStorageRange": {
"Step": 5,
"MinValue": 5,
"MaxValue": 2000
}
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | ArticleNotFound | Article not found | 没有找到相关约束 |
400 | InvalidDBInstanceName | The specified parameter DBInstanceName is null or the instance cannot be found, please check parameter DBInstanceName. | 指定的参数DBInstanceName值为null,或者没有找到对应的实例,请检查参数DBInstanceName。 |
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. | 您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。 |
400 | InsufficientAvailableQuota | Your account quota limit is less than 0, please recharge before trying to purchase. | 您的账户可用额度小于0,请先充值后再尝试购买。 |
400 | CommodityServiceCalling.Exception | Failed to call commodity service. | 调用商品服务返回失败。 |
404 | InvalidDBInstanceName.NotFound | DBInstanceName not found | - |
404 | InvalidCondition.NotFound | No class found | 操作失败,可用类的条件无效。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||
---|---|---|---|---|---|---|---|---|
2024-03-14 | OpenAPI 错误码发生变更 | 看变更集 | ||||||
|