You can call this operation to resize disks.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ResizeDiskSize

The operation that you want to perform. Set the value to ResizeDiskSize.

ClusterId String Yes cds-bp1b136j****5d51

The ID of the cluster.

DataCenterId String Yes cn-hangzhou-g

The ID of the data center in the cluster.

DiskSize Integer Yes 240

The new size of the disk. Unit: GB.

Response parameters

Parameter Type Example Description
RequestId String 5C37DF4E-54D6-4AFA-A1F9-79ADC148F8AD

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ResizeDiskSize
&ClusterId=cds-bp1b136j****5d51
&DataCenterId=cn-hangzhou-g
&DiskSize=240
&<Common request parameters>

Sample success responses

XML format

<ResizeDiskSizeResponse>
  <RequestId>5C37DF4E-54D6-4AFA-A1F9-79ADC148F8AD</RequestId>
</ResizeDiskSizeResponse>

JSON format

{
  "RequestId": "5C37DF4E-54D6-4AFA-A1F9-79ADC148F8AD"
}

Error codes

For a list of error codes, visit the API Error Center.