该接口用于查询包年包月RDS实例续费的费用。
接口说明
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClientToken | string | 否 | 用于保证请求的幂等性。 | ETnLKlblzczshOTUbOCz**** |
DBInstanceId | string | 是 | 实例 ID。可调用 DescribeDBInstances 获取。 | rm-uf6wjk5**** |
RegionId | string | 否 | 地域 ID。可调用 DescribeRegions 获取。 | cn-hangzhou |
PayType | string | 否 | 实例的付费类型。取值:
| Postpaid |
DBInstanceClass | string | 否 | 实例规格。规格详情请参见主实例规格表。默认为实例当前规格。 | mysql.n2.medium.2c |
UsedTime | integer | 是 | 实例购买时长,取值:
| 1 |
TimeType | string | 是 | 实例包年包月的类型,取值:
| Year |
Quantity | integer | 否 | 实例个数,默认值:1。 | 1 |
OrderType | string | 否 | 订单类型。仅唯一取值:BUY。 | BUY |
BusinessInfo | string | 否 | 业务扩展参数。 | 121436975448952 |
ResourceGroupId | string | 否 | 资源组 ID。可调用 DescribeDBInstanceAttribute 接口获取。 | rg-acfmx**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "DC9F4EF6-D038-4405-B497-1F48E722C9F2",
"PriceInfo": {
"OriginalPrice": 138,
"DiscountPrice": 27,
"Currency": "CNY",
"TradePrice": 111,
"Coupons": {
"Coupon": [
{
"IsSelected": "true",
"CouponNo": "123456",
"Name": "test",
"Description": "test"
}
]
},
"RuleIds": {
"RuleId": [
"1001199213"
]
},
"ActivityInfo": {
"CheckErrMsg": "Error description",
"ErrorCode": " 123456",
"Success": "Success"
}
},
"Rules": {
"Rule": [
{
"Name": "test",
"Description": "Activity Description",
"RuleId": 1001199213
}
]
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SYSTEM.SaleValidateFailed | The request not refer to the correct order period. please check your Period or UsedTime param. | 该请求未提及正确的订购期限。 请检查您的Period或UsedTime参数。 |
400 | OrdQueryAccountError | Error calling account service. | 调用账号服务错误。 |
400 | Price.WanHuaTong.sys | Inquiry error. | 询价错误。 |
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 | canNotFindSubscription | Subscription information not found. | 找不到订购信息。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||
---|---|---|---|---|---|---|---|---|
2023-09-08 | OpenAPI 错误码发生变更 | 看变更集 | ||||||
| ||||||||
2023-07-21 | OpenAPI 入参发生变更 | 看变更集 | ||||||
|