Policy > Networking > Network Services > Load Balancing > Load Balancer Pools

Create or update a LBPool

If a LBPool with the lb-pool-id is not already present,
create a new LBPool. If it already exists, update the
LBPool. This is a full replace.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/lb-pools/<lb-pool-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LBPool+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/lb-pools/testPool1 { "active_monitor_paths":[ "/infra/lb-monitor-profiles/default-http-lb-monitor"], "snat_translation": { "type": "LBSnatAutoMap" }, "member_group":{ "group_path":"/infra/domains/testDom/groups/testGroup", "port":80 } }

Successful Response:

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

Example Response:

{ "resource_type": "LBPool", "id": "testPool1", "display_name": "/infra/lb-pools/testPool1", "path": "/infra/lb-pools/testPool1", "parent_path": "/infra/lb-pools/testPool1", "relative_path": "testPool1", "marked_for_delete": false, "member_group": { "port": 80, "group_path": "/infra/domains/testDom/groups/testGroup" }, "active_monitor_paths": [ "/infra/lb-monitor-profiles/default-http-lb-monitor" ], "snat_translation": { "type": "LBSnatAutoMap", "port_overload": 32 }, "algorithm": "ROUND_ROBIN", "tcp_multiplexing_enabled": false, "tcp_multiplexing_number": 6, "min_active_members": 1, "_create_user": "admin", "_create_time": 1531109334077, "_last_modified_user": "admin", "_last_modified_time": 1531109864964, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: