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

Get MAC table for tier-1 segment port

Returns MAC table for a segment port

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-1s/{tier-1-id}/segments/{segment-id}/ports/{port-id}/mac-table
/policy/api/v1/global-infra/tier-1s/{tier-1-id}/segments/{segment-id}/ports/{port-id}/mac-table
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/tier-1s/{tier-1-id}/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/tier-1s/pepsi/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: