NSX-T Data Center REST API
Add Static Routes on a Logical Router (Deprecated)
Adds a new static route on a Logical RouterDeprecated:
Please use below Policy APIs.
POST /policy/api/v1/infra/tier-0s/<tier-0-id>/static-routes/<route-id>
POST /policy/api/v1/infra/tier-1s/<tier-1-id>/static-routes/<route-id>
Request:
Method:
              POST
            URI Path(s):
              
                /api/v1/logical-routers/{logical-router-id}/routing/static-routes
                
              
            Request Headers:
                n/a
            Query Parameters:
    n/a
  Request Body:
    StaticRoute+
  Example Request:
POST https://<nsx-mgr>/api/v1/logical-routers/7a62a0c5-1ea1-4b25-9d43-dce1c0fa4b8c/routing/static-routes { "resource_type": "StaticRoute", "description": "", "display_name": "to customer A", "tags": [], "next_hops": [ { "administrative_distance": "2", "ip_address": "192.168.200.254" } ], "network": "192.168.200.0/24" }Successful Response:
Response Code:
                200 OK
              Response Headers:
                  
                  Content-type: application/json
                Response Body:
    StaticRoute+