Page 1 of 1
Backend API question
Posted: Wed Mar 05, 2014 11:29 am
by BanditBBS
I'm trying to use the backend to get a list of Hosts. The gethosts or gethostgroupmembers command would work for me, but is there any way to limit it to only show a specific hostgroup instead of all? I tried adding &hostgroup=all_linux to the url but it made no difference...someone tell me I can do it an how

Re: Backend API question
Posted: Wed Mar 05, 2014 11:43 am
by BanditBBS
Nevermind, figured it out looking at the xml, hostgroup_name is the field I have to add.
edited for my terrible spelling
Re: Backend API question
Posted: Wed Mar 05, 2014 12:32 pm
by abrist
np. I find checking the key names in the xml to be a good way to know what to query. Happy trails good sir.