tencent cloud



最后更新时间:2022-01-19 10:54:35

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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: InquiryPriceCreateDisks.
Version Yes String Common parameter. The value used for this API: 2017-03-12.
Region Yes String Common parameter. 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 for purchasing one 500 GB TSSD cloud disk with the extra throughput of 100 MB/s 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 hourly-billed pay-as-you-go cloud disk

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

    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.




    7x24 电话支持