Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2017-11-18 19:19:18 -06:00
### `get_graph_by_portgroup`
Get the graph based on the group type.
2019-07-21 21:41:04 +02:00
Route: `/api/v0/portgroups/:group`
2017-11-18 19:19:18 -06:00
- group is the type of port group graph you want, I.e Transit,
Peering, etc. You can specify multiple types comma separated.
2017-11-18 19:19:18 -06:00
Input:
- from: This is the date you would like the graph to start - See
<http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html> for more information.
- to: This is the date you would like the graph to end - See
<http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html> for more information.
- width: The graph width, defaults to 1075.
- height: The graph height, defaults to 300.
2017-11-18 19:19:18 -06:00
Example:
2017-11-18 19:19:18 -06:00
```curl
curl -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/portgroups/transit,peering
```
Output:
Output is an image.
### `get_graph_by_portgroup_multiport_bits`
Get the graph based on the multiple port id separated by commas `,`.
Route: `/api/v0/portgroups/multiport/bits/:id`
2017-11-18 19:19:18 -06:00
- id is a comma separated list of port ids you want, I.e 1,2,3,4,
etc. You can specify multiple IDs comma separated.
2017-11-18 19:19:18 -06:00
Input:
- from: This is the date you would like the graph to start - See
<http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html> for more information.
- to: This is the date you would like the graph to end - See
<http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html> for more information.
- width: The graph width, defaults to 1075.
- height: The graph height, defaults to 300.
2017-11-18 19:19:18 -06:00
Example:
2017-11-18 19:19:18 -06:00
```curl
curl -H 'X-Auth-Token: YOURAPITOKENHERE' https://librenms.org/api/v0/portgroups/multiport/bits/1,2,3
```
Output:
Output is an image.