A user asked if the ControlUp API documentation had been updated, to allow for querying the names and IDs of scripts. Examples of running scripts using the API key were given, as well as the endpoint URL for accessing a list of all scripts. The user asked for a script that gets the script ID from the name, however this was not available. The example of performing a GET request against the provided URL was provided.
Read the entire ‘Updates to ControlUp API Documentation – Querying List of Scripts’ thread below:
API wise have the docs been updated? I’m hoping for a way to query what scripts exists and relate the Scripts Name & ID.
I have a sample script to run scripts using the api’s and that gets the script id from such a query. Will share it tomorrow
generally speaking you can check out what the browser does and replicate that with an API key. Some endpoints won’t work with an API key. But most do. Including the script listing endpoints
https://tenant.sip.controlup.com/api/scripts
My apologies, the script I have just runs the action, doesn’t get it based on the name, I did create that for a customer at some point but that was in their own environment so don’t have it myself.
but indeed like Dennis says a GET against that url would get you all scripts
Continue reading and comment on the thread ‘Updates to ControlUp API Documentation – Querying List of Scripts’. Not a member? Join Here!
Categories: All Archives, ControlUp for Desktops, ControlUp Scripts & Triggers