该接口用于查询RDS实例所有规格的详情。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClientToken | string | 否 | 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符,且该参数值中不能包含非 ASCII 字符。 | ETnLKlblzczshOTUbOCz**** |
CommodityCode | string | 是 | 需要查询的实例商品码。
| bards |
DBInstanceId | string | 否 | 实例 ID。可调用 DescribeDBInstances 获取。 说明
查询只读实例规格列表,即 CommodityCode 参数中传入只读实例商品码时,本参数必传。
| rm-uf6wjk5**** |
OrderType | string | 是 | 需要查询的订单类型,取值:
| BUY |
RegionId | string | 否 | 地域 ID。可调用 DescribeRegions 获取。 说明
如果您使用的是阿里云国际站账号,此参数必传。
| cn-hangzhou |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "CF8D35BF-263D-4F7B-883A-1163B79A9EC6",
"RegionId": "cn-hangzhou",
"Items": [
{
"MaxIOPS": "10000",
"Cpu": "1",
"ReferencePrice": "2500",
"MaxConnections": "2000",
"MemoryClass": "1GB",
"ClassCode": "mysql.n1.micro.1",
"ClassGroup": "general-purpose",
"MaxIOMBPS": "1024Mbps",
"EncryptedMemory": "4",
"InstructionSetArch": "arm"
}
]
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidSecurityIPList.Malformed | The specified parameter SecurityIPList is not valid. | - |
400 | InvalidSecurityIPList.Duplicate | The Security IP address is not in the available range or occupied. | 当前的安全IP地址已被占用或不在有效区间内,请重新设置安全IP地址。 |
400 | InvalidCommodityCode.Malformed | The commodity code is invalid. | 无效的商品码 |
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. | 您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。 |
403 | Forbidden.Authentication | The operation is forbidden by Aliyun Realname Authentication System. | 操作失败,该操作被阿里云实名认证系统禁止。 |
404 | GetCommodity.Failed | Get commodity failed. | 获取商品信息失败,参数CommodityCode无效,请检查该参数的正确性。 |
404 | InvalidDBInstanceName.NotFound | Invalid DBInstanceId NotFound. | 数据库实例ID不存在,请检查。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2022-09-13 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||
| ||||||||||
2022-09-13 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||
|