Create Node Network Route
Add a route to the NSX Manager routing table. For static routes, the route_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.
{
"_self": {
"rel": "string"
},
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"src": "string",
"from_address": "string",
"proto": "string",
"route_type": "string",
"metric": "string",
"destination": "string",
"interface_id": "string",
"route_id": "string",
"netmask": "string",
"scope": "string",
"gateway": "string"
}
Resource created successfully
{
"_self": {
"rel": "string"
},
"_links": [
{
"action": "string",
"href": "string",
"rel": "string"
}
],
"_schema": "string",
"src": "string",
"from_address": "string",
"proto": "string",
"route_type": "string",
"metric": "string",
"destination": "string",
"interface_id": "string",
"route_id": "string",
"netmask": "string",
"scope": "string",
"gateway": "string"
}
Unexpected error
{
"module_name": "string",
"error_message": "string",
"error_code": 0
}
module_name
error_message
error_code