Management Plane API > Networking > VPN > Statistics > L2VPN Remote MACS

Get L2VPN session remote mac for logical switch

Get L2VPN session remote mac for logical switch.

Request:

Method:
GET
URI Path(s):
/api/v1/vpn/l2vpn/sessions/<session-id>/remote-mac
Request Headers:
n/a
Query Parameters:
LogicalSwitchParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/vpn/l2vpn/sessions/f962173f-ac03-4d08-8366-56a41779f61d/remote-mac?logical_switch_id=f962173f-ac03-4d08-8366-56a41779f61d

Successful Response:

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

Example Response:

{ "session_id": "1f74abad-caec-4889-87e3-ebe9dfa1ad24", "display_name": "l2vpnsession", "result": [ { "remote_mac_addresses": [ 00:0a:95:9d:68:16 ], "logical_switch": { "target_id": "785fd137-933f-4e83-b2be-23c6d2757432", "target_type": "LogicalSwitch" } } ] }

Required Permissions:

read

Feature:

vpn

Additional Errors: