ResizeDisk
1. API Description
This API is used to expand a cloud volume to a specified size.
2. Input Parameters
The following request parameter list only provides API request parameters.
diskSize
Yes
Integer
New disk size after expansion.
Unit: GB
.
Must be greater than the current size
Maximum limit: 32,768 GB (32 TB).
Valid range: [1, ∞).
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Expand a cloud volume to 100 GB.
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
400
INVALID_DISK_SIZE_MAX_EXCEED
Disk size exceeds the maximum limit.
404
INVALID_DISK_NOT_FOUND
Disk not found.
400
INVALID_DISK_SIZE_PARAM_ERROR
Invalid disk size. It must be greater than the current size.
400
OPERATION_DENIED_INSTANCE_STATUS_NOT_SUPPORT
Operation not allowed in the current instance state.
400
INVALID_DISK_STATUS_NOT_SUPPORT
Operation not allowed in the current disk state.
Last updated