Domain name for API request: edgezone.intl.tencentcloudapi.com.
This API is used to terminate a physical machine instance and free up resources. It synchronously releases network resources (IP recycling) and updates status to terminating, while performing disk cleanup asynchronously in the background. It supports partially successful operations.
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: TerminateInstances. |
| Version | Yes | String | Common Params. The value used for this API: 2026-04-01. |
| 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 list. Maximum number of IDs: 100. |
| Parameter Name | Type | Description |
|---|---|---|
| InstanceIdSet | Array of String | List of instance IDs successfully terminated. |
| FailedInstanceSet | Array of FailedInstance | List of instances with termination failed (returned when partially successful). Note: This field may return null, indicating that no valid values can be obtained. |
| 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. |
Batch terminate two instances, one of which fails due to invalid status.
POST / HTTP/1.1
Host: edgezone.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: TerminateInstances
<Common request parameters>
{
"InstanceIds": [
"bms-mnop3456",
"bms-abcd1234"
]
}
{
"Response": {
"InstanceIdSet": [
"bms-mnop3456"
],
"FailedInstanceSet": [
{
"InstanceId": "bms-abcd1234",
"ErrorCode": "UnsupportedOperation.InvalidInstanceState",
"ErrorMessage": "Instance bms-abcd1234 is in allocating status, cannot terminate"
}
],
"RequestId": "f2a3b456-7c8d-9e0f-1a2b-3c4d5e6f7a8b"
}
}
Terminate the specified instance. Upon success, the instance status changes to terminating.
POST / HTTP/1.1
Host: edgezone.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: TerminateInstances
<Common request parameters>
{
"InstanceIds": [
"bms-mnop3456"
]
}
{
"Response": {
"InstanceIdSet": [
"bms-mnop3456"
],
"RequestId": "eac6b301-a322-493a-8e36-83b295459397"
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| ResourceNotFound.Instance | Physical machine instance does not exist |
| UnsupportedOperation.InvalidInstanceState | UnsupportedOperation.InvalidInstanceState |
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