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

Get Tier-0 L2VPN session configuration for the peer site

Get peer config for the Tier-0 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.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-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-0s/ext_net/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-0s/ext_net/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-0s/ext_net/ipsec-vpn-services/default/sessions/rbs-1" } ] } ] }

Required Permissions:

crud

Feature:

policy_vpn

Additional Errors: