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
+
LogicalSwitchParameters
(
schema
)
Name
Description
Type
Notes
logical_switch_id
logical switch identifier
logical switch identifier
string
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
+
L2VPNSessionRemoteMacs
(
schema
)
Name
Description
Type
Notes
display_name
Display name
L2VPN display name.
string
Readonly
remote_mac_addresses
Remote MAC addresses for all logical switches
List MAC addresses for all logical switch for a particular L2VPN session.
array of
L2VPNSessionRemoteMacsForLS
Readonly
session_id
Session identifier
L2VPN session identifier.
string
Readonly
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:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable