NSX-T Data Center REST API

Get routing table from tier-0 in CSV format

Get routing table from tier-0 gateway in CSV format.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/routing-table?format=csv
/policy/api/v1/global-infra/tier-0s/{tier-0-id}/routing-table?format=csv
Request Headers:
n/a
Query Parameters:
RoutesRequestParameters+
Request Body:
n/a

Successful Response:

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

Example Response:

transport_node_path,edge_path,route_type,network,interface,next_hop,admin_distance,lr_component_id,lr_component_type,next_hop_gateway,black_hole ,"/infra/sites/default/enforcement-points/default/edge-clusters/EDGECLUSTER1/edge-nodes/0",t0c,fc20:b49a:e000:fde8::/64,,,0,"3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5","CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0",,false ,"/infra/sites/default/enforcement-points/default/edge-clusters/EDGECLUSTER1/edge-nodes/0",tgws,11.11.40.64/27,,169.254.2.1,5,"3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5","CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0","/orgs/default/projects/default/transit-gateways/default",false ,"/infra/sites/default/enforcement-points/default/edge-clusters/EDGECLUSTER1/edge-nodes/0",isr,169.254.0.128/25,,,0,"3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5","CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0",,false

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: