NSX-T Data Center REST API

Create or update a LBMonitorProfile

If a LBMonitorProfile with the vpc-lb-monitor-profile-id is not
already present, create a new LBMonitorProfile. If it already exists,
update the LBMonitorProfile. This is a full replace.

NSX Load Balancer availability in terms of use-cases and editions is
specified in NSX Feature and Edition Guide. Please review before consuming
those APIs.
This API is only available when using VMware NSX.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/vpc-lb-monitor-profiles/{vpc-lb-monitor-profile-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LBActiveMonitor+
LBHttpMonitorProfile+
LBHttpsMonitorProfile+
LBIcmpMonitorProfile+
LBPassiveMonitorProfile+
LBTcpMonitorProfile+
LBUdpMonitorProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/vpc-1/vpc-lb-monitor-profiles/httpMonitor { "resource_type": "LBHttpMonitorProfile", "monitor_port": 80, "interval": 42, "timeout": 14, "rise_count": 4, "fall_count": 4, "request_url":"/default/", "request_method": "GET", "request_version": "HTTP_VERSION_1_1", "response_status_codes": [ 200, 300 ] }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LBActiveMonitor+
LBHttpMonitorProfile+
LBHttpsMonitorProfile+
LBIcmpMonitorProfile+
LBPassiveMonitorProfile+
LBTcpMonitorProfile+
LBUdpMonitorProfile+

Example Response:

{ "resource_type": "LBHttpMonitorProfile", "id": "httpMonitor", "display_name": "httpMonitor", "path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/vpc-lb-monitor-profiles/httpMonitor", "parent_path": "/orgs/org-1/projects/project-1/vpcs/vpc-1", "relative_path": "httpMonitor", "monitor_port": 80, "interval": 42, "timeout": 14, "rise_count": 4, "fall_count": 4, "request_url": "/default/", "request_method": "GET", "request_version": "HTTP_VERSION_1_1", "response_status_codes": [ 200, 300 ], "_create_user": "vpc_admin", "_create_time": 1516581593173, "_last_modified_user": "vpc_admin", "_last_modified_time": 1516581593173, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: