Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for a maintenance boolean in API results. (#15904)
* Add support for a maintenance boolean in API results. If a device is under maintenance, it would be nice to see that from the API. This can help drive other automation workflows where LibreNMS forms a cornerstone in the management source of truth. * Revert changes made by VSCode formatting. * Revert two more formatting changes. * Create a new API endpoint for GETing maintenance status. This uses the same endpoint name as for setting a device to maintenance but with a GET verb. --------- Co-authored-by: Joe Clarke <jclarke@cisco.com>
- Loading branch information
1 parent
1911dcb
commit 018597e
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters