Links

Create Scan

post
https://api.hostedscan.com
/v1/scans
Create Scan
Run a new vulnerability scan. Scan is created in the QUEUED state and will transition to RUNNING while it is in progress and then to SUCCEEDED once it is finished.
Parameters
Body
type*
string
NMAP, NMAP_UDP, SSLYZE, OPENVAS, or OWASP_ZAP
targets
array
Targets to scan. e.g. ["example.com", "123.123.123.123"] Either tags, targets, or target_ids must be specified.
target_ids
array
IDs of targets to scan. Either tags, targets, or target_ids must be specified.
tags
array
Tags to scan. e.g. ["prod", "webserver"] Either tags, targets, or target_ids must be specified.
use_authentication
boolean
Use authentication, if configured for the target(s). See https://hostedscan.com/authenticated-web-app-vulnerability-scan for more details.
Responses
200

Try it!

curl -H "Content-Type: application/json" -H "X-HOSTEDSCAN-API-KEY: test-data-key" --request POST --data '{"target_ids": ["123", "456"], "type": "NMAP"}' https://api.hostedscan.com/v1/scans