该接口用于查询RDS实例的价格信息。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClientToken | string | 否 | 用于保证请求的幂等性,防止重复提交请求。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符,且该参数值中不能包含非 ASCII 字符。 | ETnLKlblzczshOTUbOCz**** |
CommodityCode | string | 否 | 当前实例的商品码,取值:
说明
查询只读实例时必须传入本参数。
| rds |
RegionId | string | 是 | 地域 ID。可调用 DescribeRegions 获取。 | cn-hangzhou |
Engine | string | 是 | 数据库类型,取值:
| MySQL |
EngineVersion | string | 是 | 数据库版本,取值:
说明
SQL Server 实例中 _ent 表示企业集群版、_ent_ha 表示企业版、_std_ha 表示标准版、_web 表示 Web 版。
| 8.0 |
DBInstanceClass | string | 是 | 实例规格,详情请参见主实例规格表。 | mysql.x2.medium.xc |
DBInstanceStorage | integer | 是 | 实例存储空间,单位:GB。每 5 GB 进行递增,取值范围请参见实例规格表。 | 20 |
PayType | string | 否 | 实例的付费类型,取值:
| Prepaid |
ZoneId | string | 否 | 主节点可用区 ID。可调用 DescribeRegions 获取。 说明
指定了 VPC 和交换机时,为匹配交换机对应的可用区,该参数必填。
| cn-hangzhou-b |
UsedTime | integer | 否 | 指定购买时长,取值:
默认值:1。 | 1 |
TimeType | string | 否 | 包年包月的付费类型,当 CommodityCode 参数的值为 rds、rds_rordspre_public_cn、rds_intl或rds_rordspre_public_intl时必传。取值:
| Year |
Quantity | integer | 是 | 购买实例的数量,取值范围:0~30。 | 10 |
InstanceUsedType | integer | 否 | 实例类型,取值:
| 0 |
OrderType | string | 否 | 订单类型,取值:
| BUY |
DBInstanceStorageType | string | 否 | 实例存储类型,取值:
| local_ssd |
DBInstanceId | string | 否 | 变配或续费的实例 ID。 说明
| rm-**** |
DBNode | object [] | 否 | 节点相关信息。 说明
该参数用于 MySQL 集群系列实例。
| |
ClassCode | string | 否 | 节点规格。 | mysql.x2.medium.xc |
ZoneId | string | 否 | 节点可用区 ID。 | cn-hangzhou-j |
ServerlessConfig | object | 否 | RDS Serverless 实例的相关设置。 说明
MariaDB 不支持 Serverless 实例。
| |
MaxCapacity | double | 否 | 实例 RCU(RDS Capacity Unit)的自动扩缩范围最大值。 | 8 |
MinCapacity | double | 否 | 实例 RCU(RDS Capacity Unit)的自动扩缩范围最小值。 | 0.5 |
返回参数
示例
正常返回示例
JSON
格式
{
"OrderParams": "{\\\"autoPay\\\":false}\"\n",
"RequestId": "CA0ADDDC-0BEB-4381-A3ED-73B4C79B8CC6",
"PriceInfo": {
"OriginalPrice": 10508,
"DiscountPrice": 0,
"Currency": "CNY",
"TradePrice": 10508,
"TradeMinRCUAmount": 0,
"TradeMaxRCUAmount": 0,
"Coupons": {
"Coupon": [
{
"IsSelected": "true",
"CouponNo": "123456",
"Name": "test",
"Description": "test"
}
]
},
"RuleIds": {
"RuleId": [
"100119****"
]
},
"ActivityInfo": {
"CheckErrMsg": "Error description",
"ErrorCode": " 123456",
"Success": "Success"
},
"OrderLines": "Order Information"
},
"Rules": {
"Rule": [
{
"Name": "Rule1",
"Description": "Activity Description",
"RuleId": 0
}
]
},
"ShowDiscount": true,
"TradeMaxRCUAmount": 0,
"TradeMinRCUAmount": 0,
"ServerlessPrice": {
"TotalOriginalMinAmount": 0,
"TotalOriginalMaxAmount": 0,
"RCUOriginalMinAmount": 0,
"RCUOriginalMaxAmount": 0,
"RCUDiscountMinAmount": 0,
"RCUDiscountMaxAmount": 0,
"TradeMinRCUAmount": 0,
"TradeMaxRCUAmount": 0,
"StorageOriginalAmount": 0,
"storageDiscountAmount": 0
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | DBInstanceStorageFormatFault | DBInstanceStorageFormatFault | - |
400 | InvalidDBInstanceStorage.Format | InvalidDBInstanceStorage.Format | 实例存储大小不符合要求,请检查。 |
400 | DBNodeParameter.InvalidClassCode | The ClassCode of the item of the specified parameter DBNode is inconsistent. | 参数DBNode中的ClassCode配置不一致。 |
400 | DBNodeParameter.Required | The specified parameter DBNode is required. | 参数DBNode是必需的。 |
400 | DBNodeParameter.TooFewItems | The specified parameter DBNode has too few items. | 参数DBNode中的配置项过少。 |
400 | DBNodeParameter.TooManyItems | The specified parameter DBNode has too many items. | 参数DBNode中的配置项过多。 |
400 | Price.WanHuaTong.sys | Inquiry error. | 询价错误。 |
400 | SYSTEM.SaleValidateFailed | The request not refer to the correct order period. please check your Period or UsedTime param. | 该请求未提及正确的订购期限。 请检查您的Period或UsedTime参数。 |
400 | Price.HsfTimeoutError | Inquiry error. | 询价错误。 |
400 | Rule.HsfTimeoutError | Request rule service error. | 请求规则服务错误。 |
400 | InvalidDBInstanceClassNotFound | Specified DB instance class is 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. | 您还未通过实名认证,不符合购买条件,请登录用户中心进行实名认证。 |
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. | 调用商品服务返回失败。 |
400 | RegionDissolvedEOM | Dear customer, Alibaba Cloud plans to optimize and adjust the current region. Cloud services in this region will cease operations. You are currently unable to operate new purchase orders. Thank you for your understanding and support. | 客户您好,阿里云计划对当前地域进行优化调整,该区域云服务将停止运营,为确保您的业务连续性及数据迁移工作的平稳过渡,您目前无法操作新购类型的订单,感谢理解与支持。 |
400 | Commodity.InvalidComponent | The module you purchased is not legal, please buy it again. | 您购买的模块不合法,请重新购买。 |
400 | RegionEndTimeDissolvedIndia | Cloud services in the India (Mumbai) region will be discontinued. Set the validity date to July 15, 2024 or earlier than July 15, 2024. | 客户您好,印度地域裁撤,购买的服务效期不能超过2024.07.15。 |
400 | RegionEndTimeDissolvedAustralia | Cloud services in the Australia (Sydney) region will be discontinued. Set the validity date to September 30, 2024 or earlier than September 30, 2024. | 客户您好,澳洲地域裁撤,购买的服务效期不能超过2024.09.30 |
400 | Price.CommoditySys | Commodity system call exception. | 商品系统调用异常。 |
400 | Pay.InsufficientBalance | Insufficient available balance. | 可用金不足。 |
400 | Order.PeriodInvalid | There is a problem with the period you selected, please choose again. | 您选购的周期有问题,请重新选购。 |
400 | pay.noCreditCard | Account not bound to credit card. | 账户未绑定信用卡。 |
400 | Order.InstHasUnpaidOrder | There is an unpaid order for the service you have purchased. Please pay or void it before placing the order. | 您选购的服务存在未支付订单,请支付或作废后再下单。 |
400 | noAvailablePaymentMethod | No payment method is specified for your account. We recommend that you add a payment method. | 没有为您的帐户指定付款方式。我们建议您添加一种付款方式。 |
400 | BasicInfoUncompleted | Your information is incomplete. Complete your information before the operation. | 您的基本信息未完善,请在操作前先完善您的基本信息。 |
400 | Risk.RiskControlRejection | Your account is abnormal, please contact customer service for details. | 您的账户出现异常,详情请联系客服。 |
400 | BasicInfoUncompleted | Your information is incomplete, Complete your information before the operation. | 您的信息不完整,请在操作前填写您的信息。 |
400 | System.SaleValidateFailed | Sales expression validation system error. | 销售表达式校验系统错误。 |
403 | CASH.BOOK.INSUFFICIENT | No payment method is specified for your account. We recommend that you add a payment method or maitain a minimum prepayment balance of INR 1000. | 帐户没有指定付款方式. |
403 | OrderStatus.UnPaid | The specified db instance has unpaid order. | 实例当前存在未支付订单,请支付后重试。 |
404 | InvalidTimeType.NotFound | The parameter timeType does not exist. | 请检查 TimeType 参数。可选值为 Year、Month、Day |
404 | canNotFindSubscription | Subscription information not found. | 找不到订购信息。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-04-11 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-11-17 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-09-08 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-07-03 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更、OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-05-24 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||||
| ||||||||||||||||
2023-05-12 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||||
|