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 ,
>
>
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