NSX-T Data Center REST API

Get forwarding table from route controller

Get forwarding table from route controller

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/route-controllers/{route-controller-id}/forwarding-table
Request Headers:
n/a
Query Parameters:
RouteControllerRoutesRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/route-controllers/RC-1/forwarding-table

Successful Response:

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

Example Response:

{ "results": [ { "virtual_network_appliance_path": "ea2426f6-1cc9-43bd-97e8-e40b3a2dcdc5", "count": 6, "route_entries": [ { "route_type": "route", "network": "40.40.40.0/24", "admin_distance": 0, "next_hop": "", "interface": "fc1e0fbe-aa9c-4f6e-a6e9-50fa39f4ddd3", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "40.40.40.1/32", "admin_distance": 0, "next_hop": "", "interface": "ee28ecdd-b768-5806-a1e2-a2a6ed29d9aa", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "90.90.90.0/24", "admin_distance": 0, "next_hop": "", "interface": "8ba4cb4e-af46-4e25-9b10-1187d049a31a", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "90.90.90.1/32", "admin_distance": 0, "next_hop": "", "interface": "ee28ecdd-b768-5806-a1e2-a2a6ed29d9aa", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "127.0.0.1/32", "admin_distance": 0, "next_hop": "", "interface": "a28503e6-8224-4c3d-a501-5cd159ee65e0", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "::1/128", "admin_distance": 0, "next_hop": "", "interface": "a28503e6-8224-4c3d-a501-5cd159ee65e0", "lr_component_id": "3924e91f-add9-4b9b-a7a5-075573a8abb0", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false } ], "status": "SUCCESS" }, { "virtual_network_appliance_path": "94b22101-31ce-40ef-8508-28dace021619", "count": 8, "route_entries": [ { "route_type": "route", "network": "40.40.40.0/24", "admin_distance": 0, "next_hop": "", "interface": "b3f771f5-2deb-40b4-a519-b636bc272011", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "40.40.40.2/32", "admin_distance": 0, "next_hop": "", "interface": "3c80fe32-e908-57db-862a-3f0a49f205db", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "40.40.40.101/32", "admin_distance": 0, "next_hop": "", "interface": "3c80fe32-e908-57db-862a-3f0a49f205db", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "90.90.90.0/24", "admin_distance": 0, "next_hop": "", "interface": "38f84894-4de5-48a0-a8a8-77639ca83e3c", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "90.90.90.2/32", "admin_distance": 0, "next_hop": "", "interface": "3c80fe32-e908-57db-862a-3f0a49f205db", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "90.90.90.101/32", "admin_distance": 0, "next_hop": "", "interface": "3c80fe32-e908-57db-862a-3f0a49f205db", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "127.0.0.1/32", "admin_distance": 0, "next_hop": "", "interface": "a28503e6-8224-4c3d-a501-5cd159ee65e0", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false }, { "route_type": "route", "network": "::1/128", "admin_distance": 0, "next_hop": "", "interface": "a28503e6-8224-4c3d-a501-5cd159ee65e0", "lr_component_id": "355aab42-d011-40bf-a34f-823419050e5f", "lr_component_type": "CCP_ROUTER_TYPE_SERVICE_ROUTER_TIER0", "black_hole": false } ], "status": "SUCCESS" } ] }

Required Permissions:

read

Feature:

policy_route_controller

Additional Errors: