Domain name for API request: cbs.tencentcloudapi.com.
This API (InquiryPriceCreateDisks) is used to inquire the price for cloud disk creation.
A maximum of 20 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: cbs.ap-shanghai-fsi.tencentcloudapi.com
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 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: |
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. |
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). |
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. |
https://cbs.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
&DiskType=CLOUD_TSSD
&DiskCount=1
&DiskSize=500
&DiskChargeType=PREPAID
&DiskChargePrepaid.Period=1
&ThroughputPerformance=100
&<Common request parameters>
{
"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
}
}
}
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.
https://cbs.tencentcloudapi.com/?Action=InquiryPriceCreateDisks
&DiskType=CLOUD_PREMIUM
&DiskSize=100
&DiskCount=1
&DiskChargeType=POSTPAID_BY_HOUR
&<Common request parameters>
{
"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"
}
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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?