Start scan by target ID
This operation starts a new scan using a specific target_id
.
Request
Since tool_id
and tool_params
are specific for each tool, please see the specific start example for the tool that you need.
Parameters |
---|
Start a new scan. Value is |
The ID of the tool that will be started. See details of each tool. |
The ID of the target to be scanned. |
The parameters for the tool. See details of each tool. |
The PDF report will be sent to this URL in a POST request after the scan is finished. |
This method might take up to 20 seconds to process for URLs, which are checked
for redirects and timeouts before starting the scan. Setting this parameter
to |
{
"op": "start_scan_by_targetid",
"tool_id": 170,
"target_id": 7456213,
"tool_params": {
"scan_type": "ptt_engine"
}
}
Response
Attributes |
---|
The status of the operation. Value can be either |
The ID of the new scan that was started. Returned in case of a successful operation. See details of each tool. |
The status of the new scan. Value returned in case of a successful operation: |
Error message. Returned in case of a failed operation. See details of each tool. |
{
"op_status": "success",
"scan_id": 456234,
"scan_status": "waiting"
}