Policy >
Networking
>
Network Services
>
VPN
>
L2VPN
>
Remote-Mac
Get L2Vpn session remote mac for logical switch
Returns L2Vpn session remote macs for a logical switch.
Data is fetched from enforcement point.
Request:
Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/l2vpn-services/<service-id>/sessions/<session-id>/remote-mac
Request Headers:
n/a
Query Parameters:
PolicyL2VpnRemoteMacParameters
+
PolicyL2VpnRemoteMacParameters
(
schema
)
Name
Description
Type
Notes
enforcement_point_path
String Path of the enforcement point
enforcement point path, forward slashes must be escaped using %2F.
string
segment_path
Segment Path
Intent path of the segment.
string
Request Body:
n/a
Example Request:
GET https://<policy-mgr>/policy/api/v1/infra/tier-0s/int_net/locale-services/default/l2vpn-services/default/sessions/default/remote-mac
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
AggregateL2VpnSessionRemoteMac
+
AggregateL2VpnSessionRemoteMac
(
schema
)
Name
Description
Type
Notes
intent_path
String Path of the intent object
Intent path of object, forward slashes must be escaped using %2F.
string
Required
Readonly
l2vpn_session_remote_macs
List of L2Vpn Session remote mac
array of
L2VpnSessionRemoteMacPerEP
(Abstract type: pass one of the following concrete types)
L2VpnSessionRemoteMacNsxT
Readonly
Example Response:
{ "display_name": "default-l2vpn-session", "remote_macs": [ { "remote_mac_addresses": [ 00:0a:95:9d:68:16 ], "segment_path": "/infra/tier-0s/default-tier0-id/segments/default-segment-id" } ] }
Required Permissions:
read
Feature:
policy_statistics
Additional Errors:
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
500 Internal Server Error
503 Service Unavailable