DescribeScanJob - AWS Backup

DescribeScanJob

Returns scan job details for the specified ScanJobID.

Request Syntax

GET /scan/jobs/ScanJobId HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ScanJobId

Uniquely identifies a request to AWS Backup to scan a resource.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "AccountId": "string", "BackupVaultArn": "string", "BackupVaultName": "string", "CompletionDate": number, "CreatedBy": { "BackupPlanArn": "string", "BackupPlanId": "string", "BackupPlanVersion": "string", "BackupRuleId": "string" }, "CreationDate": number, "IamRoleArn": "string", "MalwareScanner": "string", "RecoveryPointArn": "string", "ResourceArn": "string", "ResourceName": "string", "ResourceType": "string", "ScanBaseRecoveryPointArn": "string", "ScanId": "string", "ScanJobId": "string", "ScanMode": "string", "ScannerRoleArn": "string", "ScanResult": { "ScanResultStatus": "string" }, "State": "string", "StatusMessage": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AccountId

Returns the account ID that owns the scan job.

Pattern: ^[0-9]{12}$

Type: String

BackupVaultArn

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault

Type: String

BackupVaultName

The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created.

Pattern: ^[a-zA-Z0-9\-\_\.]{2,50}$

Type: String

CompletionDate

The date and time that a backup index finished creation, in Unix format and Coordinated Universal Time (UTC). The value of CompletionDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

Type: Timestamp

CreatedBy

Contains identifying information about the creation of a scan job, including the backup plan and rule that initiated the scan.

Type: ScanJobCreator object

CreationDate

The date and time that a backup index finished creation, in Unix format and Coordinated Universal Time (UTC). The value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

Type: Timestamp

IamRoleArn

An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, arn:aws:iam::123456789012:role/S3Access.

Type: String

MalwareScanner

The scanning engine used for the corresponding scan job. Currently only GUARDUTY is supported.

Type: String

Valid Values: GUARDDUTY

RecoveryPointArn

An ARN that uniquely identifies the target recovery point for scanning.; for example, arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.

Type: String

ResourceArn

An ARN that uniquely identifies the source resource of the corresponding recovery point ARN.

Type: String

ResourceName

The non-unique name of the resource that belongs to the specified backup.

Type: String

ResourceType

The type of AWS Resource to be backed up; for example, an Amazon Elastic Block Store (Amazon EBS) volume.

Pattern: ^[a-zA-Z0-9\-\_\.]{1,50}$

Type: String

Valid Values: EBS | EC2 | S3

ScanBaseRecoveryPointArn

An ARN that uniquely identifies the base recovery point for scanning. This field will only be populated when an incremental scan job has taken place.

Type: String

ScanId

The scan ID generated by Amazon GuardDuty for the corresponding Scan Job ID request from AWS Backup.

Type: String

ScanJobId

The scan job ID that uniquely identified the request to AWS Backup.

Type: String

ScanMode

Specifies the scan type used for the scan job.

Type: String

Valid Values: FULL_SCAN | INCREMENTAL_SCAN

ScannerRoleArn

Specifies the scanner IAM role ARN used to for the scan job.

Type: String

ScanResult

Contains the ScanResultsStatus for the scanning job and returns THREATS_FOUND or NO_THREATS_FOUND for completed jobs.

Type: ScanResultInfo object

State

The current state of a scan job.

Type: String

Valid Values: CANCELED | COMPLETED | COMPLETED_WITH_ISSUES | CREATED | FAILED | RUNNING

StatusMessage

A detailed message explaining the status of the job to back up a resource.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidParameterValueException

Indicates that something is wrong with a parameter's value. For example, the value is out of range.

Context

Type

HTTP Status Code: 400

MissingParameterValueException

Indicates that a required parameter is missing.

Context

Type

HTTP Status Code: 400

ResourceNotFoundException

A resource that is required for the action doesn't exist.

Context

Type

HTTP Status Code: 400

ServiceUnavailableException

The request failed due to a temporary failure of the server.

Context

Type

HTTP Status Code: 500

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: