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

Create or update a LBService

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 only available when using VMware NSX-T.

Request:

Method:
PUT
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:

PUT 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:
Content-type: application/json
Response Body:
LBService+

Example Response:

{ "resource_type": "LBService", "id": "cgwLbService", "display_name": "cgwLbService", "path": "/infra/lb-services/cgwLbService", "parent_path": "/infra", "relative_path": "cgwLbService", "marked_for_delete": false, "size": "SMALL", "error_log_level": "INFO", "access_log_enabled": false, "enabled": true, "_create_user": "admin", "_create_time": 1531109024949, "_last_modified_user": "admin", "_last_modified_time": 1531109024949, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: