A Python API to interact with the GenieACS REST API, but with the easiness and comfort of Python.
- Python 2 or 3
- Requests
Take a look at example.py.
This software is released under the terms of the GNU General Public License v2:
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
- high level abstracting methods for comfortable usage of the API
- user-definable error/exception handling (stop on error or warn and continue)
- setup.py
The following list contains all possible interactions with the GenieACS REST API. Interactions already implemented are enclosed in brackets.
- (list IDs of all devices)
- (search for devices:)
- (by ID)
- (by MAC)
- (list parameters for a given device)
- (delete a given device from the database)
- (list all tasks)
- (filtered by device)
- (create a task for a given device)
- (refreshObject)
- (setParameterValues)
- (getParameterValues)
- (addObject)
- (reboot)
- (factoryReset)
- (download)
- (retry a faulty task at the next inform)
- (delete a given task)
- (list tags filtered by device)
- (assign a tag to a device)
- (remove a tag from a device)
- (list all presets)
- (write all presets to a file)
- (create or update a preset)
- (create all presets from a file)
- (delete a preset)
- (list all objects)
- (write all objects to a file)
- (create or update an object)
- (create all objects from a file)
- (delete an object)
- (list all provisions)
- (write all provisions to a file)
- (create or update a provision)
- (create all provisions from a file)
- (delete a provision)
- (list all files)
- (list data of one or more specific files)
- (upload or overwrite a file)
- (delete an uploaded file)
- (list IDs of all faults)
- (list all faults)
- (filtered by device)
- (delete a given fault)