ヘルスモニタの関連付け

Description

poolに対してヘルスモニタの関連付け(割り当て)をします。
ヘルスモニタは、異なる複数のPOOLに割り当てることができます。
別のヘルスモニタが関連付け(割り当て)られているPOOLには関連付けができません。
また、関連付け(割り当て)をするPoolにmemberが紐付いている場合には関連付けができません。関連付けをする前に対象のpoolに紐付くmemberを全て削除する必要があります。

Request URL

Network API v2.0

POST /v2.0/lb/pools/{pool_id}/health_monitors

Request Json

{
    "health_monitor": {
        "id": "ヘルスモニタID"
    }
}

Request Parameters

Parameter Value Style Description
X-Auth-Token トークンID header トークン発行 にて払い出されたID
pool_id プールID plain 紐付けるプールIDを指定します。
POOL一覧取得 にて任意のプールIDをご確認ください。
health_monitor_id ヘルスモニタID URI ヘルスモニタIDを指定します。
ヘルスモニタ一覧取得 にて任意のヘルスモニタIDをご確認ください。

Response

  • Normal response codes
201

Example

  • Request
curl -i -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: トークンID" \
-d '{"health_monitor":{"id":"ヘルスモニタID"}}' \
ネットワークエンドポイント/lb/pools/プールID/health_monitors
  • Response
HTTP/1.1 201 Created
Date: Sat, 07 Apr 2018 18:17:27 GMT
Server: Apache
Content-Length: 22
Content-Type: application/json

{
    "health_monitor": {}
}

Internet for everyone

Copyright (c) 2024 GMO Internet Group, Inc. All Rights Reserved.