setServerInstanceHealth
    • PDF

    setServerInstanceHealth

    • PDF

    Article summary

    Overview

    Adjust health status of server instances

    Description

    Adjust health status of server instances under Auto Scaling Group of a user.

    Request Parameters

    ParameterRequiredTypeRestrictionsDescription
    serverInstanceNoYesString-Identification number of a server instance to adjust health status.
    The number is invalid if the server instance does not belong to Auto Scaling Group.
    healthStatusCodeYesStringMin : 1, Max : 5HEALTHY(HLTHY) and UNHEALTHY(UNHTH) are available values of the health status code. Use the code values in parenthesis above.
    It can only be used once a server instance has been created and added to a service.
    shouldRespectGracePeriodNoBoolean-Whether to honor healthCheckGracePeriod
    If the healthCheckGracePeriod is not exceeded from the time when a server instance was created and added to a service,
    the status cannot be changed into unhealthy. The grace period will be followed as the default value.
    If the value is false, the grace period will not be complied with.

    Response Data type

    • CommonResponse Type
    CommonResponse extends BaseObject
    private String requestId;
    private String returnCode;
    private String returnMessage;

    Examples

    Request

    ncloud autoscaling setServerInstanceHealth --serverInstanceNo 396463 --healthStatusCode HLTHY
    

    Response

    {
      "setServerInstanceHealthResponse": {
        "requestId": "e6715629-bf2c-4991-b2ea-a7606f2fe488",
        "returnCode": "0",
        "returnMessage": "success"
      }
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <setServerInstanceHealthResponse>
      <requestId>e6715629-bf2c-4991-b2ea-a7606f2fe488</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
    </setServerInstanceHealthResponse>
    

    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.