Skip to main content

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​

The body is the scan job status: the job ID, an overall status and description, and a status entry for each host.