Hi i need to use big fix rest api to get list of computers with the list of patches installed on them in last 30 days
Below is relevance query i am using
(names of computers of it, names of actions of it, exit codes of it,statuses of it,detailed statuses of it,values of results from (bes properties "WK_Patch_Class") of computers of it,names of issuers of actions of it,start times of it,end times of it) of results of bes actions whose (exists end date of it and now > ((end date of it as string & " " & end time_of_day of it as string & " " & local time zone as string) as time) and now - ((end date of it as string & " " & end time_of_day of it as string & " " & local time zone as string) as time) < 30*day)
this works when i use web reports ie https://:8083/webreports?page=QNA
tried it still same result This XML file does not appear to have any style information associated with it. The document tree is shown below.
<BESAPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BESAPI.xsd">
<Query Resource="(names of computers of it, names of actions of it, exit codes of it,statuses of it,detailed statuses of it,values of results from (bes properties "WK_Patch_Class") of computers of it,names of issuers of actions of it,start times of it,end times of it) of results of bes actions whose (exists end date of it and now > ((end date of it as string & " " & end time_of_day of it as string & " " & local time zone as string) as time) and now - ((end date of it as string & " " & end time_of_day of it as string & " " & local time zone as string) as time) < 30*day)">
<Result/>
<Evaluation>
<Time>0.118ms</Time>
<Plurality>Plural</Plurality>
</Evaluation>
</Query>
</BESAPI>
Ok, that’s strange and indicates a configuration problem somewhere.
Are you using the same account in Web Reports as in REST API? I’d check that the API account has the rights “Show other operators Actions” and has management rights to the computers that ran the action.
When you use the Console, is the Web Reports link in the Console correct? If there are multiple Web Reports servers, or the Root server cannot reach Web Reports, that could explain the REST query failing (but in that case I’d expect a 503 error indicating Web Reports is not available, not just an empty result, actually)