REST API - set

appliance networking routes: set

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. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Request:

HTTP request

PUT https://{server}/rest/appliance/networking/routes

Request Body Structure:

{
    "routes"[
        {
            "prefix"1,
            "destination""string",
            "interface_name""string",
            "gateway""string"
        },
        {
            "prefix"1,
            "destination""string",
            "interface_name""string",
            "gateway""string"
        }
    ]
}

Request Body Parameters:

Name Type Description
bold = required
routes config[] Static routing rules.
routes[].destination string Destination address that defines this route. An empty string indicates 0.0.0.0. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional.

routes[].prefix long Destination CIDR prefix that defines this route. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

routes[].gateway string Gateway address. An empty string indicates 0.0.0.0. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional.

routes[].interface_name string Output device interface, for example, "nic0". An empty string indicates that the rule applies to all interfaces(*). Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.

Optional.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error