NSX-T Data Center REST API

Create or update a LBPersistenceProfile

If a LBPersistenceProfile with the vpc-lb-persistence-profile-id is not
already present, create a new LBPersistenceProfile. If it already exists,
update the LBPersistenceProfile. This is a full replace.

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-lb-persistence-profiles/{vpc-lb-persistence-profile-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
LBCookiePersistenceProfile+
LBGenericPersistenceProfile+
LBSourceIpPersistenceProfile+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/orgs/org-1/projects/project-1/vpcs/vpc-1/vpc-lb-persistence-profiles/sourceIpPersistence { "resource_type": "LBSourceIpPersistenceProfile" }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
LBCookiePersistenceProfile+
LBGenericPersistenceProfile+
LBSourceIpPersistenceProfile+

Example Response:

{ "resource_type": "LBSourceIpPersistenceProfile", "id": "sourceIpPersistence", "display_name": "sourceIpPersistence", "path": "/orgs/org-1/projects/project-1/vpcs/vpc-1/vpc-lb-persistence-profiles/sourceIpPersistence", "parent_path": "/orgs/org-1/projects/project-1/vpcs/vpc-1", "relative_path": "sourceIpPersistence", "purge": "FULL", "timeout": 300, "ha_persistence_mirroring_enabled": false, "persistence_shared": false, "_create_user": "vpc_admin", "_create_time": 1516320253128, "_last_modified_user": "vpc_admin", "_last_modified_time": 1516320253128, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: