Management Plane API > Networking > Logical Switching > Logical Switch Ports

Get MAC table of a logical port with a given port id (lport-id)

Returns MAC table in CSV format of a specified logical port. If the target transport node id is not provided,
the NSX manager will ask the controller for the transport node where the logical port is located.
The query parameter "source=cached" is not supported. MAC table retrieval is not supported on
logical ports that are attached to a logical router.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-ports/<lport-id>/mac-table?format=csv
Request Headers:
n/a
Query Parameters:
ListByNodeIdParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-ports/<lport-id>/mac-table?format=csv

Successful Response:

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

Example Response:

mac_address,mac_type 00:50:56:b7:e1:04,STATIC

Required Permissions:

read

Feature:

aggregation_service_health_monitoring

Additional Errors: