NSX-T Data Center REST API

Get MAC Table for Logical Switch of the Given ID (lswitch-id) (Deprecated)

Returns MAC table of a specified logical switch in CSV format from the given transport
node if a transport node id is given in the query parameter from the
Central Controller Plane.
The query parameter "source=cached" is not supported.
Deprecated: This api is now deprecated. Please use new API - GET policy/api/v1/infra/realized-state/<realized-ls-id>/mac-table/format/csv?source=realtime

Request:

Method:
GET
URI Path(s):
/api/v1/logical-switches/{lswitch-id}/mac-table?format=csv
Request Headers:
n/a
Query Parameters:
TransportNodeIdParameters+
Request Body:
n/a

Successful Response:

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

Example Response:

mac_address,vtep_ip,vtep_mac_address 00:0c:29:ec:2b:ce,159.213.45.33,00:50:56:6b:e9:b5

Required Permissions:

read

Feature:

aggregation_service_health_monitoring

Additional Errors: