Policy >
Networking
>
Connectivity
>
Segments
>
MAC Table
Get Tier-1 segment MAC table in CSV
Returns MAC table for a segment
Request:
Method:
GET
URI Path(s):
/policy/api/v1/global-infra/tier-1s/<tier-1-id>/segments/<segment-id>/mac-table?format=csv
/policy/api/v1/infra/tier-1s/<tier-1-id>/segments/<segment-id>/mac-table?format=csv
Request Headers:
n/a
Query Parameters:
PolicyL2TablesParameters
+
PolicyL2TablesParameters
(
schema
)
Name
Description
Type
Notes
enforcement_point_path
String Path of the enforcement point
Enforcement point path.
string
source
The data source, either realtime or cached. If not provided, cached data is returned.
DataSourceType
transport_node_id
TransportNode Id
string
Request Body:
n/a
Example Request:
https://{{nsx-mgr}}/policy/api/v1/infra/tier-1s/pepsi/segments/TIER0_DOWN_LINK_SWITCH/mac-table?format=csv&source=realtime
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: text/csv
Response Body:
MacAddressCsvListResult
+
MacAddressCsvListResult
(
schema
)
Name
Description
Type
Notes
file_name
File name
File name set by HTTP server if API returns CSV result as a file.
string
last_update_timestamp
Timestamp when the data was last updated; unset if data source has never updated the data.
EpochMsTimestamp
Readonly
results
array of
MacTableCsvRecord
Example Response:
mac_address,mac_type 00:0c:29:ce:0f:77,STATIC
Required Permissions:
read
Feature:
policy_statistics
Additional Errors:
404 Not Found
301 Moved Permanently
307 Temporary Redirect
400 Bad Request
403 Forbidden
409 Conflict
412 Precondition Failed
500 Internal Server Error
503 Service Unavailable