setServerInstanceHealth
    • PDF

    setServerInstanceHealth

    • PDF

    Article Summary

    概要

    サーバインスタンスのヘルスステータス更新

    説明

    ユーザーが保有するAuto Scaling Group所属のサーバインスタンスのヘルスステータスを設定できます。

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    serverInstanceNoYesString-サーバインスタンスの識別番号であり、会員のAuto Scaling Group所属のサーバインスタンスでない場合は有効ではありません。
    healthStatusCodeYesStringMin : 1, Max : 5ヘルスステータスコードであり、有効値にHEALTHY(HLTHY)とNHEALTHY(UNHTH)があります。前に記載した括弧の中のコード値を使うこと、サーバインスタンスが作成されてからサービスに投入された以降のみ可能です。
    shouldRespectGracePeriodNoBoolean-ヘルスチェック保留期間(healthCheckGracePeriod)遵守区分をtrue/falseで入力します。
    サーバインスタンスが作成された以降にサービスに投入された時刻からhealthCheckGracePeriod期間が過ぎない場合、unhealthyステータスに変更しようとしても適用されません。デフォルトでその保留期間を遵守します。
    その値がFalseである場合、その保留期間を遵守しません。

    レスポンスデータタイプ

    • CommonResponseタイプ
    CommonResponse extends BaseObject
    private String requestId;
    private String returnCode;
    private String returnMessage;

    例示

    呼び出し

    ncloud autoscaling setServerInstanceHealth --serverInstanceNo 396463 --healthStatusCode HLTHY
    

    レスポンス

    {
      "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>
    

    この記事は役に立ちましたか?

    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.