Get-SCAJobStatus

Get-SCAJobStatus

SYNOPSIS

Gets the status of an SCA job

SYNTAX

Get-SCAJobStatus [-jobId] <String> [<CommonParameters>]

DESCRIPTION

Returns the status of a job created by an asynchronous operation.

Start-SCAScan and Start-SCADiscovery report the id of the job they start; pass that to this command to follow its progress. The job_id reported by New-SCAPolicy, Set-SCAPolicy, Test-SCAPolicy and New-SCAWebApp can be passed back the same way.

EXAMPLES

Example 1

Get-SCAJobStatus -jobId 'e369baf0-1b24-11ee-be56-0242ac120002'

Gets the status of the specified job.

Example 2

Start-SCAScan -cloudProvider AWS -accountType All | Get-SCAJobStatus

Starts a scan and reports the status of the job it created.

PARAMETERS

-jobId

The ID of the job to report the status of, as returned by an asynchronous operation such as Start-SCAScan.

Type: String
Parameter Sets: (All)
Aliases: job_id

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.String

OUTPUTS

System.Object

NOTES