Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Client Error: Access to Orion.AlertSuppression.SuppressAlerts verb denied #75

Open
TheGabeMan opened this issue Apr 13, 2023 · 0 comments

Comments

@TheGabeMan
Copy link

TheGabeMan commented Apr 13, 2023

Hi
I'm using the example code try and SuppressAlerts, but I keep getting the error "403 Client Error: Access to Orion.AlertSuppression.SuppressAlerts verb denied".

This is my code:
sw = orionsdk.SwisClient('server', 'username', 'password') uri = sw.query("SELECT Uri FROM Orion.Nodes WHERE NodeID=@node_id", node_id=17918)['results'][0]['Uri'] print( sw.invoke('Orion.AlertSuppression', 'GetAlertSuppressionState', [uri]) ) print( sw.invoke('Orion.AlertSuppression', 'SuppressAlerts', [uri], datetime.datetime.now(), None) )

The example was taken from #34

The exact error:
requests.exceptions.HTTPError: 403 Client Error: Access to Orion.AlertSuppression.SuppressAlerts verb denied. for url: https://solarwinds-orion:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.AlertSuppression/SuppressAlerts

Performing the action through the gui with the samen user account, will allow me to suppress alerts. Any idea what this could be?

Running SolarWinds 2023.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant