Domain name for API request: redis.intl.tencentcloudapi.com.
This API is used to change the billing type of an instance.
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: ModifyInstanceChargeType. |
| Version | Yes | String | Common Params. The value used for this API: 2018-04-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceIds.N | Yes | Array of String | Instance ID Array Input parameter limitation: Length of batch operation array not exceeding 20 |
| InstanceChargeType | Yes | String | Operation type for billing mode change Enumeration value:
|
| Period | No | Integer | Purchase duration is required only when InstanceChargeType=PREPAID. Valid values: 1 to 36. Unit: months. |
| Parameter Name | Type | Description |
|---|---|---|
| FailedInstanceIds | Array of FailedInstance | Summary of failed instance modification info |
| 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: redis.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyInstanceChargeType
<Common request parameters>
{
"InstanceIds": [
"crs-fdfavarz"
],
"InstanceChargeType": "POSTPAID"
}
{
"Response": {
"FailedInstanceIds": [],
"RequestId": "7ec26376-733c-4889-92e5-acb3a14fa8ec"
}
}
POST / HTTP/1.1
Host: redis.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyInstanceChargeType
<Common request parameters>
{
"InstanceIds": [
"crs-4xdghyew"
],
"InstanceChargeType": "PREPAID",
"Period": 1
}
{
"Response": {
"FailedInstanceIds": [],
"RequestId": "bf20dfeb-894e-410f-8973-93cb29e0b9cf"
}
}
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 |
|---|---|
| InvalidParameter.EmptyParam | The parameter is empty. |
| InvalidParameter.InvalidParameter | Invalid service parameter. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback