Skip to content

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

@TheGabeMan

Description

@TheGabeMan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions