Policy > Networking > Connectivity > Segments > Ports > MAC Table

Get MAC table for infra segment port

Returns MAC table for a segment port

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/segments/<segment-id>/ports/<port-id>/mac-table
/policy/api/v1/global-infra/segments/<segment-id>/ports/<port-id>/mac-table
Request Headers:
n/a
Query Parameters:
PolicyListL2TablesParameters+
Request Body:
n/a

Example Request:

https://{{nsx-mgr}}/policy/api/v1/infra/segments/TIER0_DOWN_LINK_SWITCH/ports/default:d808cd01-b20b-485b-8e57-983a84fa7642/mac-table?source=realtime

Successful Response:

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

Example Response:

{ "transport_node_id": "01b3242e-a7c8-11ea-9a01-278a0b44b8c9", "last_update_timestamp": 1591767152521, "results": [ { "mac_address": "00:0c:29:ce:0f:77", "mac_type": "STATIC" } ] }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: