已创建实例自动续费
更新时间:2022-11-17
说明
- 本接口用于已创建的实例开启自动续费。
- 可以传入多个实例id,多个实例需保证在同一地域。
请求结构
Plain Text
1PUT /v{version}/instance?autoRenew HTTP/1.1
2HOST: rds.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "instanceIds":[
7 "rds-y9dJu77d",
8 "rds-aQFOoncr"
9 ],
10 "autoRenewTimeUnit" :autoRenewTimeUnit,
11 "autoRenewTime" :autoRenewTime
12}
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
version | string | 是 | URL参数 | API 版本号 |
instanceIds | List String | 是 | RequestBody参数 | 指定实例的id集合 |
autoRenewTimeUnit | string | 否 | RequestBody参数 | 自动续费单位("year";"month") |
autoRenewTime | int | 否 | RequestBody参数 | 自动续费时长(续费单位为year 不大于3,续费单位为month 不大于9) |
返回头域
除公共头域,无其它特殊头域。
返回参数
无特殊返回参数
请求示例
Plain Text
1put /v1/instance?autoRenew HTTP/1.1
2HOST: rds.bj.baidubce.com
3ContentType: application/json
4Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-11-21T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
5
6{
7 "instanceIds":[
8 "rds-y9dJu77d",
9 "rds-aQFOoncr"
10 ],
11 "autoRenewTimeUnit":"month",
12 "autoRenewTime":3
13}
返回示例
无特殊返回参数