Returns a list of existing scan jobs for an authenticated account for the last 30 days¶
Description¶
Returns a list of existing scan jobs for an authenticated account for the last 30 days.
Usage¶
backup_list_scan_jobs(ByAccountId, ByBackupVaultName, ByCompleteAfter,
ByCompleteBefore, ByMalwareScanner, ByRecoveryPointArn, ByResourceArn,
ByResourceType, ByScanResultStatus, ByState, MaxResults, NextToken)
Arguments¶
-
ByAccountIdThe account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Amazon Web Services Organizations management account, passing
*returns all jobs across the organization.Pattern:
^[0-9]{12}$ -
ByBackupVaultNameReturns only scan jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created.
Pattern:
^[a-zA-Z0-9\-_\.]{2,50}$ -
ByCompleteAfterReturns only scan jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).
-
ByCompleteBeforeReturns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).
-
ByMalwareScannerReturns only the scan jobs for the specified malware scanner. Currently only supports
GUARDDUTY. -
ByRecoveryPointArnReturns only the scan jobs that are ran against the specified recovery point.
-
ByResourceArnReturns only scan jobs that match the specified resource Amazon Resource Name (ARN).
-
ByResourceTypeReturns restore testing selections by the specified restore testing plan name.
EBSfor Amazon Elastic Block StoreEC2for Amazon Elastic Compute CloudS3for Amazon Simple Storage Service (Amazon S3)
Pattern:
^[a-zA-Z0-9\-_\.]{1,50}$ -
ByScanResultStatusReturns only the scan jobs for the specified scan results:
THREATS_FOUNDNO_THREATS_FOUND
-
ByStateReturns only the scan jobs for the specified scanning job state.
-
MaxResultsThe maximum number of items to be returned.
Valid Range: Minimum value of 1. Maximum value of 1000.
-
NextTokenThe next item following a partial list of returned items. For example, if a request is made to return
MaxResultsnumber of items,NextTokenallows you to return more items in your list starting at the location pointed to by the next token.
Value¶
A list with the following syntax:
list(
NextToken = "string",
ScanJobs = list(
list(
AccountId = "string",
BackupVaultArn = "string",
BackupVaultName = "string",
CompletionDate = as.POSIXct(
"2015-01-01"
),
ContinuousScanEndTime = as.POSIXct(
"2015-01-01"
),
ContinuousScanStartTime = as.POSIXct(
"2015-01-01"
),
CreatedBy = list(
BackupPlanArn = "string",
BackupPlanId = "string",
BackupPlanVersion = "string",
BackupRuleId = "string"
),
CreationDate = as.POSIXct(
"2015-01-01"
),
IamRoleArn = "string",
MalwareScanner = "GUARDDUTY",
RecoveryPointArn = "string",
ResourceArn = "string",
ResourceName = "string",
ResourceType = "EBS"|"EC2"|"S3",
ScanBaseRecoveryPointArn = "string",
ScanId = "string",
ScanJobId = "string",
ScanMode = "FULL_SCAN"|"INCREMENTAL_SCAN",
ScanResult = list(
ScanResultStatus = "NO_THREATS_FOUND"|"THREATS_FOUND"|"UNKNOWN"
),
ScannerRoleArn = "string",
State = "CANCELED"|"COMPLETED"|"COMPLETED_WITH_ISSUES"|"CREATED"|"FAILED"|"RUNNING",
StatusMessage = "string"
)
)
)
Request syntax¶
svc$list_scan_jobs(
ByAccountId = "string",
ByBackupVaultName = "string",
ByCompleteAfter = as.POSIXct(
"2015-01-01"
),
ByCompleteBefore = as.POSIXct(
"2015-01-01"
),
ByMalwareScanner = "GUARDDUTY",
ByRecoveryPointArn = "string",
ByResourceArn = "string",
ByResourceType = "EBS"|"EC2"|"S3",
ByScanResultStatus = "NO_THREATS_FOUND"|"THREATS_FOUND"|"UNKNOWN",
ByState = "CANCELED"|"COMPLETED"|"COMPLETED_WITH_ISSUES"|"CREATED"|"FAILED"|"RUNNING",
MaxResults = 123,
NextToken = "string"
)