Events
GETs (reading data)
| Resource | Description |
|---|---|
/events |
Get a list of events.
The default for |
/events/count |
Get the number of events (returns plaintext, rather than XML or JSON). |
/events/between?column={column}&begin={begin}&end={end} |
Get the events whose timestamp falls between |
/events/{id} |
Get the event specified by the given ID. |
PUTs (modifying data)
PUT requires form data using application/x-www-form-urlencoded as a Content-Type.
| Resource | Description |
|---|---|
/events/{id}?ack=''(true;false) |
Acknowledges (or unacknowledges) an event. |
/events?x=y&…&ack=''(true;false) |
Acknowledges (or unacknowledges) the matching events. |
POST (adding data)
POST requires XML (application/xml) or JSON (application/json) as its Content-Type.
See ${OPENNMS_HOME}/share/xsds/event.xsd for the reference schema.
|
| Resource | Description |
|---|---|
/events |
Publish an event on the event bus (returns |
Version 2 (/api/v2/events)
The v2 Events API supports FIQL search expressions on GET /api/v2/events.
| Resource | Description |
|---|---|
/api/v2/events |
Get a list of events, optionally filtered with a FIQL search expression. |
/api/v2/events/count |
Get the number of events (returns plaintext). |
/api/v2/events/{id} |
Get the event specified by the given ID. |
/api/v2/events/properties |
Get the list of queryable event properties. Accepts an optional |
/api/v2/events/properties/{propertyId} |
Get the set of values for the given property. Accepts optional |
POST /api/v2/events publishes an event and returns 204 No Content (the v1 POST /events returns 202 Accepted).
The acknowledge/unacknowledge PUT endpoints are available only in v1; a PUT against the v2 Events API returns 501 Not Implemented.
|