Can you name the 3rd party application or what it is written in?
There is a python library for interacting with the BigFix REST API.
These style queries are returned using platform APIs that are limited in what they can do, but are well formatted and should be used for what they are capable of.
This is session relevance and can return any arbitrary data you want, so it is not well formatted by default. This is just the nature of the fact that it returns data in any possible format. You can however write session relevance that returns the data in JSON format by writing in that way.
Example, this is how you could write a session relevance query that works for a single computer but returns JSON:
("{ " & it & " }") of concatenation ", " of ("%22" & name of properties of it & "%22: " & ("[ %22" & it & "%22 ]") of concatenation "%22, %22" of values of it) of property results of bes computers 00123400
And you could get the list of computer IDs to query using:
ids of bes computers whose(now - last report time of it < 45 * day)
Then this should be everything for all computers that have reported within the last 45 days:
("[" & it & "]") of concatenation ", " of ( ("{" & it & "}") of concatenation (", ") of ( ("%22name%22: %22" & it & "%22") of (name of it | "UnknownName"); ("%22id%22: " & it as string) of (id of it | 0); ("%22properties%22: { " & it & " }") of concatenation ", " of ("%22" & name of properties of it & "%22: " & ("[ %22" & it & "%22 ]") of concatenation "%22, %22" of values of it) of property results of it) ) of bes computers whose(now - last report time of it < 45 * day)
But this is reporting in a JSON schema that I made up, you could tweak it to be in whatever format you need, with some limitations.
That said, I would recommend getting a limited set of data of ALL computers, but then query all data from only certain computers.
Also, I am not escaping "
(double quotes) within the property results, so this does NOT actually return valid JSON in cases where double quotes are within the property results, so more work is required, but there are some built in methods that might help with this.
Related: