ehrnst / System-Center-Operations-Manager-API

Microsoft System Center Operations Manager (SCOM) Web API
http://adatum.no/operationsmanager/web-api-for-scom
MIT License
41 stars 6 forks source link

No output from Alerts, only from MonitoringObject #6

Closed Outek closed 7 years ago

Outek commented 7 years ago

Hi, thank you for the API

I have some troubles to get alerts from the api

with MonitoringObject everything looks good: PS C:\Windows\system32> Invoke-restmethod -uri 'http://localhost:80/API/MonitoringObject/fb0854c9-1094-be55-327a-2598d5550baf' -Credential $cred

but with Alerts, nothing is echoed, neither with Computers Invoke-RestMethod -Uri 'http://localhost:80/API/Alerts' -Credential $cred

Maybe you can give me a little hint?

ehrnst commented 7 years ago

Hi. Strange. Have you tried using visual studio or just deployed the code? Is swagger also failing? Are you using the version currently in the master branch?

Martin Ehrnst On Mon, 29 May 2017 at 16:10, Outek notifications@github.com wrote:

i have some troubles to get alerts from the api

with MonitoringObject everything looks good: PS C:\Windows\system32> Invoke-restmethod -uri ' http://localhost:80/API/MonitoringObject/fb0854c9-1094-be55-327a-2598d5550baf' -Credential $cred

but with Alerts, nothing is echoed, neither with Computers Invoke-RestMethod -Uri 'http://localhost:80/API/Alerts' -Credential $cred

Maybe you can give me a little hint?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ehrnst/System-Center-Operations-Manager-API/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AUXidmdp3IJIuhcwHsBxFLlCJZm6aKTOks5r-tG7gaJpZM4NpWn6 .

Outek commented 7 years ago

I tried it with the zip file from the master branch. i didn't test it with swagger, but i'll try this.

Outek commented 7 years ago

Sorry for bothering you, it was an issue with the credentials/sdk account on scom itself.

ehrnst commented 7 years ago

Not a problem hope you will find it useful! On Tue, 30 May 2017 at 14:51, Outek notifications@github.com wrote:

Sorry for bothering you, it was an issue with the credentials/sdk account on scom itself.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ehrnst/System-Center-Operations-Manager-API/issues/6#issuecomment-304868124, or mute the thread https://github.com/notifications/unsubscribe-auth/AUXidu8TZn-a23-VexAeiZp7QmF8FHYBks5r_BCzgaJpZM4NpWn6 .