Domain name for API request: cbs.tencentcloudapi.com.
API domain name: cbs.tencentcloudapi.com.
This API is used to change the billing mode of cloud disks.
You can only use this API to change the billing method from POSTPAID_BY_HOUR
to PREPAID
.
This API does not support non-elastic cloud disks. Please use modifyinstanceschargetype
API to convert CVM instances and the bound non-elastic cloud disks.
Default API request frequency limit: 10 times/second.
A maximum of 10 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: ModifyDisksChargeType |
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. |
DiskIds.N | Yes | Array of String | The ID(s) of one or multiple cloud disks to be operated. The maximum number of cloud disks per request is 100. |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://cbs.tencentcloudapi.com/?Action=ModifyDisksChargeType
&DiskIds.0=disk-jwk0zvrg
&DiskChargePrepaid.Period=1
&DiskChargePrepaid.RenewFlag=NOTIFY_AND_AUTO_RENEW
&<common request parameters>
{
"Response": {
"RequestId": "d39d6c09-44e9-4e80-8661-77b5ff3cbc15"
}
}
This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.
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.Busy | The cloud disk is busy. Try again later. |
InvalidDisk.NotPortable | Non-elastic cloud disk not supported. |
InvalidDisk.NotSupported | Indicates that the operation is not supported for the cloud disk. |
InvalidDiskId.NotFound | The ‘DiskId’ entered does not exist. |
InvalidParameter | Invalid parameter |
InvalidParameterValue | Invalid parameter value. Parameter value format error or parameter value not supported. |
MissingParameter | Missing parameter. Request does not include the required parameter. |
Was this page helpful?