NSX-T Data Center REST API

Get forwarding table from tier-0

Get forwarding table from tier-0

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/{tier-0-id}/forwarding-table
/policy/api/v1/global-infra/tier-0s/{tier-0-id}/forwarding-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": "route", "network": "11.11.10.0/32", "admin_distance": 0, "next_hop": "40.40.40.12", "interface": "/infra/tier-0s/ExternalTOR/locale-services/Tier0LS-ExternalTOR/interfaces/ToProvider", "lr_component_id": "3e55b96e-e0ab-4aa5-85c6-83e3d49aa6d5", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "11.11.40.0/28", "admin_distance": 0, "next_hop": "169.254.2.1", "interface": "/infra/tier-0s/ExternalTOR/locale-services/Tier0LS-ExternalTOR/interfaces/INTERVRF", "lr_component_id": "52b08d56-2b70-4e55-8914-ea1d4b68f005", "lr_component_type": "CCP_ROUTER_TYPE_DISTRIBUTED_ROUTER_TIER0", "next_hop_gateway": "/orgs/default/projects/default/transit-gateways/default", "black_hole": false }, { "route_type": "route", "network": "fc20:b49a:e000:fde8:50:56ff:fe56:5401/128", "admin_distance": 0, "next_hop": "", "interface": "070d7c61-f14a-56d7-a632-841901a516a4", "lr_component_id": "52b08d56-2b70-4e55-8914-ea1d4b68f005", "lr_component_type": "CCP_ROUTER_TYPE_DISTRIBUTED_ROUTER_TIER0", "black_hole": false } ], "status": "SUCCESS" } ], "result_count": 3 }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: