HPE OneView

Alerts REST API does not show all alerts

 
irom77
New Member

Alerts REST API does not show all alerts

When pulling alerts thru rest/alerts?start=0&count=-1&filter="alertState EQ 'Active'" I can see only 1 alert, but there are at least 5 in Global Dashboards 

2 REPLIES 2
AmRa
HPE Pro

Re: Alerts REST API does not show all alerts

Please try below REST API  call and check if you are able to see all alerts.

GET https://{appl}/rest/alerts?view=alertSummary

I am an HPE Employee

Accept or Kudo
ChrisLynch
HPE Pro

Re: Alerts REST API does not show all alerts

The Global Dashboard gets alerts from the appliance Index, not /rest/alerts. Please use GET /rest/index?category=alerts to view them. And this is likely caused by the OneView Appliance index is not in sync. What version of OneView is running on your appliance?

I am an HPE employee

Accept or Kudo