Skip to main content

Get the status of a host scan job

GET 

/api/v1/HostScanJob/:hostScanJobId

Returns the status of one host scan job, including the status of each host in the job. Poll this route after you start a scan until the status shows the job has finished.

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.

Values for failureReason: 0 = NoError, 1 = UnknownError, 2 = SystemError, 3 = ActionServiceUnavailable, 4 = ActionTimeout, 5 = AccessDenied, 6 = UserAlreadyMemberofGroup, 7 = UserNotMemberofGroup, 8 = InvalidGroupName, 9 = InvalidUserName, 10 = InvalidHostName, 11 = FailedToConnect.

Request​

Responses​

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