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.