NSX Autonomous Edge REST API

Update an L2VPN session with a new peer code

Updating an L2VPN Session can be performed only through this API
by specifying new peer codes. Use of specific APIs to update the
L2VPN Session and the system-owned resources associated with it
is not allowed.
API supported only when L2VPN Service is in Client Mode.

Request:

Method:
PUT
URI Path(s):
/vpn/l2vpn/sessions/{l2vpn-session-id}?action=update_with_peer_code
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
L2VPNSession+

Example Request:

{ "description": "L2Vpn session", "display_name": "L2Vpn session", "transport_tunnels": [ { "peer_code": "MCwwYTMyNWE4LHsic2l0ZU5hbWUiOiJJUFNlY1ZQTl9Sb3V0ZUJhc2VzZFNlc3Npb25fMDAxIiwic3JjVGFwSXAiOiIx NjkuMjU0LjY0LjIiLCJkc3RUYXBJcCI6IjE2OS4yNTQuNjQuMSIsImlrZU9wdGlvbiI6ImlrZXYyIiwiZW5jYXBQcm90 byI6ImdyZS9pcHNlYyIsImRoR3JvdXAiOiJkaDE0IiwiZW5jcnlwdEFuZERpZ2VzdCI6ImFlcy1nY20vc2hhLTI1NiIs InBzayI6InBhbmthaiIsInR1bm5lbHMiOlt7ImxvY2FsSWQiOiIxLjEuNS4xMDAiLCJwZWVySWQiOiIxOTIuMTY4LjEy OC4xIiwibG9jYWxWdGlJcCI6IjE5Mi4xNjguMS4yLzI0In1dfQ==", "peer_address": "10.10.10.10", "local_address": "20.20.20.20" } ] }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
L2VPNSession+

Example Response:

{ "resource_type": "L2VPNSession", "description": "L2vpn session", "id": "a4181e5c-5532-4498-af88-1c09a452a0b6", "display_name": "L2Vpn session", "transport_tunnels": [ { "peer_address": "10.10.10.10", "local_address": "20.20.20.20", "ipsec_session_id": "07829375-9aa8-4f82-9cb7-3c028bf81ca3" } ] "enabled": true }

Required Permissions:

crud

Feature:

vpn

Additional Errors: