tencent cloud

InquiryPriceResizeDisk

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-12 19:37:48

1. API Description

Domain name for API request: cbs.intl.tencentcloudapi.com.

This API is used to query the price for expanding cloud disks.

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: InquiryPriceResizeDisk.
Version Yes String Common Params. The value used for this API: 2017-03-12.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
DiskSize Yes Integer Specifies the size after expanding the cloud disk in GiB, which should not be less than the current disk size. for the cloud disk size range, please refer to the product type of CBS (https://www.tencentcloud.com/document/product/362/2353?from_cn_redirect=1).
DiskId No String Cloud disk ID. can be queried via the DescribeDisks api. mutually exclusive with the DiskIds parameter.
ProjectId No Integer cloud disk project ID. obtain this parameter by calling the projectId field in the return value of DescribeProject. if input, it is only for authentication.
DiskIds.N No Array of String Cloud disk ID list. queried via the DescribeDisks api. mutually exclusive with the DiskId parameter.

3. Output Parameters

Parameter Name Type Description
DiskPrice PrepayPrice Describes the price of expanding the cloud disk.
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 Querying the Price for Scaling Out a Cloud Disk to 200G

This example shows you how to query the price for scaling out a cloud disk to 200G.

Input Example

https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceResizeDisk
&DiskId=disk-dw0bbzws
&DiskSize=200
&<Common request parameters>

Output Example

{
    "Response": {
        "RequestId": "138749c3-94a5-426e-8621-37c4b228951c",
        "DiskPrice": {
            "UnitPriceDiscountHigh": null,
            "DiscountPrice": 119.95,
            "DetailPrices": [
                {
"PriceTitle": "Cloud disk backup point quota"
                    "DiscountPrice": 0.0,
                    "ChargeUnit": null,
                    "UnitPriceHigh": null,
                    "OriginalPriceHigh": null,
                    "PriceName": "DiskBackupQuota",
                    "OriginalPrice": 0.0,
                    "UnitPriceDiscountHigh": null,
                    "UnitPriceDiscount": null,
                    "DiscountPriceHigh": null,
                    "UnitPrice": null
                },
                {
"PriceTitle": "CBS space"
                    "DiscountPrice": 119.95,
                    "ChargeUnit": null,
                    "UnitPriceHigh": null,
                    "OriginalPriceHigh": null,
                    "PriceName": "DiskSpace",
                    "OriginalPrice": 428.42,
                    "UnitPriceDiscountHigh": null,
                    "UnitPriceDiscount": null,
                    "DiscountPriceHigh": null,
                    "UnitPrice": null
                },
                {
"PriceTitle": "CBS performance package"
                    "DiscountPrice": 0.0,
                    "ChargeUnit": null,
                    "UnitPriceHigh": null,
                    "OriginalPriceHigh": null,
                    "PriceName": "DiskExtraPerformance",
                    "OriginalPrice": 0.0,
                    "UnitPriceDiscountHigh": null,
                    "UnitPriceDiscount": null,
                    "DiscountPriceHigh": null,
                    "UnitPrice": null
                }
            ],
            "UnitPriceHigh": null,
            "OriginalPriceHigh": null,
            "ChargeUnit": null,
            "OriginalPrice": 428.42,
            "UnitPriceDiscount": null,
            "DiscountPriceHigh": null,
            "UnitPrice": null
        }
    }
}

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
InvalidDisk.Expire The cloud disk has expired.
InvalidDisk.NotPortable Non-elastic cloud disks are not supported.
InvalidInstanceId.NotFound The ‘InstanceId’ entered does not exist.
InvalidParameterValue Invalid parameter value.
MissingParameter Missing parameter.
ResourceUnavailable.Expire The cloud disk has expired.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백