Management Plane API > Networking > Services > Loadbalancer

Create a load balancer monitor

Create a load balancer monitor.

Request:

Method:
POST
URI Path(s):
/api/v1/loadbalancer/monitors
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LbHttpMonitor+
LbHttpsMonitor+
LbIcmpMonitor+
LbPassiveMonitor+
LbTcpMonitor+
LbUdpMonitor+

Example Request:

POST https://<nsx-mgr>/api/v1/loadbalancer/monitors { "request_method":"GET", "response_status_codes":[200], "request_version":"HTTP_VERSION_1_1", "request_url":"/", "monitor_port":"80", "fall_count":1, "interval":1, "rise_count":1, "timeout":1, "resource_type":"LbHttpMonitor", "display_name":"LB_Http_Monitor", "description":"LB_Http_Monitor" }

Successful Response:

Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
LbHttpMonitor+
LbHttpsMonitor+
LbIcmpMonitor+
LbPassiveMonitor+
LbTcpMonitor+
LbUdpMonitor+

Example Response:

{ "resource_type" : "LbHttpMonitor", "description" : "LB_Http_Monitor", "id" : "ab1c038f-565a-4870-a61c-b731f99f0bb4", "display_name" : "LB_Http_Monitor", "monitor_port" : "80", "interval" : 1, "timeout" : 1, "rise_count" : 1, "fall_count" : 1, "response_status_codes" : [ 200 ], "request_version" : "HTTP_VERSION_1_1", "request_method" : "GET", "request_url" : "/", "_create_time" : 1515737352635, "_last_modified_user" : "admin", "_last_modified_time" : 1515737352635, "_system_owned" : false, "_create_user" : "admin", "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Required Permissions:

crud

Feature:

lb_monitors

Additional Errors: