Management Plane API > Networking > VPN > L2VPN > Sessions

Associated URIs:

API Description API Path

Get all L2VPN sessions


Get paginated list of all L2VPN sessions
GET /api/v1/vpn/l2vpn/sessions

Create L2VPN session


Create L2VPN session and bind to a L2VPNService
POST /api/v1/vpn/l2vpn/sessions

Delete a L2VPN session


Delete a specific L2VPN session. If there are any logical switch ports attached to it, those needs to be deleted first.
DELETE /api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>

Get a L2VPN session


Get a specific L2VPN session
GET /api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>

Edit a L2VPN session


Edit a specific L2VPN session
PUT /api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>

Get peer codes for the L2VpnSession


Get peer codes for the L2VPN session to program the remote side of the tunnel.
GET /api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>/peer-codes