tencent cloud

ResizeDisks
Last updated:2026-01-13 21:47:55
ResizeDisks
Last updated: 2026-01-13 21:47:55

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Scaling Out a Cloud Disk

Input Example

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
}

Output Example

{
    "Response": {
        "RequestId": "822edbc4-5d4a-4e19-9d61-2a243f04d06e"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback