Policy > Networking > Connectivity > Segments > MAC Table

Get infra segment MAC table in CSV

Returns MAC table for a segment

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/segments/{segment-id}/mac-table?format=csv
/policy/api/v1/global-infra/segments/{segment-id}/mac-table?format=csv
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/segments/{segment-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/mac-table?format=csv&source=realtime

Successful Response:

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

Example Response:

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

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: