Added API to feed into Oxidized

This commit is contained in:
laf
2015-05-07 00:32:58 +01:00
parent 7f5a64967e
commit f5d02ab18d
3 changed files with 46 additions and 0 deletions

View File

@ -17,6 +17,7 @@
- [`get_graph_by_port_hostname`](#api-route-9)
- [`list_devices`](#api-route-10)
- [`add_device`](#api-route-11)
- [`list_oxidized`](#api-route-21)
- [`routing`](#api-routing)
- [`list_bgp`](#api-route-1)
- [`switching`](#api-switching)
@ -395,6 +396,36 @@ Output:
}
```
### <a name="api-route-21">Function: `list_oxidized`</a> [`top`](#top)
List devices for use with Oxidized.
Route: /api/v0/oxidized
Input (JSON):
-
Examples:
```curl
curl -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/oxidized
```
Output:
```text
[
{
"hostname": "localhost",
"os": "linux"
},
{
"hostname": "otherserver",
"os": "linux"
}
]
```
## <a name="api-routing">`Routing`</a> [`top`](#top)
### <a name="api-route-1">Function: `list_bgp`</a> [`top`](#top)