Expanding Elastic Cloud Disks

Last updated: 2019-11-29 15:41:57

    1. API Description

    This API (ResizeCbsStorage) is used to expand the specified elastic cloud storage.

    Domain for API call:cbs.api.cloud.tencent.com

    Usage restrictions:

    1. Only elastic cloud storages can be expanded. The cloud disk type can be queried through DescribeCbsStorages (Query Cloud Disk Information)API. See the portable field in output parameters. The cloud disk storage created with the CVM needs to be expanded via ResizeInstanceHour (Adjust the Instance Configuration (Bill by Traffic) API

    2. Input Parameters

    The following request parameter list only provides API request parameters. For other parameters, refer to Common Request Parameters.

    Parameter Name Required Type Description
    storageId Yes String ID of the cloud storage, which can be queried via DescribeCbsStorages (Query Cloud Disk Information)API
    storageSize Yes Int The expanded size of data disk (GB), which must be greater than the current value. The maximum value is 4,000, and the increment is 10

    3. Output Parameters

    Parameter Name Type Description
    code Int Common error code; 0: Succeeded; other values: Failed.
    message String Error message.

    4. Error Code List

    The following list only provides the business logic error codes for this API.

    Error Code English Description Error Description
    9003 InvalidParameter The parameter is incorrect

    5. Example

    Input

    https://cbs.api.cloud.tencent.com/v2/index.php?
    <Common request parameters>
    &Action=ResizeCbsStorage
    &storageId=disk-cw6a3g9w
    &storageSize=100
    

    Output

    {
        "code":"0",
        "message":""
    }

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help