You can use our REST API to query the audit log, and drill down for specific changes! You will want to query the Events endpoint. For example, if you wanted to find all of the times variables have been modified in the past 90 days, you could use a request like:
Octopus is an “API-first” application, meaning that anything you can do in the web UI, you can do with API calls. We ship Octopus with a SwaggerUI, accessible at YOUR_OCTOPUS_SERVER/swaggerUI which lists and documents all of the endpoints, as well as allows you to run test calls against your instance.
Being API-first, as I mentioned in the first response, means that you can easily monitor the Octopus UI and see which API calls it is making. One of the best ways I’ve found of modelling an API call is to run it in the audit log within the Octopus web UI with the network pane of the developer tools open, and looking at the call being made. From there, you can use that as a reference/base for you own calls.
Thank you Justin,
I am able to browse the API which you have give directly through browser but from powershell script I am getting following 401 Unauthorized error.
Hi Justin,
I have rescently made changes in the variable set to test if the above Rest-API is it works properly. I am not able to find the changes done by me.
When did you make the changes? The timestamp on that query is only until midnight, so if it’s been since then, you’ll want to adjust your to= timestamp to be current time or day+1 to include the current day’s events.