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

Create or update a LBVirtualServer

If a LBService with the lb-service-id is not already
present, create a new LBService. If it already exists, update the
LBService. 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:
PATCH
URI Path(s):
/policy/api/v1/infra/lb-services/{lb-service-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LBService+

Example Request:

PATCH https://<policy-mgr>/policy/api/v1/infra/lb-services/cgwService { "resource_type": "LBService", "enabled": true, "size":"SMALL" }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: