NSX-T Data Center REST API
Create or update a Tier-1 static routes
If static routes for route-id are not already present, createstatic 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+
  