Minions API
The Minions API exposes the Minions registered with OpenNMS. Two versions are available: the read-only v1 API under /rest/minions, and the v2 API under /api/v2/minions.
A Minion is represented by the OnmsMinion model: id, label, location, type, status, version, date, lastCheckedIn, and a properties map.
Version 1 (/rest/minions)
The v1 API is read-only and produces application/xml, application/json, and application/atom+xml.
| Resource | Description |
|---|---|
|
Lists all Minions (with |
|
Returns the total number of Minions. Produces |
|
Fetches a single Minion by ID. Returns |
|
Fetches a single property value of a Minion. Produces |
Version 2 (/api/v2/minions)
The v2 API supports read, update, and delete operations and produces/consumes application/json and application/xml.
GETs (reading data)
| Resource | Description |
|---|---|
|
Lists Minions. Supports |
|
Returns the number of matching Minions. Produces |
|
Lists the searchable properties. Optional |
|
Lists the available values for a searchable property. Optional |
|
Fetches a single Minion by ID. Returns |
PUT (modifying data)
| Resource | Description |
|---|---|
|
Bulk-updates the matching Minions. Consumes |
|
Replaces a single Minion. Consumes |
DELETEs (Removing Data)
| Resource | Description |
|---|---|
|
Deletes all Minions matching the current query. |
|
Deletes a single Minion by ID. Also fires a |
Examples using cURL
curl -u admin:admin "http://127.0.0.1:8980/opennms/rest/minions"
curl -u admin:admin "http://127.0.0.1:8980/opennms/rest/minions/00000000-0000-0000-0000-000000ddba11"
{"id":"00000000-0000-0000-0000-000000ddba11","label":"minion-01","location":"Raleigh","type":"Minion","status":"Up","lastCheckedIn":"2026-06-30T12:00:00.000-04:00"}
curl -u admin:admin "http://127.0.0.1:8980/opennms/api/v2/minions?_s=location%3D%3DRaleigh"
curl -u admin:admin -X DELETE "http://127.0.0.1:8980/opennms/api/v2/minions/00000000-0000-0000-0000-000000ddba11"