Hello!
If you are looking to return a field/property value across all computers (or even a large number of them), it is more efficient to leverage the /api/query
method, and pass it some session relevance. Here is a sample session relevance query to return the Computer ID, Name, and Time of Last Scan Attempt across all computers/endpoints in one API call:
(id of it, name of it, value of result from (bes property "Time of Last Scan Attempt") of it | "n/a") of bes computers
Passing this as a url-encoded parameter named ‘relevance’ here is a sample GET request (which will return XML):
https://<BigFix host:port>/api/query?relevance=%28id%20of%20it%2C%20name%20of%20it%2C%20value%20of%20result%20from%20%28bes%20property%20%22Time%20of%20Last%20Scan%20Attempt%22%29%20of%20it%20%7C%20%22n%2Fa%22%29%20of%20bes%20computers
We can also specify output=json
if you prefer a JSON result:
https://<BigFix host:port>/api/query?output=json&relevance=%28id%20of%20it%2C%20name%20of%20it%2C%20value%20of%20result%20from%20%28bes%20property%20%22Time%20of%20Last%20Scan%20Attempt%22%29%20of%20it%20%7C%20%22n%2Fa%22%29%20of%20bes%20computers