tencent cloud

InquiryPriceCreateDisks
Last updated:2026-02-27 17:42:57
InquiryPriceCreateDisks
Last updated: 2026-02-27 17:42:57

1. API Description

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

This API is used to query the price of creating cloud disks.

  • You can query the price of creating multiple cloud disks in a single request. In this case, the price returned will be the total price.

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: InquiryPriceCreateDisks.
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. This API only supports: ap-bangkok, ap-beijing, ap-chengdu, ap-chongqing, ap-guangzhou, ap-hongkong, ap-jakarta, ap-nanjing, ap-seoul, ap-shanghai, ap-shanghai-fsi, ap-shenzhen-fsi, ap-singapore, ap-tokyo, eu-frankfurt, na-ashburn, na-siliconvalley, sa-saopaulo.
DiskChargeType Yes String Cloud disk billing mode.

  • PREPAID: Prepaid by month.
  • POSTPAID_BY_HOUR: Hourly pay-as-you-go.
  • DiskType Yes String Hard disk media type. valid values:
    • CLOUD_PREMIUM: high-performance CLOUD block storage
    • CLOUD_SSD: SSD CLOUD disk
    • CLOUD_HSSD: enhanced SSD CLOUD disk
    • CLOUD_TSSD: ultra-fast SSD cbs
    .
    DiskSize Yes Integer Specifies the disk capacity in GiB. for the cloud disk size range, please refer to the product type of cloud block storage (https://www.tencentcloud.com/document/product/362/2353?from_cn_redirect=1).
    ProjectId No Integer cloud disk project ID. obtain this parameter by calling the projectId field in the return value of DescribeProject. default to the default project.
    DiskCount No Integer Specifies the number of cloud block storage (cbs) disks to purchase. defaults to 1 if left blank.
    ThroughputPerformance No Integer Specifies the additional performance value of the CBS disk in MiB/s. extra performance is only supported for enhanced SSD (CLOUD_HSSD) and ultra-fast SSD (CLOUD_TSSD) CBS disks exceeding 460GiB in size.
    DiskChargePrepaid No DiskChargePrepaid Prepaid mode, that is, the settings for the monthly subscription-related parameters. through this parameter, you can specify the purchase duration of the monthly subscribed cloud disk, whether to enable auto-renewal, and other attributes. this parameter is required for creating a prepaid cloud disk, but no need to specify it when creating an hourly postpaid cloud disk.
    DiskBackupQuota No Integer Specifies the cloud disk backup point quota.

    3. Output Parameters

    Parameter Name Type Description
    DiskPrice Price Describes the price of newly purchased cloud disks.
    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 of Hourly Postpaid Cloud Disk Purchase

    This example shows you how to query the price of purchasing a 100GB high-performance cloud block storage with hourly postpaid billing type.

    Input Example

    https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
    &DiskType=CLOUD_PREMIUM
    &DiskSize=100
    &DiskCount=1
    &DiskChargeType=POSTPAID_BY_HOUR
    &<Common request parameters>

    Output Example

    {
        "Response": {
            "RequestId": "55e84d71-26f1-4b7c-8dc4-6bc26d0a2411",
            "DiskPrice": {
                "DiscountPrice": null,
                "UnitPrice": 0.04,
                "UnitPriceHigh": "0.042",
                "OriginalPriceHigh": null,
                "OriginalPrice": null,
                "UnitPriceDiscount": 0.04,
                "UnitPriceDiscountHigh": "0.042",
                "DiscountPriceHigh": null,
                "ChargeUnit": "HOUR"
            }
        }
    }

    Example2 Querying Purchase of 1-Month 500G TSSD with 100M Additional Performance Inquiry

    This example shows you how to query the price of purchasing an hourly pay-as-you-go 100 GB premium cloud disk.

    Input Example

    https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
    &DiskType=CLOUD_TSSD
    &DiskCount=1
    &DiskSize=500
    &DiskChargeType=PREPAID
    &DiskChargePrepaid.Period=1
    &ThroughputPerformance=100
    &<Common request parameters>

    Output Example

    {
        "Response": {
            "RequestId": "55e84d71-26f1-4b7c-8dc4-6bc2611d0a2411",
            "DiskPrice": {
                "DiscountPrice": 800.0,
                "UnitPriceHigh": null,
                "OriginalPriceHigh": "800",
                "OriginalPrice": 800.0,
                "UnitPriceDiscount": null,
                "UnitPriceDiscountHigh": null,
                "DiscountPriceHigh": "800",
                "UnitPrice": null,
                "ChargeUnit": 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
    InvalidParameterValue Invalid parameter value.
    MissingParameter Missing parameter.
    Was this page helpful?
    You can also Contact Sales or Submit a Ticket for help.
    Yes
    No

    Feedback