NSX-T Data Center REST API
Create or update a VPC 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/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-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/orgs/org-1/projects/project-1/vpcs/vpc-1/static-routes/static-route-1 { "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+