Policy > Networking > Network Services > VPN > L2VPN > Sessions

Get Tier-1 L2VPN session configuration for the peer site (Deprecated)

Get peer config for the Tier-1 L2VPN session to configure the remote
side of the tunnel.
- no enforcement point path specified: L2VPN Session Peer Codes
will be evaluated on each enforcement point.
- enforcement point paths specified: L2VPN Session Peer Codes
are evaluated only on the given enforcement points.
API supported only when L2VPN Service is in Server Mode.
Deprecated: This API is deprecated. Please use GET /infra/tier-1s/<tier-1-id>/l2vpn-services/<service-id>/ sessions/<session-id>/peer-config instead. Note: The API will return a new VPN path for "transport_tunnel_path" in the response payload instead of the deprecated API path Both paths refer to the same object. Please note that request is validated and any error messages returned from validation may include the new VPN path instead of the deprecated path. Both new path and old path refer to same resource.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-1s/{tier-1-id}/locale-services/{locale-service-id}/l2vpn-services/{service-id}/sessions/{session-id}/peer-config
Request Headers:
n/a
Query Parameters:
PolicyRuntimeOnEpRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/tier-1s/cgw/locale-services/default/l2vpn-services/default/sessions/streteched-pa-site/peer-config

Successful Response:

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

Example Response:

{ "l2vpn_session_path": "/infra/tier-1s/cgw/locale-services/default/l2vpn-services/default/sessions/streteched-pa-site", "peer_config_per_enforcement_point": [ { "resource_type": "L2VPNSessionPeerCodes", "enforcement_point_path": "/infra/sites/default/enforcement-points/nsxt", "peer_codes": [ { "peer_code": "MCw0YTc2YTNlLHsic2l0ZU5hbWUiOiJwb2xpY3ktc2Vzc2lvbi1QUk9WSURFUi5obWl6YS5wYS1wdW5lLXJiLXZwbiIs InNyY1RhcElwIjoiMTY5LjI1NC42NC4yIiwiZHN0VGFwSXAiOiIxNjkuMjU0LjY0LjEiLCJpa2VPcHRpb24iOiJpa2V2 MiIsImVuY2FwUHJvdG8iOiJncmUvaXBzZWMiLCJkaEdyb3VwIjoiZGgxNCIsImVuY3J5cHRBbmREaWdlc3QiOiJhZXMt Z2NtL3NoYS0yNTYiLCJwc2siOiJkZWZhdWx0IiwidHVubmVscyI6W3sibG9jYWxJZCI6IjI0LjI0LjI0LjI0IiwicGVl cklkIjoiMTEuMTEuMTEuMTEifV19", "transport_tunnel_path": "/infra/tier-1s/cgw/locale-services/default/ipsec-vpn-services/default/sessions/rbs-1" } ] } ] }

Required Permissions:

crud

Feature:

policy_vpn

Additional Errors: