AnsweredAssumed Answered

Get all the WAS scans

Question asked by John Doe on Apr 26, 2012
Latest reply on Apr 30, 2012 by Axel

Hello,

 

I was looking for downloading all the scan performed on all my web application in order to generate stats of vulnerabilities and check automatically if a scan generated an error or not.

 

To do so, I first use https://qualysapi.qualys.com/qps/rest/3.0/search/was/wasscan to get the full list of all the performed scans and their id

 

Then with a loop on the previous result, I use https://qualysapi.qualys.com/qps/rest/3.0/download/was/wasscan/<id> where id is the scan reference.

 

I'm doing this in python and after some results (between 2 and 20), I've the following error which happen:

URLError: <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>

 

 

Between dowloading and parsing information, it takes approximatively 10minutes per scan to get the result and the script fails after 2 or more request with the above error. There is around 1900 scans on my account so if the script could do everything without an error it will be perfect

 

My internet connection is quite stable and I can't explain why this error happen.

 

Do you have any idea on this error?

Do I use the good API functions?

Is it normal that it takes that much time for every scan?

Is it possible to disable the vulnerability details in this kind of scan report?

 

Thanks in advance

 

 

Kind Regards

Outcomes