Domain name for API request: billing.intl.tencentcloudapi.com.
Notes:
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: SetRenewal. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-09. |
| Region | No | String | Common Params. This parameter is not required. |
| ProductCode | Yes | String | Product code. |
| RegionCode | Yes | String | Region code. |
| InstanceId | Yes | String | Instance ID. Only one can be specified. |
| RenewFlag | Yes | String | Renewal flag. Enumeration values are as follows: NOTIFY_AND_MANUAL_RENEW: manual renewal. NOTIFY_AND_AUTO_RENEW: automatic renewal. DISABLE_NOTIFY_AND_MANUAL_RENEW: non-renewal upon expiration. |
| RenewPeriod | No | String | Automatic renewal cycle length. If left empty, the default value set by product is used. If it is month, support: 1-11 If it is year, support: 1-5. Supported range mainly depends on the product side. |
| RenewPeriodUnit | No | String | Automatic renewal cycle unit. If left empty, the default value set by the product is used. Year y, month m Supported range mainly depends on the product side. |
| Parameter Name | Type | Description |
|---|---|---|
| InstanceList | Array of OperateRsp | Instance list when the operation fails. |
| 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. |
POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SetRenewal
<Common request parameters>
{
"ProductCode": "p_cos",
"RegionCode": "ap-others",
"InstanceId": "std_storage-20240902185001827926251-1",
"RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
"RenewPeriod": "3",
"RenewPeriodUnit": "m"
}
{
"Response": {
"InstanceList": [],
"RequestId": "6a5c90f0-10e8-4586-97f7-abafa2e46dcf"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Feedback