REST Resource: projects.locations.findings

Resource: Finding

Represents a security Finding.

JSON representation
{
  "name": string,
  "uid": string,
  "createTime": string,
  "updateTime": string,
  "severity": enum (Severity),
  "findingClass": enum (FindingClass),
  "files": [
    {
      object (File)
    }
  ],
  "detail": string,
  "resource": string
}
Fields
name

string

Identifier. Resource name of the Finding. Format: projects/{project}/locations/{location}/findings/{finding}.

uid

string

Output only. Universally unique identifier (UUID4) for the Finding.

createTime

string (Timestamp format)

Output only. Create time.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. Update time.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

severity

enum (Severity)

Optional. Severity of the finding.

findingClass

enum (FindingClass)

Optional. Class of the finding.

files[]

object (File)

Optional. File associated with the finding.

detail

string

Optional. Detailed description of the finding.

resource

string

Optional. The resource that the finding is associated with.

Severity

The severity of the finding.

Enums
SEVERITY_UNSPECIFIED This value is used for findings when a source doesn't write a severity value.
SEVERITY_CRITICAL Critical severity.
SEVERITY_HIGH High severity.
SEVERITY_MEDIUM Medium severity.
SEVERITY_LOW Low severity.

FindingClass

Represents what kind of Finding it is. For more information on finding classes, see https://cloud.google.com/security-command-center/docs/concepts-vulnerabilities-findings#classes.

Enums
FINDING_CLASS_UNSPECIFIED Unspecified finding class.
VULNERABILITY Describes a potential weakness in software that increases risk to Confidentiality & Integrity & Availability.
SECRET Describes a potential security risk due to plaintext credentials, keys, or tokens being exposed in an asset or workload.

File

File location of the finding.

JSON representation
{
  "path": string,
  "lineNumber": string
}
Fields
path

string

Optional. Relative path of the file containing the finding.

lineNumber

string (int64 format)

Optional. Line number (1-based), or 0 if whole File / unknown.

Methods

get

Gets details of a single Finding.

list

Lists Findings in a given project and location.