Hi,
How to acknowledge solarwinds alerts through API.
Try:
data = '[[{0}],"Acknowledged"]'.format(a)
(assuming Python)
Btw: Considering the loop above, since Acknowledge verb accepts a list of AlertObjectIDs, it is better to prepare "data" variable in a loop first, so that it contains all the AlertObjectIDs, and then call the Acknowledge verb just once. You'd get petter performance.
See this documentation
Alerts · solarwinds/OrionSDK Wiki · GitHub
Am trying Post method to acknowledge alerts and below is mu URL, when i post a request, it is taking more time and no response.
POST /SolarWinds/InformationService/v3/Json/Invoke/Orion.AlertActive/Acknowledge HTTP/1.1
Authorization: Basic SGVscERlc2tOUE06d2VsY29tZUAxMjM=
Content-Length: 29
Host: XXXX:17778
Content-Type: application/json
[ 812, "Ticket Created"]
Please help.
812: AlertObject ID
Ticket created: Notes
This is my URL which am trying in Postman
http://XXXX:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.AlertActive/Acknowledge
Am able to telnet port(17778). when i click this URL, it is not showing any response. below is my payload data.
Kindly help to fix this
Acknowledge verb accepts a list of AlertObjectIDs. So please try the following json payload:
[ [812], "Ticket Created" ]
Still am getting no response as result. below is my post method where am testing in postman.
Host: x.x.x.x:17778
Cache-Control: no-cache
Postman-Token: fab3869d-6ac5-711e-d9b0-0f992b276fd8