Description
Health monitor can associate to multiple POOL.
However, it cannot associate to the POOL which is already associated by other health monitor.
All members should be deleted first when you associate the health monitor to POOL. Otherwise the operation cannot be performed.
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 Token | header | |
| pool_id | Pool ID | URI | |
| id | health_monitor_id | plain |
Request Json
{
"health_monitor": {
"id": "18aa7ef8-2074-4a81-9615-c3c4a0f7fb9d"
}
}
Normal response codes
201
Example
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.cloud.z.com/v2.0/lb/pools/c6be7cbb-7179-4ae2-8645-1b7e54ae6a27/health_monitors
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": {}
}