On 12/10/16 18:27, Vishal Sarin wrote:
> I want an API query which returns hosts with
> "configuration_status_label=Active"
> I am aware of the these APIs but not sure how can I add that query. 
> Can someone please help me here?
> APIs I know of
> "hosts": {
>       "List all hosts": "/api/hosts",

Use this API to list all hosts, but pass a search into it. The "active"
hosts are those with a certain search query, which you'll find if you
follow the active links from the Dashboard or look at your bookmarks
(under Administer).

e.g. GET

(URL-encoded version of last_report > "35 minutes ago" and
(status.applied > 0 or status.restarted > 0))

Dominic Cleal

You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to