查看自动续费规则列表
更新时间:2025-04-01
接口说明
获取自动续费规则列表
请求URI
POST /api/bes/cluster/auto_renew_rule/list
请求头参数
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 是 | 区域 | bd |
请求体参数
请求体字段数据结构说明
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | String | 否 | 集群id | 123 |
serviceType | String | 是 | 服务类型 | BES |
响应体参数
响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
success | Boolean | 操作是否成功 | true |
status | Integer | 状态码 | 200 |
result | List |
返回信息 |
ResultItem字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
uuid | String | 续费规则的ID | rule-f38743879d554275a71d2d737362ab40 |
userId | String | 用户ID | 9485f297f8a64d8da79dde31791c08a6 |
clusterId | String | 集群ID | 573343274681634816 |
region | String | 区域 | bd |
renewTimeUnit | String | 续费时间单位 支持month,year | month |
renewTime | Integer | 续费时长 | 1 |
createTime | String | 创建时间 | 2021-10-27T06: 51: 18Z |
updateTime | String | 修改时间 | 1971-01-01T00: 00: 01Z |
请求示例
POST /api/bes/cluster/auto_renew_rule/list
<公共请求头>
x-Region: bd
{
"serviceType" : "BES",
"clusterId" : "123"
}
响应示例
HTTP/1.1 200 OK
<公共响应头>
{
"result" : [ {
"renewTime" : 1,
"createTime" : "2021-10-27T06: 51: 18Z",
"renewTimeUnit" : "month",
"updateTime" : "1971-01-01T00: 00: 01Z",
"clusterId" : "573343274681634816",
"region" : "bd",
"uuid" : "rule-f38743879d554275a71d2d737362ab40",
"userId" : "9485f297f8a64d8da79dde31791c08a6"
}, {
"renewTime" : 1,
"createTime" : "2021-10-27T06: 51: 18Z",
"renewTimeUnit" : "month",
"updateTime" : "1971-01-01T00: 00: 01Z",
"clusterId" : "573343274681634816",
"region" : "bd",
"uuid" : "rule-f38743879d554275a71d2d737362ab40",
"userId" : "9485f297f8a64d8da79dde31791c08a6"
} ],
"success" : true,
"status" : 200
}
错误码
请参考通用错误码