Scan a known host
POST/api/v1/HostScanJob/ByHostId/:hostId
Schedules a scan of one host that already exists in the system. The scan uses the resource service account, or the credential saved on the host if the resource has none.
Permission required: Admin or App role.
Values for status: -4 = Paused, -3 = Scheduled, -2 = Unknown, -1 = Pending, 0 = Queued, 1 = Running, 2 = Complete, 3 = Failed, 4 = Cancelled, 5 = CompletedWithErrors, 6 = CompletedNotRun.
Request
Responses
- 200
- 400
The body is the scan job status: the job ID, an overall status and description, and a status entry for each host.
The host does not exist, no service account is available for it, or the scan could not be scheduled.