NSX-T Data Center REST API

Get routing table from tier-0

Get routing table from tier-0

Request:

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

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
RoutingTableListResult+

Example Response:

{ "results": [ { "edge_node": "/infra/sites/default/enforcement-points/default/edge-clusters/EDGECLUSTER1/edge-nodes/0", "count": 3, "route_entries": [ { "route_type": "t0c", "network": "fc20:b49a:e000:fde8::/64", "admin_distance": 0, "next_hop": "", "lr_component_id": "3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "tgws", "network": "11.11.40.64/27", "admin_distance": 5, "next_hop": "169.254.2.1", "lr_component_id": "3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "next_hop_gateway": "/orgs/default/projects/default/transit-gateways/default", "black_hole": false }, { "route_type": "isr", "network": "169.254.0.128/25", "admin_distance": 0, "next_hop": "", "lr_component_id": "3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, ], "status": "SUCCESS" } ], "result_count": 3 }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: