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

Create or update a LBPersistenceProfile

If a LBPersistenceProfile with the lb-persistence-profile-id is not
already present, create a new LBPersistenceProfile. If it already exists,
update the LBPersistenceProfile. 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:
PUT
URI Path(s):
/policy/api/v1/infra/lb-persistence-profiles/{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/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": "/infra/lb-persistence-profiles/sourceIpPersistence", "path": "/infra/lb-persistence-profiles/sourceIpPersistence", "parent_path": "/infra/lb-persistence-profiles/sourceIpPersistence", "relative_path": "sourceIpPersistence", "purge": "FULL", "timeout": 300, "ha_persistence_mirroring_enabled": false, "persistence_shared": false, "_create_user": "admin", "_create_time": 1516320253128, "_last_modified_user": "admin", "_last_modified_time": 1516320253128, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_lb

Additional Errors: