terminateServerInstanceInAutoScalingGroup
    • PDF

    terminateServerInstanceInAutoScalingGroup

    • PDF

    Article summary

    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

    ParameterRequiredTypeRestrictionsDescription
    serverInstanceNoYesString-Identification number of the server instance to delete.
    It is not valid unless the server instance is in an autoscaling group.
    shouldDecrementDesiredCapacityYesBoolean-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>
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.