Need rest call to query boot time of operating system

Hi All,
I am trying http method for rest call to get boot time of operating system and getting the error ‘Unknown request method’, my query is being run as below:-1:

https://BigFixrootserver:52311/api/relevance/computer/(name%20of%20it,%20(now%20-%20last%20boot%20time%20of%20it)%20/%20day)%20of%20(select%20objects%20whose%20(operating%20system%20of%20it%20as%20lowercase%20contains%20/%22win/%22)%20of%20it)%20of%20bes%20computers

Could not resolve it on the QNA either:-1:
(names of it, (now - last boot time of it) / day) of (select objects whose (operating system of it as lowercase contains “win”) of it) of bes computers

Please suggest on it. Ty

You are mixing up client relevance and session relevance. The difference is that the former is evaluated by the client only as a part of fixlet/task/baseline relevance or properties (if the latter, the results are then posted back to database); the latter (session relevance) is evaluated by Web Reports against the data that is already in database. RestAPI uses session relevance, so you can’t put any client relevance there…

What you need to do is something along those lines:

  1. Create a property “Boot Time” with client relevance: boot time of operating system
  2. Once that is in place, you can post session relevance to use its data: (name of computer of it, ((now - it) / day) of (it as time) of value of it) of results whose (exists values of it) of bes property whose (name of it = “Boot Time”)
1 Like

Thank you :slight_smile:

1 Like