Skip to content

List Scan Jobs

backup_list_scan_jobs R Documentation

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

ByAccountId

The 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}$⁠

ByBackupVaultName

Returns 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}$⁠

ByCompleteAfter

Returns only scan jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

ByCompleteBefore

Returns only backup jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

ByMalwareScanner

Returns only the scan jobs for the specified malware scanner. Currently only supports GUARDDUTY.

ByRecoveryPointArn

Returns only the scan jobs that are ran against the specified recovery point.

ByResourceArn

Returns only scan jobs that match the specified resource Amazon Resource Name (ARN).

ByResourceType

Returns restore testing selections by the specified restore testing plan name.

  • EBSfor Amazon Elastic Block Store

  • EC2for Amazon Elastic Compute Cloud

  • S3for Amazon Simple Storage Service (Amazon S3)

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

ByScanResultStatus

Returns only the scan jobs for the specified scan results:

  • THREATS_FOUND

  • NO_THREATS_FOUND

ByState

Returns only the scan jobs for the specified scanning job state.

MaxResults

The maximum number of items to be returned.

Valid Range: Minimum value of 1. Maximum value of 1000.

NextToken

The next item following a partial list of returned items. For example, if a request is made to return MaxResults number of items, NextToken allows 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"
)