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

Get infra segment port MAC table in CSV

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?format=csv
/policy/api/v1/global-infra/segments/<segment-id>/ports/<port-id>/mac-table?format=csv
Request Headers:
n/a
Query Parameters:
PolicyL2TablesParameters+
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?format=csv&source=realtime

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: text/csv
Response Body:
SegmentPortMacAddressCsvListResult+

Example Response:

mac_address,mac_type 00:0c:29:ce:0f:77,STATIC

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: