• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. LBaas
  6. Update health monitor

Update health monitor

Function Description

This interface is used to update health monitors.

Interface Format

Method

URI

Description

PUT

/v2.0/lbaas/healthmonitors/{healthmonitor_id}

Updates health monitors.

Restrictions

Only the fields delaymax_retriesnametimeouthttp_methodexpected_codesurl_path, and admin_state_up can be updated.

If the provisioning status of the load balancer bound to health check is not ACTIVE, the health check cannot be updated.

Request Parameter

Parameter

Type

Mandatory

Description

healthmonitor

Dict

Yes

Specifies the health check. For details, see Table 6.

Response Parameter

Parameter

Type

Mandatory

Description

healthmonitor

Dict

Yes

Specifies the health check. For details, see Table 6.

Request Example

PUT /v2.0/lbaas/healthmonitors/b7633ade-24dc-4d72-8475-06aa22be5412
{
  "healthmonitor": {
    "delay": "15",
    "name": "health-xx",
    "timeout": "12"
  }
}

Response Example

{
  "healthmonitor": {
    "name": "health-xx",
    "admin_state_up": true,
    "tenant_id": "145483a5107745e9b3d80f956713e6a3",
    "delay": 15,
    "expected_codes": "200",
    "max_retries": 10,
    "http_method": "GET",
    "timeout": 12,
    "pools": [
      {
        "id": "bb44bffb-05d9-412c-9d9c-b189d9e14193"
      }
    ],
    "url_path": "/",
    "type": "HTTPS",
    "id": "2dca3867-98c5-4cde-8f2c-b89ae6bd7e36"
  }
}

Error Code

See section Return Code Processing.