Re: [foreman-users] API to Get Hosts with "configuration_status_label=Active"

2016-10-17 Thread Dominic Cleal
On 17/10/16 04:25, Amrit Atmajit wrote: > Thanks Dominic, > > This search option is a proper approach to get active hosts rather than > "configuration_status_label=Active". > > But adding to Vishal's query, our requirement is to list the active > hosts along with their facts values (like,

Re: [foreman-users] API to Get Hosts with "configuration_status_label=Active"

2016-10-16 Thread Amrit Atmajit
Thanks Dominic, This search option is a proper approach to get active hosts rather than "configuration_status_label=Active". But adding to Vishal's query, our requirement is to list the active hosts along with their facts values (like, hostname, macaddress, manufacturer, etc.) using a single

Re: [foreman-users] API to Get Hosts with "configuration_status_label=Active"

2016-10-12 Thread 'Jason B. Nance' via Foreman users
Hi Vishal, > I want an API query which returns hosts with > "configuration_status_label=Active" I believe the key is 'host.configuration_status_label' (vs just 'configuration_status_label'), but I don't know if this is something that the search API can filter on or not. Regards, j

[foreman-users] API to Get Hosts with "configuration_status_label=Active"

2016-10-12 Thread Vishal Sarin
Hi All, 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", "Show a host":