scan_vulnerabilities
Create a Vulnerability Response scan (sn_vul_scan) for a set of CIs or Vulnerable Items and hand it to the active scanner integration, the same way the "Initiate Scan" / "Rescan" actions do. Needs an active scanner (sn_vul_scanner, e.g.
Instructions
Create a Vulnerability Response scan (sn_vul_scan) for a set of CIs or Vulnerable Items and hand it to the active scanner integration, the same way the "Initiate Scan" / "Rescan" actions do. Needs an active scanner (sn_vul_scanner, e.g. Qualys/Tenable/Rapid7) unless initiate=false, which leaves a Draft scan to launch from the UI. Runs as a server script in a run-once job (SCRIPTING_ENABLED) because the scan state and target links are not writable through the Table API. [Write]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initiate | No | true (default): set the scan to Processing so the scanner integration picks it up. false: leave it in Draft. | |
| ci_sys_ids | No | cmdb_ci sys_ids to scan (max 200). Use this or vulnerable_item_sys_ids, not both. | |
| wait_seconds | No | How long to wait for the run-once job that creates the scan (0-120, default 30). If it has not run by then the job is left scheduled and scan_scheduled is returned. | |
| scanner_sys_id | No | sn_vul_scanner sys_id. Defaults to the active scanner flagged as default. | |
| vulnerable_item_sys_ids | No | sn_vul_vulnerable_item sys_ids to rescan (max 200) |