Domain name for API request: lighthouse.intl.tencentcloudapi.com.
This API is used to scale out a cloud disk. The operation currently only supports cloud disks of the data disk type that are in the ATTACHED or UNATTACHED status.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ResizeDisks. |
| Version | Yes | String | Common Params. The value used for this API: 2020-03-24. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo. |
| DiskIds.N | Yes | Array of String | Cloud disk ID list, which can be queried via the DescribeDisks API. The maximum length of the list is 15. |
| DiskSize | Yes | Integer | Size of the cloud disk after scale-out, in GB. The value range of the Premium Disk size is [10, 4000], and that of the Cloud SSD size is [20, 4000]. The cloud disk size after scale-out must be greater than the current disk size. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: lighthouse.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ResizeDisks
<Common request parameters>
{
"DiskIds": [
"lhdisk-guzg7nsa"
],
"DiskSize": 40
}{
"Response": {
"RequestId": "822edbc4-5d4a-4e19-9d61-2a243f04d06e"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.InsufficientBalance | The account balance is insufficient. Top up promptly. |
| FailedOperation.ResizeDisksFailed | Failed to scale out the cloud disk. Try again later. |
| InvalidParameterValue.DiskSizeSmallerThanCurrentDiskSize | The specified cloud disk size is less than the current disk size. |
| InvalidParameterValue.Duplicated | Invalid parameter value: duplicate values are not allowed. |
| InvalidParameterValue.InvalidDiskIdMalformed | Invalid parameter value: the disk ID format is invalid. |
| InvalidParameterValue.InvalidDiskSize | The specified cloud disk size does not meet the requirements. |
| InvalidParameterValue.InvalidDiskType | Invalid cloud disk type. |
| OperationDenied.DiskUsageNotSupportOperation | The cloud disk type of the disk does not support this operation. |
| ResourceNotFound.DiskIdNotFound | The disk ID does not exist. |
| ResourceNotFound.DiskNotExists | The disk does not exist. |
| ResourceNotFound.DiskNotFound | The disk does not exist. |
| UnauthorizedOperation.NoPermission | No permission. |
| UnsupportedOperation.DiskLatestOperationUnfinished | Unsupported operation: the last operation of the disk has not been completed. |
| UnsupportedOperation.SameWithOldConfig | This operation is not supported if the new configuration is identical to the existing configuration during configuration changes. |
Feedback