Domain name for API request: cbs.intl.tencentcloudapi.com.
This API is used to query the price for expanding 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: InquiryPriceResizeDisk. |
| 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. |
| DiskSize | Yes | Integer | Specifies the size after expanding the cloud disk in GiB, which should not be less than the current disk size. for the cloud disk size range, please refer to the product type of CBS (https://www.tencentcloud.com/document/product/362/2353?from_cn_redirect=1). |
| DiskId | No | String | Cloud disk ID. can be queried via the DescribeDisks api. mutually exclusive with the DiskIds parameter. |
| ProjectId | No | Integer | cloud disk project ID. obtain this parameter by calling the projectId field in the return value of DescribeProject. if input, it is only for authentication. |
| DiskIds.N | No | Array of String | Cloud disk ID list. queried via the DescribeDisks api. mutually exclusive with the DiskId parameter. |
| Parameter Name | Type | Description |
|---|---|---|
| DiskPrice | PrepayPrice | Describes the price of expanding the cloud disk. |
| 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 for scaling out a cloud disk to 200G.
https://cbs.intl.tencentcloudapi.com/?Action=InquiryPriceResizeDisk
&DiskId=disk-dw0bbzws
&DiskSize=200
&<Common request parameters>
{
"Response": {
"RequestId": "138749c3-94a5-426e-8621-37c4b228951c",
"DiskPrice": {
"UnitPriceDiscountHigh": null,
"DiscountPrice": 119.95,
"DetailPrices": [
{
"PriceTitle": "Cloud disk backup point quota"
"DiscountPrice": 0.0,
"ChargeUnit": null,
"UnitPriceHigh": null,
"OriginalPriceHigh": null,
"PriceName": "DiskBackupQuota",
"OriginalPrice": 0.0,
"UnitPriceDiscountHigh": null,
"UnitPriceDiscount": null,
"DiscountPriceHigh": null,
"UnitPrice": null
},
{
"PriceTitle": "CBS space"
"DiscountPrice": 119.95,
"ChargeUnit": null,
"UnitPriceHigh": null,
"OriginalPriceHigh": null,
"PriceName": "DiskSpace",
"OriginalPrice": 428.42,
"UnitPriceDiscountHigh": null,
"UnitPriceDiscount": null,
"DiscountPriceHigh": null,
"UnitPrice": null
},
{
"PriceTitle": "CBS performance package"
"DiscountPrice": 0.0,
"ChargeUnit": null,
"UnitPriceHigh": null,
"OriginalPriceHigh": null,
"PriceName": "DiskExtraPerformance",
"OriginalPrice": 0.0,
"UnitPriceDiscountHigh": null,
"UnitPriceDiscount": null,
"DiscountPriceHigh": null,
"UnitPrice": null
}
],
"UnitPriceHigh": null,
"OriginalPriceHigh": null,
"ChargeUnit": null,
"OriginalPrice": 428.42,
"UnitPriceDiscount": null,
"DiscountPriceHigh": null,
"UnitPrice": 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 |
|---|---|
| InvalidDisk.Expire | The cloud disk has expired. |
| InvalidDisk.NotPortable | Non-elastic cloud disks are not supported. |
| InvalidInstanceId.NotFound | The ‘InstanceId’ entered does not exist. |
| InvalidParameterValue | Invalid parameter value. |
| MissingParameter | Missing parameter. |
| ResourceUnavailable.Expire | The cloud disk has expired. |
피드백