1. Operations
2. appliance
3. techpreview
4. networking
5. routes

## appliance techpreview networking routes: add

Set static routing rules. A destination of 0.0.0.0 and prefix 0 (for IPv4) or destination of :: and prefix 0 (for IPv6) refers to the default gateway.

### Request:

#### HTTP request

POST https://{server}/rest/appliance/techpreview/networking/routes

#### Request Body Structure:

- JSON
- XML

{
"route": {
"destination": "string",
"gateway": "string",
"interface_name": "string",
"prefix": 1
}
}
<?xml version="1.0" ?>
<ns0:Add-Input xmlns:ns0="http://vmware.com/appliance/techpreview/networking/routes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<route>
<gateway>string</gateway>
<prefix>1</prefix>
<interface_name>string</interface_name>
<destination>string</destination>
</route>
</ns0:Add-Input>

#### Request Body Parameters:

Name | Type | Description
--- | --- | ---
bold = required
route | route | Static routing rule.
route.destination | string | Destination address that defines this route.
route.prefix | long | Destination CIDR prefix that defines this route. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion.
route.gateway | string | Gateway address.
route.interface_name | string | Output device interface, for example, "nic0".

### Response:

#### HTTP Status Code: 200

None

#### Errors:

HTTP Status Code | Type | Description
--- | --- | ---
500 | error | Generic error