terminateServerInstanceInAutoScalingGroup

Prev Next

Overview

Terminate the specified server instance. You can choose to reduce the group size by one at the same time as deleting the server instance.

Request

Request parameters

Parameter name Required Type Restrictions Description
serverInstanceNo Yes String - - Identification number of the server instance to be deleted
Invalid if the server instance does not belong to an auto scaling group
shouldDecrementDesiredCapacity Yes Boolean - - Whether to reduce the size of the auto scaling group by one at the same time as deleting the server instance
Enter true to reduce, false if not.
responseFormatType No String - Format type of the response result
Options: xml | json
Default: xml

Response

Response body

Examples

Request example

{AUTOSCALILNG_API_URL}/terminateServerInstanceInAutoScalingGroup
?serverInstanceNo=68124
&shouldDecrementDesiredCapacity=false

Response example

<terminateServerInstanceInAutoScalingGroupResponse>
   <requestId>1d7573fd-d321-400b-82bd-8a3a9692b5b6</requestId>
   <returnCode>0</returnCode>
   <returnMessage>success</returnMessage>
</terminateServerInstanceInAutoScalingGroupResponse>