Management Plane API > Networking > Logical Routing And Services > Routing Configuration

Paginated List of Static Routes

Returns information about configured static routes, including the
network address and next hops for each static route.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-routers/<logical-router-id>/routing/static-routes
Request Headers:
n/a
Query Parameters:
ListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-routers/7a62a0c5-1ea1-4b25-9d43-dce1c0fa4b8c/routing/static-routes

Successful Response:

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

Example Response:

{ "cursor": "0036e3023f7f-4794-40b5-87a8-51cf7df35aefe3023f7f-4794-40b5-87a8-51cf7df35aef", "sort_ascending": true, "sort_by": "display_name", "result_count": 1, "results": [ { "resource_type": "StaticRoute", "description": "", "id": "e3023f7f-4794-40b5-87a8-51cf7df35aef", "display_name": "e3023f7f-4794-40b5-87a8-51cf7df35aef", "tags": [], "next_hops": [ { "administrative_distance": 1, "ip_address": "192.168.100.254" } ], "network": "192.168.100.0/24", "_create_time": 1457129209514, "_last_modified_user": "admin", "_system_owned": false, "_last_modified_time": 1457129209514, "_create_user": "admin", "_revision": 0 } ] }

Required Permissions:

read

Feature:

routing_routers

Additional Errors: