AnsweredAssumed Answered

API - Scan - Quick Launch Download

Question asked by josiah371 on Sep 12, 2014
Latest reply on May 19, 2017 by Hun Pham

I have my API connection running but I am looking for how I would go about downloading the scan report from the completed scan -> Quick Launch -> Download -> to a csv? If anyone has an Idea please let me know

 

I am currently using powershell for my API connection

 

 function get-ScanReport([string]$ref,[string]$Path)
$headers = @{"X-Requested-With"="powershell"} 

$url = "https://qualysapi.qualys.com/api/2.0/fo/scan/?report_type=Scan&outpt_format=csv&report_ref=$ref"


$resp = Invoke-WebRequest -Headers $headers -Uri $url -Method Post -WebSession $websession
$resp.Content | Export-Csv -Path $Path


 

so on line 4 I am not sure of the parameters and actions required.

 

 

Outcomes