Hi
I am trying to get a list of hosts that belong to a host group. However the 
hostgroup itself does not directly contain any hosts, the subgroups does 
however.

Using the API I can get a list of hosts per hostgroup 
using https://localhost/api/hostgroups/<hostgroup number>/hosts
I can get a description of the hostgroup using /api/hostgroups/<hostgroup 
number> 

What I can't seem to get is a list of subgroups using the API and thus no 
easy way of getting all the hosts in a parent group. 

Other than building my own hierarchy from api/hostgroups is there a way of 
getting all hosts including hosts in subgroups for a particular hostgroup?

Regards

-- 
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 [email protected].
To post to this group, send email to [email protected].
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