NSX-T Data Center REST API
Create or update a load balancer
If a load balancer with the vpc-lb-id doesn't exist, create a new LoadBalancer. If it has already existed, update the load balancer.
This is a full replacement.
NSX Load Balancer availability in terms of use-cases and editions is
specified in NSX Feature and Edition Guide. Please review before consuming
those APIs.
This API is only available when using VMware NSX.
Request:
Method:
PUT
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/vpc-lbs/{vpc-lb-id}
Request Headers:
n/a
Query Parameters:
LbOperationRequestParameters+
Request Body:
LBService+
Example Request:
PUT https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/vpc-1/vpc-lbs/lb-1 { "resource_type": "LBService", "enabled": true, "size":"SMALL" }Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LBService+