Search API
The /search endpoint performs a global search across all (or one specified) search contexts plus installed UI plugin/extension menu entries, returning weighted, permission-filtered matches grouped by context. It is mounted under /opennms/api/v2/search and produces application/json. Results are filtered according to the requesting user’s roles/permissions.
GETs (reading data)
| Resource | Description |
|---|---|
|
Performs a global search.
Returns |
Examples using cURL
Search across all contexts
curl -u admin:admin "http://127.0.0.1:8980/opennms/api/v2/search?_s=router"
Response
[
{
"context": "Node",
"results": [
{
"identifier": "1",
"label": "router-01",
"url": "element/node.jsp?node=1",
"matches": [{"id":"label","label":"Label","value":"router-01"}],
"weight": 0
}
],
"more": false
}
]
Search within a single context, limited to 5 results
curl -u admin:admin "http://127.0.0.1:8980/opennms/api/v2/search?_s=router&_c=Node&_l=5"