Get Logical Port Mac Table In Csv Format
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.
This api is deprecated from 3.2.2. Please use policy api -
/infra/segments/<segment-id>/ports/<segment-port-id>/mac-table?format=csv
lport-id
Opaque cursor to be used for getting next page of records (supplied by current result page)
Comma separated list of fields that should be included in query result
Maximum number of results to return in this page (server may return fewer)
sort_ascending
Field by which records are sorted
Data source type.
TransportNode Id
OK
{
"file_name": "string",
"last_update_timestamp": 0,
"results": [
{
"mac_address": "string",
"mac_type": "string"
}
]
}
Not Found
curl -H 'Authorization: <value>' https://{api_host}/api/v1/logical-ports/{lport-id}/mac-table?format=csv