tencent cloud



Last updated: 2022-09-09 10:52:52

    1. API Description

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

    This API (InquiryPriceCreateDisks) is used to inquire the price for cloud disk creation.

    • It supports inquiring the price for the creation of multiple cloud disks. The total price for the creation is returned.

    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.
    DiskType Yes String Cloud disk media type. Valid values:
  • CLOUD_BASIC: HDD cloud disk
  • CLOUD_PREMIUM: Premium Cloud Storage
  • CLOUD_HSSD: Enhanced SSD
  • CLOUD_TSSD: Tremendous SSD.
  • DiskSize Yes Integer Cloud disk size (in GB). For the value range of the cloud disk sizes, see cloud disk Product Types.
    DiskChargeType Yes String Cloud disk billing method.
  • POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
  • DiskChargePrepaid No DiskChargePrepaid Relevant parameter settings for the prepaid mode (i.e., monthly subscription). The monthly subscription cloud disk purchase attributes such as usage period and whether or not auto-renewal is set up can be specified using this parameter.
    This parameter is required when creating a prepaid cloud disk. This parameter is not required when creating an hourly postpaid cloud disk.
    DiskCount No Integer Quantity of cloud disks purchased. If left empty, default is 1.
    ProjectId No Integer ID of project the cloud disk belongs to.
    ThroughputPerformance No Integer Extra performance (in MB/sec) purchased for a cloud disk.
    This parameter is only valid for Enhanced SSD (CLOUD_HSSD) and Tremendous SSD (CLOUD_TSSD).

    3. Output Parameters

    Parameter Name Type Description
    DiskPrice Price Describes the price of purchasing new cloud disk.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying the price of purchasing one 500 GB TSSD cloud disk with the extra performance of 100 MB for one month

    Input Example

    &<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

    Example2 Querying the price of a pay-as-you-go cloud disk billed hourly

    This example shows you how to query the price of a pay-as-you-go premium cloud disk billed hourly with the capacity of 100 GB

    Input Example

    &<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"

    5. Developer Resources


    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.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support