转换云数据库 Tair(兼容 Redis)实例的付费类型,支持按量付费和包年包月付费类型之间的相互转换。
接口说明
请确保在调用本接口前,您已了解相关注意事项和费用说明,更多信息,请参见:
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
kvstore:TransformInstanceChargeType |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID,您可以调用 DescribeInstances 获取。 |
r-bp1zxszhcgatnx**** |
| Period |
integer |
否 |
包年包月的付费时长,单位为月,取值:1~9、12、24、36。 说明
当 ChargeType 参数取值为 PrePaid 时,本参数才可用且必须传入。 |
1 |
| AutoPay |
boolean |
否 |
是否自动付费,取值:
|
true |
| ChargeType |
string |
是 |
要转换到的付费类型,取值:
枚举值:
|
PrePaid |
| AutoRenew |
string |
否 |
是否开启自动续费,取值:
枚举值:
|
false |
| AutoRenewPeriod |
integer |
否 |
自动续费周期,单位为月,取值:1、2、3、6、12。 说明
当 AutoRenew 取值为 true 时,本参数必须传入。 |
1 |
| CouponNo |
string |
否 |
you******ank |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| EndTime |
string |
实例的到期时间。 说明
当实例的付费类型从按量付费转换为包年包月时,本参数才会返回具体的值。 格式为 YYYY-MM-DDTHH:mm:ssZ,使用 UTC 时间。 |
2021-05-13T00:00:00Z |
| RequestId |
string |
请求 ID。 |
82C791FB-8979-489E-853D-706D7743**** |
| OrderId |
string |
订单 ID。 |
20881824000**** |
示例
正常返回示例
JSON格式
{
"EndTime": "2021-05-13T00:00:00Z",
"RequestId": "82C791FB-8979-489E-853D-706D7743****",
"OrderId": "20881824000****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidParam | Period is invalid | |
| 400 | ResourceNotAvailable | Resource you requested is not available for finance user. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | Order.LatestOrderIsHanding | Latest order is handing, please retry later. | |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。