Create host scan jobs for a list of hosts
POST/api/v1/HostScanJob
Creates a scan job for the hosts in the request and returns its status. Use it to onboard new hosts or to scan hosts by name with a service account.
Permission required: Admin or App role.
Values for sshTrustActionType: 0 = AlwaysTrustIgnoreThumbprint, 1 = WarnOnThumbprintMismatch, 2 = ErrorOnThumbprintMismatch.
Values for certificateType: 0 = WinRM, 1 = RDP, 2 = SSH.
Request
Responses
- 201
- 400
The body is the scan job status: the job ID, an overall status and description, and a status entry for each host. The Location header points to the new job.
The request was not valid, for example the list is empty, a host name is missing, no service account was given, or the service account does not exist.