I am trying to hammer out a relevance api call (REST API) for getting a list of all sites in bigfix along with their subscribed computers if the sitename contains “CIS”. These CIS sites can be both external and custom type sites.
I’ve made it this far:
(id of items 0 of it, name of items 0 of it, display name of items 1 of it) of (subscribed computers of it, it) of all bes sites whose (display name of it as lowercase contains "cis")
Average time ~:200ms
(id of items 0 of it, name of items 0 of it, display name of items 1 of it) of (subscribed computers of it, it) of bes sites whose (display name of it as lowercase contains "cis")
Average ~:60ms
(id of items 0 of it, name of items 0 of it, display name of items 1 of it) of (subscribed computers of it, it) of bes custom sites whose (display name of it as lowercase contains "cis")
Average ~:50ms
The problem I am facing is that bes sites
does not report the custom sites, all bes sites
would look for operator sites as well and it takes too long (3x4 times longer).
I’m wondering if there’s a way of merging the logic of both bes sites
and bes custom sites
in order to have one efficient API call? The call is part of an automation job that runs once every few hours and potentially could cause significant performance issues on the Bigfix environment.