Policy > Networking > Connectivity > Tier-1 Gateways > Routing > Static Routes

Create or update a Tier-1 static routes

If static routes for route-id are not already present, create
static routes. If it already exists, replace the static routes for route-id.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-1s/<tier-1-id>/static-routes/<route-id>
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
StaticRoutes+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-1s/cgw/static-routes/site1 { "network": "45.1.1.0/24", "next_hops": [ { "ip_address": "41.1.1.1", "admin_distance": 1 }, { "ip_address": "42.1.1.1", "admin_distance": 2 }, { "ip_address": "43.1.2.3", "admin_distance": 3 } ], "_revision": 0 }

Successful Response:

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

Example Response:

{ "resource_type": "StaticRoutes", "id": "site1", "display_name": "/infra/tier-1s/cgw/static-routes/site1", "path": "/infra/tier-1s/cgw/static-routes/site1", "parent_path": "/infra/tier-1s/cgw", "relative_path": "site1", "next_hops": [ { "ip_address": "41.1.1.1", "admin_distance": 1 }, { "ip_address": "42.1.1.1", "admin_distance": 2 }, { "ip_address": "43.1.2.3", "admin_distance": 3 } ], "network": "45.1.1.0/24", "_create_user": "admin", "_create_time": 1516750267338, "_last_modified_user": "admin", "_last_modified_time": 1516750267338, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_t1

Additional Errors: