BigFix Rest api query bes computers

Hello

WE have a custom property called “Dept” which is set by a clientsetting. I would like to include the Dept property in my REST query.

This works https://server_Fqdn:52311/api/query?relevance=(names of it, last report time of it, IP Addresses of it) of bes computers

This fails

This works https://server_Fqdn:52311/api/query?relevance=(names of it, last report time of it, IP Addresses of it, dept of it) of bes computers

Basically if you have multiple properties that are either custom or reside outside of bes computers how do you add those? Also is there a way to list all of the available properties that are part of bes computers?

For the non-Reserved properties, you’ll need to retrieve values of results(bes computer, bes property)

Be warned though that the “intuitive” way is terribly slow and inefficient. Refer to Efficient Session Relevance Query for Computer Properties for the “correct/most efficient” methods for looking up property results.

If you were to use

(Name of it, values of results(it, bes properties whose(name of it = "My Property")) of bes computers

…then the lookup to find the BES Property is repeated for each computer which is very slow. The quoted article demonstrates how to lookup each property just once for the whole query.

To get a list of properties I use

(name of it, id of it, reserved flag of it, name of site of source analysis of it | "Global", name of source analysis of it | "Global", number of results of it) of bes properties
1 Like