Management Plane API >
Networking
>
VPN
>
L2VPN
>
Sessions
Get peer codes for the L2VpnSession
Get peer codes for the L2VPN session to program the remote side of the tunnel.
Request:
Method:
GET
URI Path(s):
/api/v1/vpn/l2vpn/sessions/<l2vpn-session-id>/peer-codes
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a
Example Request:
GET https://<nsx-mgr>/api/v1/vpn/l2vpn/sessions/f962173f-ac03-4d08-8366-56a41779f611/peer-codes
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
L2VpnSessionPeerCodes
+
L2VpnSessionPeerCodes
(
schema
)
Name
Description
Type
Notes
peer_codes
List of peer codes
List of peer codes per transport tunnel.
array of
L2VpnTunnelPeerCode
Required
Minimum items: 1
Maximum items: 1
Example Response:
TBD
Required Permissions:
crud
Feature:
vpn
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable