Think I've got the makings of something.
Logmon (full mode) creates an alarm which is picked up by an AO rule which posts via messagegtw to a Power Automate API. From there I can get the data to it's destination.
Original Message:
Sent: Nov 08, 2024 06:17 AM
From: Sam Green
Subject: Trigger API when changes/additions are made to a UIM device
I've got the API running from Power Automate and also got Nexec running the curl command and saving the output to a file.
curl -X GET "https://OC_ADDRESS/uimapi/devices" -H "accept: application/json" -u administrator:password -o C:\path\to\output.txt
I'm thinking of using Logmon somehow to initiate an action when the contents of the file has changed.
Original Message:
Sent: Nov 08, 2024 05:25 AM
From: Sam Green
Subject: Trigger API when changes/additions are made to a UIM device
Hi all,
I'm using the uimapi probe and looking for a method of firing the /uimapi/devices api call when a change or addition is made to a device.
The use case is to upload our device data to a CMDB and rather than upload everything periodically, to only trigger a refresh when a change or addition is made to a device.
Any thoughts on how to achieve this are welcomed.