Scan Again

[POST] /qps/rest/3.0/scanagain/was/scan/<id>

We now provide the option to execute a previous scan again. Identify the scan you want to run again and use scanagain action. We'll do our best to pre-fill the scan settings to match the original scan.

Permissions required - User must have WAS module enabled. User account must have these permissions: "API Access" and "Access WAS module". The web application must be in the user's scope.

Input ParametersInput Parameters

The element “id” (integer) is required, where “id” identifies the scan to be executed again. You could optionally provide a new name for the scan as well.

Click here for available operators

Sample - Scan with Scanagain optionSample - Scan with Scanagain option

API request

curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST" --data-binary @- "<qualys_base_url>/qps/rest/3.0/scanagain/was/wasscan/4626354"         
    

Request POST data

<ServiceRequest>
    <data>
        <WasScan>
            <name>Sample Scan Name for Rescan</name>
        </WasScan>
    </data>
</ServiceRequest>          
    

XML response

<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.qualys.com/qps/xsd/3.0/was/wasscan.xsd">
    <responseCode>SUCCESS</responseCode>
    <count>1 </count>
    <data>
        <WasScan>
            <id>4626354</id>
        </WasScan>
    </data>
</ServiceResponse>