MENU
ヘルスモニタの関連付け - Network API v2.0
Description
ヘルスモニターは、複数のPOOLに割り当てることができます。
但し、既に別のヘルスモニターが割り当てられているPOOLには割り当てられません
関連付けをするPoolにmemberが紐付いている場合には関連付けができません。 関連付け前にmemberを全て削除する必要があります。
Request URL
Network API v2.0 POST /v2.0/lb/pools/{pool_id}/health_monitors
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
pool_id | Pool ID | URI | プールID |
id | health_monitor_id | plain | ヘルスモニタID |
Request Json
{ "health_monitor": { "id": "18aa7ef8-2074-4a81-9615-c3c4a0f7fb9d" } }
Normal response codes
201
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 0925897a3d4543218ff0dcd2bb378a8e" \ -d '{"health_monitor":{"id":"18aa7ef8-2074-4a81-9615-c3c4a0f7fb9d"}}' \ https://networking.tyo1.conoha.io/v2.0/lb/pools/c6be7cbb-7179-4ae2-8645-1b7e54ae6a27/health_monitors
- RES
HTTP/1.1 201 Created Server: openresty/1.7.10.1 Date: Fri, 08 May 2015 12:01:26 GMT Content-Type: application/json Content-Length: 21 Connection: keep-alive { "health_monitor": {} }