Status API
The /status endpoint provides alarm/outage-based status summaries and status-annotated lists for nodes, applications, and business services. It is mounted under /opennms/api/v2/status, is read-only, and produces application/xml and application/json.
This is distinct from the Health API (/health), which reports the health of internal subsystems.
|
The {type} path element selects the status-calculation strategy and is one of None, Alarms, or Outages (case-insensitive); an invalid value returns 400 Bad Request.
The list endpoints accept the query parameters limit, offset, orderBy, order (asc/desc), and severityFilter (may be repeated; values are severity labels such as Normal, Warning, Minor, Major, Critical). They return 204 No Content when empty, otherwise 200 OK with a Content-Range header.
GETs (reading data)
| Resource | Description |
|---|---|
|
Returns a severity-count summary of nodes, computed by the given strategy. |
|
Returns a severity-count summary of all applications. |
|
Returns a severity-count summary of all business services. |
|
Returns a paginated, severity-filterable list of nodes with status computed by the given strategy. |
|
Returns a paginated, severity-filterable list of applications with their computed status. |
|
Returns a paginated, severity-filterable list of business services with their computed status. |
Examples using cURL
The summary/* endpoints return a plain JSON array; request them with Accept: application/json (the default XML representation is not available for these endpoints).
|
curl -u admin:admin -H "Accept: application/json" "http://127.0.0.1:8980/opennms/api/v2/status/summary/nodes/Alarms"
curl -u admin:admin -H "Accept: application/json" "http://127.0.0.1:8980/opennms/api/v2/status/nodes/Alarms?limit=10&severityFilter=Major&severityFilter=Critical"
curl -u admin:admin -H "Accept: application/json" "http://127.0.0.1:8980/opennms/api/v2/status/applications?limit=10&offset=0"