NSX-T Data Center REST API
Create node network route
Add a route to the node routing table. For static routes, theroute_type, interface_id, netmask, and destination are required parameters.
For default routes, the route_type, gateway address, and interface_id
are required. For blackhole routes, the route_type and destination are
required. All other parameters are optional. When you add a static route,
the scope and route_id are created automatically. When you add a default or
blackhole route, the route_id is created automatically. The route_id is
read-only, meaning that it cannot be modified. All other properties can be
modified by deleting and readding the route.
Request:
Method:
POST
URI Path(s):
/api/v1/transport-nodes/{transport-node-id}/node/network/routes
/api/v1/cluster/{cluster-node-id}/node/network/routes
/api/v1/node/network/routes
/api/v1/cluster/{cluster-node-id}/node/network/routes
/api/v1/node/network/routes
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
NodeRouteProperties+
Example Request:
{ "route_type": "static", "interface_id": "eth0", "netmask": "255.255.255.0", "destination": "10.33.85.0" }Successful Response:
Response Code:
201 Created
Response Headers:
Content-type: application/json
Response Body:
NodeRouteProperties+