Skip to content

List Scans

codegurusecurity_list_scans R Documentation

Returns a list of all scans in an account

Description

Returns a list of all scans in an account. Does not return EXPRESS scans.

Usage

codegurusecurity_list_scans(maxResults, nextToken)

Arguments

maxResults

The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the nextToken element is returned in the response. Use nextToken in a subsequent request to retrieve additional results. If not specified, returns 100 results.

nextToken

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the nextToken value returned from the previous request to continue listing results after the first page.

Value

A list with the following syntax:

list(
  nextToken = "string",
  summaries = list(
    list(
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      runId = "string",
      scanName = "string",
      scanNameArn = "string",
      scanState = "InProgress"|"Successful"|"Failed",
      updatedAt = as.POSIXct(
        "2015-01-01"
      )
    )
  )
)

Request syntax

svc$list_scans(
  maxResults = 123,
  nextToken = "string"
)