Launch PC Scan

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

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

Input ParametersInput Parameters

Click here to view parameters for launching PC scans.

Sample - Launch PC Scan (IP Address)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://<qualys_base_url>/api/2.0/fo/scan/compliance/"

Sample - Launch PC Scan (All Scanners in Network)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://<qualys_base_url>/api/2.0/fo/scan/compliance/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/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>

DTD

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

 

 


 

 

Was this topic helpful?

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.