Closed MarkPort closed 3 years ago
Hi thanks for the feedback. Are you sure that the ID you are using is the actual alerting object, and not a hosted object?
Hard to diagnose this over github. I'm off work atm. But will have a look next week if you haven't figured it out by then.
Martin
Hi Mark. I'm not able to reproduce your error. See if you can list all alerts from the api and get the objectId from there. Test it against the monitoringObject alert endpoint
Hello,
I am trying to get the alerts of my monitoring object via HTTP GET request to:
http://scomapi/api/alerts/MonitoringObject/{MonitoringObjectGUID}
The {MonitoringObjectGUID} I got with PowerShell:
Get-SCOMMonitoringObject -DisplayName "MY OBJECT" | select id
Unfortunately the response is "[]", although in the Operation Manager I can see alerts in that object.