Page 1 of 1
hosgroup summary API
Posted: Mon Jun 11, 2018 1:03 pm
by rjmon
Is it possible to query hostgroup summary API for one hostgroup. I would like to share that one hostgroup summary with users.
Re: hosgroup summary API
Posted: Mon Jun 11, 2018 3:25 pm
by scottwilkerson
Not it one call, you would have to mage multiple calls, grab the members in the hostgroup with
GET objects/hostgroupmembers
Then iterate over the
GET objects/hoststatus
GET objects/servicestatus pulling out data for the hosts that are members of the group you are looking for.
Re: hosgroup summary API
Posted: Tue Jun 12, 2018 9:49 am
by rjmon
Looks like it needs lot of effort to filter the hostgroup that i am interested.
Re: hosgroup summary API
Posted: Tue Jun 12, 2018 2:28 pm
by scottwilkerson
rjmon wrote:Looks like it needs lot of effort to filter the hostgroup that i am interested.
It is a programming problem a developer should solve, but it is just 3 API calls to get all the data