Hi all …
I’m taking a look at the BigFix REST API (and relevance expressions).
I have a call that runs a relevance expression that returns all BES properties for a given computer given its computer id, modelled after this. Here’s the call using cURL:
curl -k -X GET --user admin:pwd "https://192.168.x.x:52311/api/query?relevance=((names of it) of properties of it, values of it) of property results of (bes computers whose (id of it = 85713))"
It returns XML of all the properties available, including those from analyses, and it’s the properties fron analyses that I want to examine. Here’s a short snippet of what comes back:
[Tuple]
[Answer type="string"]Time of Last Successful Scan for Package Data[/Answer]
[Answer type="string"]2016-03-18 09:15:06 UTC[/Answer]
[/Tuple]
[Tuple]
[Answer type="string"]Catalog Version</Answer]
[Answer type="string"]1141854.0</Answer]
[/Tuple]
How can I modify the relevance statement so it just returns a single property, such as “Catalog Version” from my snippet?
–Mark