Python API and config/device info
Posted: Tue Jan 18, 2022 4:03 am
Hi All,
It would be great to see an official python API client but given the work on APIv3 it makes sense to base it on that.
In the meantime I had some specific use cases pulling the device information and backups from Unimus so wrote the following:
https://gist.github.com/smallsam/23e933 ... f5db16c9e3
If there's interest (and I find time), I'll wrap it in a python module so we can collaborate on it.
It's based on currently available APIs and might be useful if you're trying to get device lists or backups from Unimus. It has one notable feature that's currently a little tricky to automate, downloading a config from a device on demand. Rather than use other python ecosystem tools we find value in talking to unimus to get the config. A) it helps keep unimus up to date B) unimus is already configured to talk to all other different device platforms.
Sam
It would be great to see an official python API client but given the work on APIv3 it makes sense to base it on that.
In the meantime I had some specific use cases pulling the device information and backups from Unimus so wrote the following:
https://gist.github.com/smallsam/23e933 ... f5db16c9e3
If there's interest (and I find time), I'll wrap it in a python module so we can collaborate on it.
It's based on currently available APIs and might be useful if you're trying to get device lists or backups from Unimus. It has one notable feature that's currently a little tricky to automate, downloading a config from a device on demand. Rather than use other python ecosystem tools we find value in talking to unimus to get the config. A) it helps keep unimus up to date B) unimus is already configured to talk to all other different device platforms.
Sam