Management Plane API > Networking > Services > Loadbalancer

Update a load balancer virtual server

Update a load balancer virtual server.

Request:

Method:
PUT
URI Path(s):
/api/v1/loadbalancer/virtual-servers/<virtual-server-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LbVirtualServer+

Example Request:

PUT https://<nsx-mgr>/api/v1/loadbalancer/virtual-servers/a332950f-472d-4ae3-be03-e7ccefe28fbd { "resource_type" : "LbVirtualServer", "id" : "a332950f-472d-4ae3-be03-e7ccefe28fbd", "display_name" : "vs1", "ip_address" : "192.168.100.101", "ports" : [ "80" ], "pool_id" : "bf972923-9c40-4183-9a27-8e02d138e8e2", "enabled" : true, "ip_protocol" : "TCP", "port" : "80", "access_log_enabled" : false, "application_profile_id" : "cb2d0721-cc15-5b8e-8633-14be114eac5e", "_create_time" : 1515662800997, "_last_modified_user" : "admin", "_last_modified_time" : 1515662800997, "_system_owned" : false, "_create_user" : "admin", "_protection" : "NOT_PROTECTED", "_revision" : 0 }

Successful Response:

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

Example Response:

{ "resource_type" : "LbVirtualServer", "id" : "a332950f-472d-4ae3-be03-e7ccefe28fbd", "display_name" : "virtualserver1", "ip_address" : "192.168.100.101", "ports" : [ "80" ], "pool_id" : "bf972923-9c40-4183-9a27-8e02d138e8e2", "enabled" : true, "ip_protocol" : "TCP", "port" : "80", "access_log_enabled" : false, "application_profile_id" : "cb2d0721-cc15-5b8e-8633-14be114eac5e", "_create_time" : 1515662800997, "_last_modified_user" : "admin", "_last_modified_time" : 1515736438559, "_system_owned" : false, "_create_user" : "admin", "_protection" : "NOT_PROTECTED", "_revision" : 1 }

Required Permissions:

crud

Feature:

lb_virtual_servers

Additional Errors: