Re: [foreman-dev] API usage - getting Hosts in Hostgroup

2017-08-16 Thread Tomas Strachota
The search parameter can be used also in the api: https://theforeman.org/api/1.15/index.html The request will be something like: https://foreman.mydomain.com/api/v2/hosts?search="hostgroup_id=1; T. On Wed, Aug 16, 2017 at 1:05 PM, Roy Burstein wrote: > Hi Thomas , > >

[foreman-dev] API usage - getting Hosts in Hostgroup

2017-08-15 Thread roy.b via foreman-dev
Hi all , I am new here and hope it's OK to submit issues . I have created new Hostgroup in foreman and the group is empty . Querying the hosts table in foreman schema : mysql> select id from hostgroups h -> where h.name='myhostgroup'; +-+ | id | +-+ | 243 | +-+ 1 row in set