Merge multiple API in Single API

Below are the four different API’s which are working fine. I want to make a single API to retrieve all the information including property name. I tried my self but did not able to achieve the requirements. Kindly help to make it single API with Property name.

https://abc.test.com:52311/api/query?relevance=(name of it,last report time of it) of bes computers

https://abc.test.com:52311/api/query?relevance=(names of computers of it, values of it) of results whose (exists values of it) of bes properties whose (name of it = "Staus")

https://abc.test.com:52311/api/query?relevance=(names of computers of it, values of it) of results whose (exists values of it) of bes properties whose (name of it = "Environment")

https://abc.test.com:52311/api/query?relevance=(names of computers of it, values of it) of results whose (exists values of it) of bes properties whose (name of it = "LMI")

Try this
https://bigfixserver:52311/api/query?relevance=(name of it, last report time of it, value of result from (bes property "Staus") of it | "N/A", value of result from (bes property "Environment") of it | "N/A", value of result from (bes property "LMI") of it | "N/A") of bes computers

Thanks, It gave me error “Requested resource does not exists” When i run my api one by one all worked fine for me.

This appears to be a typo, though it shouldn’t affect the API call itself.

I’d suggest URL-encoding the full relevance statement and retrying the API call.

//Example:
BigFix Rest API session relevance query - Content Authoring - BigFix Forum

Worth noting that this query while in its simplest possible form, is not optimized and won’t scale well (if for example you want to keep adding more properties and especially if you have big environment). The best way to do it with sets but the relevance itself gets messy/hard to follow & troubleshoot in a hurry.

1 Like

I have always found the Excel Connector a very useful way to build session relevance to use with the APIs (assuming of course you have Microsoft Excel). You can find it on the utilities page. The relevance it creates is scalable and wont have the problems @ageorgiev mentions when using a less complex forms of queries.

Rest API and Webreport not the same result :frowning: - Reporting - BigFix Forum

1 Like