VMware Cloud Community
Rugbot
Contributor
Contributor

vROps 6.2 : Sceduling reports via API

Hi All


Problem: We use vROps to schedule a lot of management and customer reports. We have recently had a few issues on our vROps instances that have required reboots and as a result have lost all our schedules and so have to re-create them.

Question: is there an vROps API interface/command which allow to save all our report schedules on a script (like crontab) and run it to re-trigger the schedules  whenever such issues occur ?

Thanks

1 Reply
dtaliafe
Hot Shot
Hot Shot

I think you can do this with the API, but it will take a little coding.

It looks like you'll need all the report IDs, which can be retrieved using this method:

https://{{vrops}}/suite-api/api/reportdefinitions

Then get the schedules for each ID:

https://{{vrops}}/suite-api/api/reportdefinitions/{id}/schedules

There are similar methods to recreate them.  You can find all the documentation on your vROps node at https://{{vrops}}/suite-api

If you want to use a separate scheduler like cron, there are methods to run and download reports as well.  I ended up doing this a while back when we were having issues with the vROps scheduler.

I do a POST to https://{{vrops}}/suite-api/api/reports with the report details in the request body and then a GET /api/reports/{id}/download to download the report.