Launch PC scan

/api/2.0/fo/scan/compliance/?action=launch

[POST]

This API is used to launch PC scans in the user's account.

Input Parameters

Click here to view parameters for launching PC scans.

Sample - Launch PC scan (IP address)

API request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -X "POST" -d  "action=launch&ip=10.10.25.52&iscanner_name=iscan_er5&option_title=Initial+PC+Options&echo_request=1" "https://qualysapi.qualys.com/api/2.0/fo/scan/compliance/"

 

XML output

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">

<SIMPLE_RETURN>

  <RESPONSE>

    <DATETIME>2018-04-15T21:32:40Z</DATETIME>

    <TEXT>New pc scan launched</TEXT>

    <ITEM_LIST>

      <ITEM>

        <KEY>ID</KEY>

        <VALUE>136992</VALUE>

      </ITEM>

      <ITEM>

        <KEY>REFERENCE</KEY>

        <VALUE>scan/1358285558.36992</VALUE>

      </ITEM>

    </ITEM_LIST>

  </RESPONSE>

</SIMPLE_RETURN>

Sample - Launch PC scan (All Scanners in Network)

API request

curl -u "username:password" -H "X-Requested-With:curl demo 2" -d "action=launch&scan_title=pc+scan+API&option_id=3262&ip_network_id=12807913&scanners_in_network=1&ip=10.10.10.10,10.10.10.11" "https://qualysapi.qualys.com/api/2.0/fo/scan/compliance/"

 

 

DTD

<platform API server>/api/2.0/simple_return.dtd