AnsweredAssumed Answered

PC API query for compliance posture is not returning results for the last 2 days

Question asked by Attila Horvath on Jul 2, 2019

Hi

 

We had a working query and out of the sudden, it is not working anymore. And I have no idea what is the problem with it. This for the policy compliance posture. 

Original query:

 

curl -u "Username:Password" -H "X-Requested-With: curl" "https://qualysapi.qg3.apps.qualys.com/api/2.0/fo/compliance/posture/info/?action=list&asset_group_ids=AGIDNUMBER&policy_ids=PolicyIDNUMBER

 

And this is giving me this now:

 

<!DOCTYPE POSTURE_INFO_LIST_OUTPUT SYSTEM "https://qualysapi.qg3.apps.qualys.com/api/2.0/fo/compliance/posture/info/posture_info_list_output.dtd">
<!-- This report was generated with an evaluation version of Qualys //-->
<POSTURE_INFO_LIST_OUTPUT>
<RESPONSE>
<DATETIME>2019-07-02T16:19:37Z</DATETIME>
<POLICY>
<ID>123456789</ID> <DATETIME>2019-07-02T16:19:37Z</DATETIME>
</POLICY>
</RESPONSE>
</POSTURE_INFO_LIST_OUTPUT>
<!-- This report was generated with an evaluation version of Qualys //-->
<!-- CONFIDENTIAL AND PROPRIETARY INFORMATION. Qualys provides the QualysGuard Service "As Is," without any warranty of any kind. Qualys makes no warranty that the information contained in this report is complete or error-free. Copyright 2019, Qualys, Inc. //-->

 

And the "funny" and the very annoying thing it is the following if I modify the query to use only the policy_id value without the asset_group_ids value it will give me the results.

 

We have CA installed on the host, and in the policy we are using CA check box and an asset group is added too. But even if we remove the asset group from the policy it is not working.

 

Anyone, any idea?

 

Thanks

Outcomes