Policy > Networking > Network Services > Advanced Load Balancing > Alb Health Monitors

Create or update a ALBHealthMonitor

If a ALBHealthMonitor with the alb-HealthMonitor-id is not
already present, create a new ALBHealthMonitor. If it already exists,
update the ALBHealthMonitor. This is a full replace.
This API is only available when using VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/alb-health-monitors/<alb-healthmonitor-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
ALBHealthMonitor+

Example Request:

{ "description": "CREATE HM", "failed_checks": 2, "http_monitor": { "http_request": "GET / HTTP/1.0", "http_response_code": [ "HTTP_2XX" ] }, "is_federated": false, "monitor_port": 8000, "name": "httpMonitor", "receive_timeout": 4, "send_interval": 10, "successful_checks": 2, "type": "HEALTH_MONITOR_HTTP" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
ALBHealthMonitor+

Example Response:

{ "_create_time": 1591593877373, "_create_user": "admin", "_last_modified_time": 1591593877375, "_last_modified_user": "admin", "_protection": "NOT_PROTECTED", "_revision": 0, "_system_owned": false, "allow_duplicate_monitors": false, "description": "CREATE HM", "disable_quickstart": false, "display_name": "httpMonitor", "failed_checks": 2, "http_monitor": { "exact_http_request": false, "http_request": "GET / HTTP/1.0", "http_response_code": [ "HTTP_2XX" ] }, "id": "httpMonitor", "is_federated": false, "marked_for_delete": false, "monitor_port": 8000, "name": "httpMonitor", "overridden": false, "parent_path": "/infra", "path": "/infra/alb-health-monitors/httpMonitor", "receive_timeout": 4, "relative_path": "httpMonitor", "resource_type": "HealthMonitor", "send_interval": 10, "successful_checks": 2, "type": "HEALTH_MONITOR_HTTP", "unique_id": "f24ffab8-e7b6-4394-b1d7-f6d7320200d1" }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: