JSchor42
Contributor
Contributor

vRealize Operations - how to use powershell to delete a generated report - keep vROPS tidy

Jump to solution

I have a need to script the generation of a vROPS report on a semi-regular basis into a .csv file for ingestion into another tool (Splunk).  Utilizing a script created by Ryan Kowalewski over at https://ryanjan.uk/2018/05/16/running-vrops-reports-using-powercli/  I am able to generate the report and download it as .csv for use elsewhere.

I'm trying to figure out a method of cleaning up afterword utilizing the vROPS API to include in the script to automate the deletion of the generated report after download.  Anyone know how this can be done?

Thank you.

1 Solution

Accepted Solutions
RobertMesropyan
VMware Employee
VMware Employee
Hello, after downlaod you can execute "DELETE /api/reports/{id}" (Deletes report by it's identifier.) from vRops REST API

View solution in original post

1 Reply
RobertMesropyan
VMware Employee
VMware Employee
Hello, after downlaod you can execute "DELETE /api/reports/{id}" (Deletes report by it's identifier.) from vRops REST API