I'm trying to automate resolving common commvault issues utilising the CV REST API.
For the first part I'd like to get a list of running Virtual Server Agent jobs and suspend these jobs to do some things to the proxies (reboot, clean up windows/temp/vmware-system etc.)
I've got the REST stuff working, however trying to query the running jobs appears limited.
Reading the doco, it looks like there's only 2 filters clientid and jobfilter. Jobfilter is a range of job types, DASH copy, install, Synth full etc.
The problem is that it returns *all* the jobs and I'm only able to filter on the response rather than the request.
The response has a lot more fields including the ever useful:
The status of the job.
Valid values are:
However this doesn't look like I can filter it on the request end, only on the response are retrieving all the jobs.
While I can filter by client, the single VSA client is a subset of ~50% of the server in the DC, too many to recall at once and filter.
Any ideas on how I can do this? Is REST the wrong tool to use here? Should I be trying to hook into the workflow engine somehow?