Resizing Dedicated Cluster
Updated at:2025-10-20
This API allows resizing and expanding the capacity of a specified dedicated cluster by modifying its size.
Request structure
Plain Text
1PUT /v{version}/volume/{clusterId}?{action} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4
5{
6 "newClusterSizeInGB" : newClusterSizeInGB,
7}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number |
| clusterId | String | Yes | URL parameter | Disk ID |
| action | String | Yes | Query | Operation executed on the dedicated cluster, current value: resize |
| newClusterSizeInGB | int | Yes | Request Body parameters | The newly expanded capacity of the dedicated cluster must be a positive integer, exceeding the current capacity, and must fall within the range of 87,040 GB to 1,039,360 GB. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
There are no special response parameters
Error codes
| Error code | Error description | HTTP status code | Chinese explanation |
|---|---|---|---|
| Cluster.ResizeParamInvalid | cluster does not exist. | 400 | The dedicated cluster ID does not exist. |
| Cluster.ClusterSizeInvalid | cluster newClusterSizeInGB error. | 400 | The capacity size of the dedicated cluster is invalid |
Request example
Plain Text
1 PUT /v2/volume/cluster/DC-g4MhBMut?resize HTTP/1.1
2 Host: bcc.bj.baidubce.com
3 Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/*****
4 {
5 "newClusterSizeInGB" : 107520
6 }
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 864388da-ff1f-488b-be35-cfce5d9e762d
3Date: Mar, 21 Dec 2023 06:42:19 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
