Skip to content

List Scan Job Summaries

backup_list_scan_job_summaries R Documentation

This is a request for a summary of scan jobs created or running within the most recent 30 days

Description

This is a request for a summary of scan jobs created or running within the most recent 30 days.

Usage

backup_list_scan_job_summaries(AccountId, ResourceType, MalwareScanner,
  ScanResultStatus, State, AggregationPeriod, MaxResults, NextToken)

Arguments

AccountId

Returns the job count for the specified account.

If the request is sent from a member account or an account not part of Amazon Web Services Organizations, jobs within requestor's account will be returned.

Root, admin, and delegated administrator accounts can use the value ANY to return job counts from every account in the organization.

AGGREGATE_ALL aggregates job counts from all accounts within the authenticated organization, then returns the sum.

ResourceType

Returns the job count for the specified resource type. Use request get_supported_resource_types to obtain strings for supported resource types.

The the value ANY returns count of all resource types.

AGGREGATE_ALL aggregates job counts for all resource types and returns the sum.

MalwareScanner

Returns only the scan jobs for the specified malware scanner. Currently the only MalwareScanner is GUARDDUTY. But the field also supports ANY, and AGGREGATE_ALL.

ScanResultStatus

Returns only the scan jobs for the specified scan results.

State

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

AggregationPeriod

The period for the returned results.

  • ONE_DAYThe daily job count for the prior 1 day.

  • SEVEN_DAYSThe daily job count for the prior 7 days.

  • FOURTEEN_DAYSThe daily job count for the prior 14 days.

MaxResults

The maximum number of items to be returned.

The value is an integer. Range of accepted values is from 1 to 500.

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(
  ScanJobSummaries = list(
    list(
      Region = "string",
      AccountId = "string",
      State = "CREATED"|"COMPLETED"|"COMPLETED_WITH_ISSUES"|"RUNNING"|"FAILED"|"CANCELED"|"AGGREGATE_ALL"|"ANY",
      ResourceType = "string",
      Count = 123,
      StartTime = as.POSIXct(
        "2015-01-01"
      ),
      EndTime = as.POSIXct(
        "2015-01-01"
      ),
      MalwareScanner = "GUARDDUTY",
      ScanResultStatus = "NO_THREATS_FOUND"|"THREATS_FOUND"|"UNKNOWN"
    )
  ),
  AggregationPeriod = "string",
  NextToken = "string"
)

Request syntax

svc$list_scan_job_summaries(
  AccountId = "string",
  ResourceType = "string",
  MalwareScanner = "GUARDDUTY",
  ScanResultStatus = "NO_THREATS_FOUND"|"THREATS_FOUND"|"UNKNOWN",
  State = "CREATED"|"COMPLETED"|"COMPLETED_WITH_ISSUES"|"RUNNING"|"FAILED"|"CANCELED"|"AGGREGATE_ALL"|"ANY",
  AggregationPeriod = "ONE_DAY"|"SEVEN_DAYS"|"FOURTEEN_DAYS",
  MaxResults = 123,
  NextToken = "string"
)