Skip to content

Batch Get Findings

codegurusecurity_batch_get_findings R Documentation

Returns a list of requested findings from standard scans

Description

Returns a list of requested findings from standard scans.

Usage

codegurusecurity_batch_get_findings(findingIdentifiers)

Arguments

findingIdentifiers

[required] A list of finding identifiers. Each identifier consists of a scanName and a findingId. You retrieve the findingId when you call get_findings.

Value

A list with the following syntax:

list(
  findings = list(
    list(
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      description = "string",
      generatorId = "string",
      id = "string",
      updatedAt = as.POSIXct(
        "2015-01-01"
      ),
      type = "string",
      status = "Closed"|"Open"|"All",
      resource = list(
        id = "string",
        subResourceId = "string"
      ),
      vulnerability = list(
        referenceUrls = list(
          "string"
        ),
        relatedVulnerabilities = list(
          "string"
        ),
        id = "string",
        filePath = list(
          name = "string",
          path = "string",
          startLine = 123,
          endLine = 123,
          codeSnippet = list(
            list(
              number = 123,
              content = "string"
            )
          )
        ),
        itemCount = 123
      ),
      severity = "Critical"|"High"|"Medium"|"Low"|"Info",
      remediation = list(
        recommendation = list(
          text = "string",
          url = "string"
        ),
        suggestedFixes = list(
          list(
            description = "string",
            code = "string"
          )
        )
      ),
      title = "string",
      detectorTags = list(
        "string"
      ),
      detectorId = "string",
      detectorName = "string",
      ruleId = "string"
    )
  ),
  failedFindings = list(
    list(
      scanName = "string",
      findingId = "string",
      errorCode = "DUPLICATE_IDENTIFIER"|"ITEM_DOES_NOT_EXIST"|"INTERNAL_ERROR"|"INVALID_FINDING_ID"|"INVALID_SCAN_NAME",
      message = "string"
    )
  )
)

Request syntax

svc$batch_get_findings(
  findingIdentifiers = list(
    list(
      scanName = "string",
      findingId = "string"
    )
  )
)