Domain name for API request: cbs.intl.tencentcloudapi.com.
This API is used to query the price of creating cloud disks.
A maximum of 20 requests can be initiated per second for this API.
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. |
| DiskType | Yes | String | Hard disk media type. valid values:
|
| 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. |
| 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. |
This example shows you how to query the price of purchasing a 100GB high-performance cloud block storage with hourly postpaid billing type.
https://cbs.intl.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"
}
}
}
This example shows you how to query the price of purchasing an hourly pay-as-you-go 100 GB premium cloud disk.
https://cbs.intl.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
}
}
}
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. |
Feedback