Hello,
Could you please give me the SolarWinds API that can be used by another application to retrieve all alerts for further processing.
Thank you
To retrieve all alerts from a SolarWinds Orion Platform instance programmatically, you should use the SolarWinds API, specifically via SWIS (SolarWinds Information Service). The API exposes alerts, their properties, statuses, and related metadata.
SolarWinds exposes a REST-like interface via SWIS, usually reachable at:
https://<SolarWindsServer>/SolarWinds/InformationService/v3/Json/
All API operations use this base URL, appended with methods such as Query, QueryMultiple, Invoke, etc.
Query
QueryMultiple
Invoke
Use SWQL to pull alert definitions and status:
GET /SolarWinds/InformationService/v3/Json/Query?q=SELECT AlertID, Name, Enabled, Severity, TriggeredCount, LastTriggered, ActiveFROM Orion.AlertConfigurations
Full URL example:
https://<SolarWindsServer>/SolarWinds/InformationService/v3/Json/Query?q=SELECT AlertID,Name,Enabled,Severity,TriggeredCount,LastTriggered,Active FROM Orion.AlertConfigurations
Returns: All configured alerts and key properties.
SolarWinds stores triggered alert events in:
Orion.AlertActive
Orion.AlertHistory
GET /SolarWinds/InformationService/v3/Json/Query?q=SELECT AlertActiveID, AlertID, NodeID, TriggerTime, Acknowledged, ClearedTimeFROM Orion.AlertActive
GET /SolarWinds/InformationService/v3/Json/Query?q=SELECT AlertHistoryID, AlertID, NodeID, TriggerTime, Message, ActionTakenFROM Orion.AlertHistoryORDER BY TriggerTime DESC
Example — alerts triggered in the last 24 hours:
GET /SolarWinds/InformationService/v3/Json/Query?q=SELECT AlertHistoryID,AlertID,TriggerTimeFROM Orion.AlertHistoryWHERE TriggerTime >= @Ago24Hours
Where @Ago24Hours is a SWQL macro for “24 hours ago.” Add Severity = X if needed.
Severity = X
If you need the configured email/page/URL actions:
GET /SolarWinds/InformationService/v3/Json/Query?q=SELECT ActionID, Name, Type, Enabled FROM Orion.AlertActions
SolarWinds API supports:
Method
Supported
Basic Auth (username/password)
✔
API Token
Integrated Windows Auth (NTLM/Kerberos)
Example Header for Basic Auth:
Authorization: Basic <Base64(username:password)>
Typical REST response looks like:
{ "results": [ { "AlertID": 123, "Name": "High CPU Usage", "Severity": 3, "Enabled": true, "TriggeredCount": 42, "LastTriggered": "2026-01-15T14:23:11Z", "Active": false }, … ]}
SolarWinds supports client libraries in:
requests
swis-py
Example PowerShell (SwisModule):
Connect-Swis -Hostname solarwinds.example.com -Username svc_api -Password MyPassword$query = "SELECT AlertID,Name,Severity FROM Orion.AlertConfigurations"Get-SwisData -SwisConnection $swis -Query $query
import requestsurl = "https://solarwinds.example.com/SolarWinds/InformationService/v3/Json/Query"params = { "q": "SELECT AlertHistoryID,AlertID,Message,TriggerTime FROM Orion.AlertHistory"}auth = ("api_user", "password")response = requests.get(url, params=params, auth=auth, verify=False)data = response.json()print(data)
Purpose
SWIS Resource
Alert definitions
Orion.AlertConfigurations
Active alerts
Alert history
Alert actions
Orion.AlertActions