Skip to content

List Cis Scans

inspector2_list_cis_scans R Documentation

Returns a CIS scan list

Description

Returns a CIS scan list.

Usage

inspector2_list_cis_scans(detailLevel, filterCriteria, maxResults,
  nextToken, sortBy, sortOrder)

Arguments

detailLevel

The detail applied to the CIS scan.

filterCriteria

The CIS scan filter criteria.

maxResults

The maximum number of results to be returned.

nextToken

The pagination token from a previous request that's used to retrieve the next page of results.

sortBy

The CIS scans sort by order.

sortOrder

The CIS scans sort order.

Value

A list with the following syntax:

list(
  nextToken = "string",
  scans = list(
    list(
      failedChecks = 123,
      scanArn = "string",
      scanConfigurationArn = "string",
      scanDate = as.POSIXct(
        "2015-01-01"
      ),
      scanName = "string",
      scheduledBy = "string",
      securityLevel = "LEVEL_1"|"LEVEL_2",
      status = "FAILED"|"COMPLETED"|"CANCELLED"|"IN_PROGRESS",
      targets = list(
        accountIds = list(
          "string"
        ),
        targetResourceTags = list(
          list(
            "string"
          )
        )
      ),
      totalChecks = 123
    )
  )
)

Request syntax

svc$list_cis_scans(
  detailLevel = "ORGANIZATION"|"MEMBER",
  filterCriteria = list(
    failedChecksFilters = list(
      list(
        lowerInclusive = 123,
        upperInclusive = 123
      )
    ),
    scanArnFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanAtFilters = list(
      list(
        earliestScanStartTime = as.POSIXct(
          "2015-01-01"
        ),
        latestScanStartTime = as.POSIXct(
          "2015-01-01"
        )
      )
    ),
    scanConfigurationArnFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanNameFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    scanStatusFilters = list(
      list(
        comparison = "EQUALS",
        value = "FAILED"|"COMPLETED"|"CANCELLED"|"IN_PROGRESS"
      )
    ),
    scheduledByFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    targetAccountIdFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    targetResourceIdFilters = list(
      list(
        comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
        value = "string"
      )
    ),
    targetResourceTagFilters = list(
      list(
        comparison = "EQUALS",
        key = "string",
        value = "string"
      )
    )
  ),
  maxResults = 123,
  nextToken = "string",
  sortBy = "STATUS"|"SCHEDULED_BY"|"SCAN_START_DATE"|"FAILED_CHECKS",
  sortOrder = "ASC"|"DESC"
)