appliance techpreview networking routes: list
Get main routing table. 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
GET https://{server}/rest/appliance/techpreview/networking/routes
No request parameters
Response:
HTTP Status Code: 200
Representations:
{
"value": [
{
"destination": "string",
"gateway": "string",
"interface_name": "string",
"is_static": true,
"prefix": 1
},
{
"destination": "string",
"gateway": "string",
"interface_name": "string",
"is_static": true,
"prefix": 1
}
]
}
"value": [
{
"destination": "string",
"gateway": "string",
"interface_name": "string",
"is_static": true,
"prefix": 1
},
{
"destination": "string",
"gateway": "string",
"interface_name": "string",
"is_static": true,
"prefix": 1
}
]
}
<?xml version="1.0" ?>
<ns0:List-Result xmlns:ns0="http://vmware.com/appliance/techpreview/networking/routes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value-array>
<array-item>
<gateway>string</gateway>
<is_static>true</is_static>
<prefix>1</prefix>
<interface_name>string</interface_name>
<destination>string</destination>
</array-item>
<array-item>
<gateway>string</gateway>
<is_static>true</is_static>
<prefix>1</prefix>
<interface_name>string</interface_name>
<destination>string</destination>
</array-item>
</value-array>
</ns0:List-Result>
<ns0:List-Result xmlns:ns0="http://vmware.com/appliance/techpreview/networking/routes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value-array>
<array-item>
<gateway>string</gateway>
<is_static>true</is_static>
<prefix>1</prefix>
<interface_name>string</interface_name>
<destination>string</destination>
</array-item>
<array-item>
<gateway>string</gateway>
<is_static>true</is_static>
<prefix>1</prefix>
<interface_name>string</interface_name>
<destination>string</destination>
</array-item>
</value-array>
</ns0:List-Result>
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | route_read_only[] | Routing table. |
value[].destination | string | Destination address that defines this route. |
value[].prefix | long | Destination CIDR prefix that defines this route. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion. |
value[].gateway | string | Gateway address. |
value[].interface_name | string | Output device interface, for example, "nic0". |
value[].is_static | boolean | Static provides information about installation of the route. True indicates the route was installed by the administrator. False indicates the route was autoconfigured |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |