API call to show backup jobs within the last 7 days
Hi all,
I want to build an API call that shows backup jobs from the last 7 days. What I do not know, is how to write the filter part of the script. The documentation says
startTime eq ne lt gt le ge The time when the job started. date-time
What format should the 'date-time' have? Is it possible to somehow define last 7 days?
Any help much appriciated!
This file should have an updated pagination method that will let you go through all of the results in your API call based on filters. Same thing, save it as a .ps1 and try it out.
Let me know if you have any questions.
Hi Krutons Krutons !
Thank you so much for your support. Words cannot express how much you have helped me so far!
I can confirm that your script works well. I have used the part of the script and added it to the one script, that displays services and processes on the master server and jobs and alerts from the whole netbackup environment. The uuid ($uuid_master) of the master server is there hardcoded. I think, it is just nice script to have basic monitoring data in one output.
JimmyB2 Glad I could help you with a starting point. If you have any questions don't hesitate to reach out.