AnsweredAssumed Answered

Download Scans via API

Question asked by David Romero on Nov 13, 2012
Latest reply on Nov 21, 2012 by Parag Baxi

Hello,

 

I have two questions about the use of the API:

 

1. Is it possible to get the not alive host from a scan report? When I do something like

curl -H "X-Requested-With: Curl Sample" -b "QualysSession=XXXXX; path=/api;secure" -d "action=fetch&scan_ref=scan/XXXXXXXXX&mode=extended" "https://qualysapi.qualys.eu/api/2.0/fo/scan/", I only get the vulnerabilities of the host scanned but I'm not able to get the list of the "not alive host" like in the PDF report.

 

2. Is it possible download the list of scans in function of the finished date? With the next instrucction I'm able to download a list of scans with the date when the scanned was launched but not the finished date:

curl -H "X-Requested-With: Curl Sample" -b "QualysSession=XXXXXXXX; path=/api;secure" -d "action=list" "https://qualysapi.qualys.eu/api/2.0/fo/scan/"

I run this every day with the "launched_after_datetime=ONE_DAY_BEFORE" in order to dowload each day the results of my lasts scans, but I don't know how to do this with the scans that have been paused and relaunched another day, because I can't find the way to say "finished_day=XXX", Is it possible?

 

 

Thanks.

Outcomes