[Implemented] Config differences API/Webhook
Posted: Wed Aug 22, 2018 12:33 pm
I would like to have a set of API calls that allows me to get all the devices that have had configuration changes in some time period. Something like
http://example.unimus/api/v2/devices/ch ... d=datatime
{"address4": IPv4address, "address6": IPv6address, "name": "devicename", "count":number of change}
Then, for each device be able, to get the changes in plain text, similar to what the current email notification provides.
http://example.unimus/api/v2/device/changes/:changeid
{"device":deviceid, "date": datetime, "delete":"deleted text", "add": "added text"}
http://example.unimus/api/v2/device/:device/changes
{"device":deviceid, "changes": [changeid0: [ "delete":"deleted text", "add": "added text"]. changeid1: [ "delete":"deleted text", "add": "added text"]. changeid2: [ "delete":"deleted text", "add": "added text"]. ..., changeidN: [ "delete":"deleted text", "add": "added text"]]}
Closely related would be a webhook that calls my listener every time there is a configuration change detected. It could either pass the device that had the change or the device and the changes.
{"device":"deviceid"}
{"device":"deviceid, "changes":[change0, change1, ... , changeN]}
Another webhook that notifies the summary information, similar to the email, that list all the devices that have changed and the time period the changes occur.
{"system":"systemname", "RanOn": device count, "Succeeded":success count, "failed": failed count, "successes":[device0, device1, device2, ..., deviceN], "failures": [device0, device1, device2, ..., deviceN]}
A webhook that notifies on failed discovery, failed login, etc. would also be helpful.
"system":"systemname", "failedon": "discovery|login|update", "device": deviceid}
All the webhooks should return the date and time and the system running on
http://example.unimus/api/v2/devices/ch ... d=datatime
{"address4": IPv4address, "address6": IPv6address, "name": "devicename", "count":number of change}
Then, for each device be able, to get the changes in plain text, similar to what the current email notification provides.
http://example.unimus/api/v2/device/changes/:changeid
{"device":deviceid, "date": datetime, "delete":"deleted text", "add": "added text"}
http://example.unimus/api/v2/device/:device/changes
{"device":deviceid, "changes": [changeid0: [ "delete":"deleted text", "add": "added text"]. changeid1: [ "delete":"deleted text", "add": "added text"]. changeid2: [ "delete":"deleted text", "add": "added text"]. ..., changeidN: [ "delete":"deleted text", "add": "added text"]]}
Closely related would be a webhook that calls my listener every time there is a configuration change detected. It could either pass the device that had the change or the device and the changes.
{"device":"deviceid"}
{"device":"deviceid, "changes":[change0, change1, ... , changeN]}
Another webhook that notifies the summary information, similar to the email, that list all the devices that have changed and the time period the changes occur.
{"system":"systemname", "RanOn": device count, "Succeeded":success count, "failed": failed count, "successes":[device0, device1, device2, ..., deviceN], "failures": [device0, device1, device2, ..., deviceN]}
A webhook that notifies on failed discovery, failed login, etc. would also be helpful.
"system":"systemname", "failedon": "discovery|login|update", "device": deviceid}
All the webhooks should return the date and time and the system running on