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 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
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

Successful Response:

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

Example Response:

{ "sort_ascending" : true, "sort_by" : "display_name", "result_count" : 1, "logical_port_id" : "44766063-7068-4c82-9411-4e16c36d7c46", "last_update_timestamp" : 1496342672613, "transport_node_id" : "5a9bb1be-3f1b-11e7-80b9-53f65a56b3df", "results" : [ { "mac_address" : "00:50:56:b7:e1:04", "mac_type" : "STATIC" } ] }

Required Permissions:

read

Feature:

aggregation_service_health_monitoring

Additional Errors: