Hi,
I need to be able to enable/disable alerting rule through API REST, is it possible ?
Tested with /Create/Orion.AlertConfigurations and /Create/Orion.AlertDefinitions with alertid and/or alertrefid and/or alertdefid + enabled (true/false) without success
Thanks
Ok got it
https://solarwinds.github.io/OrionSDK/swagger-ui/#/CRUD/Update is the good endpoint to do this
edit : https://solarwinds.github.io/OrionSDK/swagger-ui/#/CRUD/BulkUpdate works too
You can achieve this using SolarWinds PowerShell module. This is an example code to disable an alert definition:
$hostname = "SW_HOSTNAME"$username = "SW_USER"$password = "SW_PASSWORD"$swis = Connect-Swis -host $hostname -UserName $username -Password $password$AlertID = 22$alert_uri = Get-SwisData $swis "SELECT top 1 URI FROM Orion.AlertConfigurations WHERE AlertID=$AlertID"Set-SwisObject $swis $alert_uri @{Enabled=$false}
Hum yeah ok... But this is not what i'm asking