Management Plane API > Networking > Services > Loadbalancer

Add, remove, or modify load balancer pool members

For ADD_MEMBERS, pool members will be created and added to load balancer
pool. This action is only valid for static pool members.
For REMOVE_MEMBERS, pool members will be removed from load balancer pool
via IP and port in pool member settings. This action is only valid for
static pool members.
For UPDATE_MEMBERS, pool members admin state will be updated. This action
is valid for both static pool members and dynamic pool members. For dynamic
pool members, this update will be stored in customized_members field in load
balancer pool member group.

Request:

Method:
POST
URI Path(s):
/api/v1/loadbalancer/pools/<pool-id>
Request Headers:
n/a
Query Parameters:
PoolMemberAction+
Request Body:
PoolMemberSettingList+

Example Request:

POST https://<nsx-mgr>/api/v1/loadbalancer/pools/<pool-id> ?action=UPDATE_MEMBERS { "members":[ { "port":"80", "admin_state":"DISABLED", "ip_address":"192.168.1.101" }, { "port":"80", "admin_state":"GRACEFUL_DISABLED", "ip_address":"192.168.1.102" } ] }

Successful Response:

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

Example Response:

{ "resource_type":"LbPool", "description":"my http pool", "id":"83d97031-5bec-4f67-bc32-56963d68c158", "display_name":"httppool1", "min_active_members":1, "tcp_multiplexing_number":6, "members":[ { "port":"80", "weight":1, "admin_state":"DISABLED", "ip_address":"192.168.1.101", "display_name":"m1", "backup_member":false }, { "port":"80", "weight":1, "admin_state":"GRACEFUL_DISABLED", "ip_address":"192.168.1.102", "display_name":"m2", "backup_member":false }, { "port":"80", "weight":1, "admin_state":"ENABLED", "ip_address":"192.168.1.103", "display_name":"m3", "backup_member":false } ], "tcp_multiplexing_enabled":false, "algorithm":"ROUND_ROBIN", "_create_user":"admin", "_create_time":1510295536792, "_last_modified_user":"admin", "_last_modified_time":1510296553884, "_system_owned":false, "_protection":"NOT_PROTECTED", "_revision":1 }

Required Permissions:

crud

Feature:

lb_pools

Additional Errors: