Releases an ApsaraDB for Redis instance.
For more information about how to perform the corresponding operation in the console, see Release an instance.
Before you call this operation, make sure that the following requirements are met:
- The instance is in the running state.
- The instance is charged on a pay-as-you-go basis.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteInstance |
The operation that you want to perform. Set the value to DeleteInstance. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance that you want to release. |
GlobalInstanceId | String | No | gr-bp14rkqrhac**** |
The ID of the distributed instance to which the instance belongs. This parameter is applicable to only China site (aliyun.com). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 5D622714-AEDD-4609-9167-F5DDD3D190D2 |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=DeleteInstance
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>
Sample success responses
XML
format
<DeleteInstanceResponse>
<RequestId>5D622714-AEDD-4609-9167-F5DDD3D190D2</RequestId>
</DeleteInstanceResponse>
JSON
format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D190D2"
}
Error codes
For a list of error codes, visit the API Error Center.