I have seen a bunch of ways to acknowledge an alert using various methods but so far none of it seems to work. Below is a screen shot from Postman. I get the true, but in the end the alert is not acknowledged.
That verb relates to the old "advanced alert" system. The current alert system is documented here: Alerts · solarwinds/OrionSDK Wiki · GitHub . Acknowledging alerts is discussed near the top.
My current command is listed below in an attempt to use the invoke-verb command in powershell to do this, but it is also not working.
Invoke-SwisVerb $swis Orion.AlertActive Acknowledge (15613 , "")
What query did you use to get the number 15613?
It is the objectID from an alert I am using from testing. Our basic layout is simple, solarwinds makes an alert and we send a JSON CURL to our ticketing software which returns the ticket number in that system. If it is autoacknowledged by solarwinds then we send a JSON Curl to close it in the ticketing system. That works really well, what we have issues with is if the the ticket is closed in the ticketing software. What happens if it is closed on the ticketing side, is a script goes and sees it has been closed and then says "Ok for ticket # 100 the solarwinds alertID = 15613. So acknowledge it in Solarwinds. The acknowledge in solarwinds is the catch.
So we have found that the below code works, but as Tait has said, it is powershell and we are hoping for a straight curl
A curl command line for calling Orion.AlertActive.Acknowledge would look like this:
curl -u admin: -k -d '[[48],"my note"]' -H "Content-Type: application/json" https://hostname:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.AlertActive/Acknowledge
Perfect. Thanks. That worked