更新自动续费规则
更新时间:2025-04-01
接口说明
修改自动续费规则
请求URI
POST /api/bes/cluster/auto_renew_rule/update
请求头参数
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 是 | 区域 | bd |
请求体参数
请求体字段数据结构说明
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | String | 是 | 集群id,超过规定18位会返回500错误 | 443755843180171264 |
renewTimeUnit | String | 是 | 续费时间单位 支持month,year | month |
renewTime | Integer | 是 | 续费时长 | 1 |
响应体参数
响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
success | Boolean | 请求是否成功 | true |
status | Integer | 状态码 | 200 |
result | String | 常量字符串 |
请求示例
POST /api/bes/cluster/auto_renew_rule/update
<公共请求头>
x-Region: bd
{
"renewTime" : 1,
"renewTimeUnit" : "month",
"clusterId" : "443755843180171264"
}
响应示例
HTTP/1.1 200 OK
<公共响应头>
{
"result" : "result",
"success" : true,
"status" : 200
}
错误码
请参考通用错误码