mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Merge pull request #300 from laf/issue-laf-44
Added a route to the API that will get vlans for a given device
This commit is contained in:
@@ -231,6 +231,25 @@ if ($_SESSION['userlevel'] == '10')
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -X DELETE -H "Content-Type: application/json" -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/devices/localhost"</code></td>
|
||||
</tr>
|
||||
<tr class="success">
|
||||
<td colspan="5"><strong>List VLANs</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/api</td>
|
||||
<td>/v0</td>
|
||||
<td>/devices/$hostname/vlans</td>
|
||||
<td>
|
||||
<ul class="list-unstyled">
|
||||
<li>hostname = the hostname to list vlans for</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
JSON
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/devices/localhost/vlans"</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user