5 Replies Latest reply on May 11, 2012 12:14 PM by MemoryCorruption

    Number of Web App Scans for a Date Range

    MemoryCorruption Level 1



      I'm attempting to get the number of web application scans that ran for a specified date range.  I also, want to filter based on the end result of the scan (FINISHED, ERROR, etc.).  I've been reading the documentation and I'm not finding it very clear as to how the XML should be formatted.



                  <lastScan.date Date="GREATER">2012-05-01T24:00:00Z</lastScan.date>
                  <lastScan.date Date="LESSER">2012-05-08T24:00:00Z</lastScan.date>
                  <lastScan.status Keyword="EQUALS">FINISHED</lastScan.status>


      My curl request looks like this:


      curl -u "UserName:Password" -H "content-type: text/xml" -X "POST" -d @- "https://qualysapi.qualys.com/qps/rest/3.0/search/was" < scansFinished.xml


      When I send that request, I get nothing back.  So, the XML is obviously completely wrong.  Any help would be much appreciated.