Overview
Terminate server instances that belong to the autoscaling group
Description
Terminate the assigned server instance. You can reduce group’s size by one while deleting a server instance.
Request Parameters
Parameter | Required | Type | Restrictions | Description |
---|---|---|---|---|
serverInstanceNo | Yes | String | - | Identification number of the server instance to delete. It is not valid unless the server instance is in an autoscaling group. |
shouldDecrementDesiredCapacity | Yes | Boolean | - | Whether to reduce the size of the associated autoscaling group at the same time as deleting the server instance. To reduce it, type true. Otherwise, enter false. ※ If this value is true, the group size will be (existing group size - 1). |
Response Data type
- CommonResponse Type
CommonResponse extends BaseObject |
---|
private String requestId; |
private String returnCode; |
private String returnMessage; |
Examples
Request
ncloud autoscaling terminateServerInstanceInAutoScalingGroup --serverInstanceNo 401184 --shouldDecrementDesiredCapacity true
Response
{
"terminateServerInstanceInAutoScalingGroupResponse": {
"requestId": "163f6617-d105-47ab-8c3d-840b56051e68",
"returnCode": "0",
"returnMessage": "success"
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<terminateServerInstanceInAutoScalingGroupResponse>
<requestId>163f6617-d105-47ab-8c3d-840b56051e68</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
</terminateServerInstanceInAutoScalingGroupResponse>