Skip navigation
2989 Views 5 Replies Latest reply: May 11, 2012 12:14 PM by MemoryCorruption RSS
MemoryCorruption Level 1 41 posts since
Oct 10, 2011
Currently Being Moderated

May 8, 2012 8:01 AM

Number of Web App Scans for a Date Range

Hello,

 

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.

 

 

<ServiceRequest>
    <data>
        <WebApp>
            <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>
        </WebApp>
    </data>
</ServiceRequest>

 

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.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 6 points