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 Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
pool_id | プールID | URI | プールIDを指定します。 |
health_monitor_id | ヘルスモニタID | plain | ヘルスモニタ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“}}’ \ https://networking.odc01.eva-clouds.com/v2.0/lb/pools/プールID/health_monitors |
Response
HTTP/1.1 201 Created Date: Mon, 11 Jul 2016 07:20:26 GMT Server: Apache Content-Length: 22 Content-Type: application/x-www-form-urlencoded { |