You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Created by mfriedrich on 2013-10-29 21:50:13 +00:00
Assignee: Wolfgang
Status: Closed (closed on 2014-03-07 10:29:04 +00:00)
Target Version: 1.11
Last Update: 2014-03-07 10:29:04 +00:00 (in Redmine)
Icinga Version: 1.10.0
it's obviously wrong/has changed in recent versions.
20:15:03 < quickdry21> Hey, I'm trying to get the REST API going. Trying this URL
http://example.com/icinga-web/web/api/service/filter[AND(HOST_CURRENT_STATE|=|0;OR(SERVICE_CURRENT_STATE|=|1;SERVICE_CURRENT_STATE|=|2))]columns(SERVICE_NAME|HOST_NAME|SERVICE_CURRENT_STATE|HOST_NAME|HOST_CURRENT_STATE|HOSTGROUP_NAME)order(SERVICE_CURRENT_STATE;DESC)/authkey=supersecret/json - I get {"result":[[],[],[],[]],"success":"true"} - proper number of
hosts but no columns
20:15:03 < quickdry21> returned. Any thoughts?
20:18:44 < quickdry21> NVM. Figured it out. Documentation is wrong in two places - columns needs [] brackets, not (). columns needs to be separated by a / - this one worker
http://example.com/icinga-web/web/api/service/filter[AND(HOST_CURRENT_STATE|=|0;OR(SERVICE_CURRENT_STATE|=|1;SERVICE_CURRENT_STATE|=|2))]/columns[SERVICE_NAME|HOST_NAME|SERVICE_CURRENT_STATE|HOST_NAME|HOST_CURRENT_STATE|HOSTGROUP_NAME]/authkey=supersecret/json
I ran into this as well. I actually began working with the API in 1.9.1, and then upgraded to 1.10 thinking that would fix my problem. Unfortunately I cannot go back and re-verify on 1.9.1.
In both docs listed the "Parameters in detail" section is correct, but the "Example for GET" has parenthesis instead of brackets. I feel like most people are going to copy that example to get started as I did, and unfortunately, completely miss the accurate details section.
This issue has been migrated from Redmine: https://dev.icinga.com/issues/4970
Created by mfriedrich on 2013-10-29 21:50:13 +00:00
Assignee: Wolfgang
Status: Closed (closed on 2014-03-07 10:29:04 +00:00)
Target Version: 1.11
Last Update: 2014-03-07 10:29:04 +00:00 (in Redmine)
it's obviously wrong/has changed in recent versions.
places to be corrected:
please ask web devs for details.
The text was updated successfully, but these errors were encountered: