A HTTP GET to /api/edge/data.json?data=routes obtains route information.
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
A boolean encapsulated in a string (e.g. |
Whether the API request was successful. |
|
Array (Object) |
Array of |
The output to the data request. |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
String |
The route prefix. |
|
Array (Object) |
|
The route next hop information. |
| Name | Type | Values | Description |
|---|---|---|---|
|
String |
String |
The type (in the format |
|
String |
String |
The metric information. |
|
String |
A boolean encapsulated in a string (e.g. |
Whether this interface is a blackhole. |
|
String |
String |
The next hop address information. |
|
String |
String |
The next hop interface. |
| Name | Type | Description |
|---|---|---|
|
Static |
A static route (used by |
|
|
Connected route. |
|
|
Connected OSPF route. |
|
|
Connected RIP route. |
|
|
Connected Kernel route. |
| Name | Type | Description |
|---|---|---|
|
Selected |
The route is able to be used. |
Not Selected |
The route is not able to be used (but is in the config file). |
{"success": "1", "output": [{"pfx": "0.0.0.0/0", "nh": [{"t": "S>*", "metric": "210/0", "via": "xxx.xxx.xxx.xxx", "intf": "eth0"}]}, {"pfx": "xxx.xxx.xxx.xxx/21", "nh": [{"t": "C>*", "intf": "eth0"}]}, {"pfx": "127.0.0.0/8", "nh": [{"t": "C>*", "intf": "lo"}]}, {"pfx": "192.168.0.0/24", "nh": [{"t": "C>*", "intf": "eth1"}]}]}