VMware Cloud Community
Wayne_sun
VMware Employee
VMware Employee

Is there an API to locate an Alert in vRops6 from an external system?

Hi, experts

In my project we have done vrops6 integration with an external system via send trap alerts and customer want to directly open and locate an Alert in our vrops6 from the link of external system.

So, I would like to know if there is an API that could implement my requirement?

Thanks a lot!

0 Kudos
1 Reply
carvaled
Enthusiast
Enthusiast

The alerts API can be called and will give you a list of alerts, you can then filter out what you want in Powershell or another language... : https://vrops.vman.ch/suite-api/api/alerts?pageSize=5000

Alert-API.png

(see screenshot)

From there you obtain the alert ID: <ops:alertId>2b09d8ea-f0fa-4a23-a73a-81c7764c7649</ops:alertId>


or the link to the specific alert in vRops API /suite-api/api/alerts/2b09d8ea-f0fa-4a23-a73a-81c7764c7649


or to the Resource that threw the alert /suite-api/api/resources/9e3e56f8-33f0-4c34-a882-d49dca948378


Once you have the value 2b09d8ea-f0fa-4a23-a73a-81c7764c7649 just build the URL to the alert in the GUI : https://vrops.vman.ch/ui/index.action#/alert/2b09d8ea-f0fa-4a23-a73a-81c7764c7649/summary

Hope that helps...

0 Kudos