Policy > Networking > Network Services > Load Balancing > Load Balancer Virtual Servers

Create or update a LBVirtualServer

If a LBVirtualServer with the lb-virtual-server-id is not already
present, create a new LBVirtualServer. If it already exists, update the
LBVirtualServer. This is a full replace.
This API is deprecated for the NSX-T Load Balancer, but not for the NSX-T Distributed Load Balancer.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/lb-virtual-servers/{lb-virtual-server-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LBVirtualServer+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/lb-virtual-servers/tcpVirtualServer { "resource_type": "LBVirtualServer", "ip_address":"30.1.1.1", "ports": ["1019"], "application_profile_path": "/infra/lb-app-profiles/default-tcp-lb-app-profile" }

Successful Response:

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

Example Response:

{ "resource_type": "LBVirtualServer", "id": "tcpVirtualServer", "display_name": "tcpVirtualServer", "path": "/infra/lb-virtual-servers/tcpVirtualServer", "parent_path": "/infra/lb-virtual-servers/tcpVirtualServer", "relative_path": "tcpVirtualServer", "marked_for_delete": false, "enabled": true, "application_profile_path": "/infra/lb-app-profiles/default-tcp-lb-app-profile", "ip_address": "30.1.1.1", "ports": [ "1019" ], "access_log_enabled": false, "_create_user": "admin", "_create_time": 1531108363743, "_last_modified_user": "admin", "_last_modified_time": 1531108363743, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: