Policy >
Networking
>
Connectivity
>
Segments
>
TEP Table
Get tier-1 segment TEP table in CSV
Returns TEP table for a segment in CSV
Request:
Method:
GET
URI Path(s):
/policy/api/v1/global-infra/tier-1s/<tier-1-id>/segments/<segment-id>/tep-table?format=csv
/policy/api/v1/infra/tier-1s/<tier-1-id>/segments/<segment-id>/tep-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/test-infra-seg/tep-table?format=csv&source=realtime
Successful Response:
Response Code:
200 OK
Response Headers:
Content-type: text/csv
Response Body:
PolicyTepCsvListResult
+
PolicyTepCsvListResult
(
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
PolicyTepTableCsvRecord
Example Response:
tep_label,tep_ip,tep_mac_address,segment_id 55298,100.100.100.3,00:50:56:6a:af:ce,
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