List SCAP Scans

GET POST api/2.0/fo/scan/compliance/?action=list

This API is used to list SCAP scans in the user's account. By default scans launched in the past 30 days are listed.

Input ParametersInput Parameters

Click here to view all scan list parameters.

Sample - List all SCAP ScansSample - List all SCAP Scans

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=list" "https://<qualys_base_url>/api/2.0/fo/scan/scap/"

Sample - List SCAP Scan by Reference NumberSample - List SCAP Scan by Reference Number

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=list&scan_ref=qscap/1402642816.80342" "https://<qualys_base_url>/api/2.0/fo/scan/scap/"

Sample - List On Demand SCAP Scans OnlySample - List On Demand SCAP Scans Only

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=list&type=On-Demand" "https://<qualys_base_url>/api/2.0/fo/scan/scap/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SCAN_LIST_OUTPUT SYSTEM "https://<qualys_base_url>/api/2.0/fo/scan/scap/qscap_scan_list_output.dtd">
<SCAN_LIST_OUTPUT>
  <RESPONSE>
    <DATETIME>2018-03-13T22:56:19Z</DATETIME>
    <SCAN_LIST>
      <SCAN>
        <ID>6980366</ID>
        <REF>qscap/1402694682.80366</REF>
        <TYPE>On-Demand</TYPE>
        <TITLE><![CDATA[<IMG SRC="http://www.google.com/images/logos/ps_logo2.png">]]></TITLE>
        <POLICY>
          <ID>39298</ID>
          <TITLE><![CDATA[Policy A]]></TITLE>
        </POLICY>
        <USER_LOGIN>acme_ab</USER_LOGIN>
        <LAUNCH_DATETIME>2018-03-13T21:24:42Z</LAUNCH_DATETIME>
        <STATUS>
          <STATE>Finished</STATE>
        </STATUS>
        <TARGET><![CDATA[10.10.30.244, 10.10.34.222]]></TARGET>
...
    </SCAN_LIST>
  </RESPONSE>
</SCAN_LIST_OUTPUT>

DTD

<platform API server>/api/2.0/fo/scan/qscap_scan_list_output.dtd