专属集群续费
更新时间:2026-06-22
该接口用于为指定专属集群续费,延长该专属集群到期时间。
API Explorer
去调试
您可以在 API Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,API Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1PUT /v{version}/volume/cluster/{clusterId}?purchaseReserved HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "billing" : {
7 "paymentTiming" : paymentTiming,
8 "reservation" : {
9 "reservationLength" : reservationLength,
10 "reservationTimeUnit" : reservationTimeUnit
11 }
12 }
13}
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| clusterId | String | 是 | URL参数 | 磁盘ID |
| billing | Billing | 是 | RequestBody参数 | 订单信息 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| orderId | String | 订单ID |
错误码
| 错误码 | 错误描述 | HTTP状态码 | 中文解释 |
|---|---|---|---|
| Cluster.OrderParamInvalid | request parameter cannot be empty. | 400 | 请求参数不能为空 |
| BadRequest | request parameter error. | 400 | 请求参数无效 |
请求示例
Plain Text
1PUT /v2/volume/cluster/DC-g4MhBMut?purchaseReserved HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4
5{
6 "billing": {
7 "reservation": {
8 "reservationLength": 1,
9 "reservationTimeUnit": "Month"
10 }
11 }
12}
返回示例
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Wed, 03 Dec 2014 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
评价此篇文章
