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