Updates the specified note.

Scopes

You will need authorization for the https://www.googleapis.com/auth/cloud-platform scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/cloud-platform. You can set the scope for this method like this: containeranalysis1 --scope <scope> projects notes-patch ...

Required Scalar Argument

  • <name> (string)
    • Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

Note:
  attestation:
    hint:
      human-readable-name: string
  build:
    builder-version: string
  compliance:
    cis-benchmark:
      profile-level: integer
      severity: string
    description: string
    rationale: string
    remediation: string
    scan-instructions: string
    title: string
  create-time: string
  deployment:
    resource-uri: [string]
  discovery:
    analysis-kind: string
  dsse-attestation:
    hint:
      human-readable-name: string
  expiration-time: string
  image:
    fingerprint:
      v1-name: string
      v2-blob: [string]
      v2-name: string
    resource-url: string
  kind: string
  long-description: string
  name: string
  package:
    architecture: string
    cpe-uri: string
    description: string
    license:
      comments: string
      expression: string
    maintainer: string
    name: string
    package-type: string
    url: string
    version:
      epoch: integer
      full-name: string
      inclusive: boolean
      kind: string
      name: string
      revision: string
  related-note-names: [string]
  sbom-reference:
    format: string
    version: string
  short-description: string
  update-time: string
  upgrade:
    package: string
    version:
      epoch: integer
      full-name: string
      inclusive: boolean
      kind: string
      name: string
      revision: string
    windows-update:
      description: string
      identity:
        revision: integer
        update-id: string
      kb-article-ids: [string]
      last-published-timestamp: string
      support-url: string
      title: string
  vulnerability:
    cvss-score: number
    cvss-v2:
      attack-complexity: string
      attack-vector: string
      authentication: string
      availability-impact: string
      base-score: number
      confidentiality-impact: string
      exploitability-score: number
      impact-score: number
      integrity-impact: string
      privileges-required: string
      scope: string
      user-interaction: string
    cvss-v3:
      attack-complexity: string
      attack-vector: string
      availability-impact: string
      base-score: number
      confidentiality-impact: string
      exploitability-score: number
      impact-score: number
      integrity-impact: string
      privileges-required: string
      scope: string
      user-interaction: string
    cvss-version: string
    severity: string
    source-update-time: string
  vulnerability-assessment:
    assessment:
      cve: string
      impacts: [string]
      justification:
        details: string
        justification-type: string
      long-description: string
      short-description: string
      state: string
      vulnerability-id: string
    language-code: string
    long-description: string
    product:
      generic-uri: string
      id: string
      name: string
    publisher:
      issuing-authority: string
      name: string
      publisher-namespace: string
    short-description: string
    title: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r .attestation.hint human-readable-name=et

    • Required. The human readable name of this attestation authority, for example "qa".
  • ...build builder-version=sanctus

    • Required. Immutable. Version of the builder which produced this build.
  • ..compliance.cis-benchmark profile-level=45

    • No description provided.
  • severity=est

    • No description provided.
  • .. description=sed

    • A description about this compliance check.
  • rationale=diam
    • A rationale for the existence of this compliance check.
  • remediation=dolores
    • A description of remediation steps if the compliance check fails.
  • scan-instructions=dolores
    • Serialized scan instructions with a predefined format.
  • title=et

    • The title that identifies this compliance check.
  • .. create-time=sed

    • Output only. The time this note was created. This field can be used as a filter in list requests.
  • deployment resource-uri=no

    • Required. Resource URI for the artifact being deployed.
    • Each invocation of this argument appends the given value to the array.
  • ..discovery analysis-kind=et

    • Required. Immutable. The kind of analysis that is handled by this discovery.
  • ..dsse-attestation.hint human-readable-name=elitr

    • Required. The human readable name of this attestation authority, for example "cloudbuild-prod".
  • ... expiration-time=sed

    • Time of expiration for this note. Empty if note does not expire.
  • image.fingerprint v1-name=no
    • Required. The layer ID of the final layer in the Docker image's v1 representation.
  • v2-blob=nonumy
    • Required. The ordered list of v2 blobs that represent a given image.
    • Each invocation of this argument appends the given value to the array.
  • v2-name=at

    • Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept.
  • .. resource-url=sadipscing

    • Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
  • .. kind=aliquyam

    • Output only. The type of analysis. This field can be used as a filter in list requests.
  • long-description=dolores
    • A detailed description of this note.
  • name=sadipscing
    • Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].
  • package architecture=erat
    • The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
  • cpe-uri=aliquyam
    • The cpe_uri in CPE format denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
  • description=amet
    • The description of this package.
  • license comments=est
    • Comments
  • expression=et

    • Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
  • .. maintainer=sea

    • A freeform text denoting the maintainer of this package.
  • name=consetetur
    • Required. Immutable. The name of the package.
  • package-type=consetetur
    • The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
  • url=stet
    • The homepage for this package.
  • version epoch=94
    • Used to correct mistakes in the version numbering scheme.
  • full-name=aliquyam
    • Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
  • inclusive=false
    • Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
  • kind=duo
    • Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
  • name=diam
    • Required only when version kind is NORMAL. The main part of the version name.
  • revision=est

    • The iteration of the package build from the above version.
  • ... related-note-names=sit

    • Other notes related to this note.
    • Each invocation of this argument appends the given value to the array.
  • sbom-reference format=sed
    • The format that SBOM takes. E.g. may be spdx, cyclonedx, etc...
  • version=eos

    • The version of the format that the SBOM takes. E.g. if the format is spdx, the version may be 2.3.
  • .. short-description=lorem

    • A one sentence description of this note.
  • update-time=ea
    • Output only. The time this note was last updated. This field can be used as a filter in list requests.
  • upgrade package=stet
    • Required for non-Windows OS. The package this Upgrade is for.
  • version epoch=82
    • Used to correct mistakes in the version numbering scheme.
  • full-name=eos
    • Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
  • inclusive=true
    • Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
  • kind=sea
    • Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
  • name=et
    • Required only when version kind is NORMAL. The main part of the version name.
  • revision=at

    • The iteration of the package build from the above version.
  • ..windows-update description=dolore

    • The localized description of the update.
  • identity revision=61
    • The revision number of the update.
  • update-id=lorem

    • The revision independent identifier of the update.
  • .. kb-article-ids=accusam

    • The Microsoft Knowledge Base article IDs that are associated with the update.
    • Each invocation of this argument appends the given value to the array.
  • last-published-timestamp=amet
    • The last published timestamp of the update.
  • support-url=erat
    • The hyperlink to the support information for the update.
  • title=dolores

    • The localized title of the update.
  • ...vulnerability cvss-score=0.15972633079770038

    • The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
  • cvss-v2 attack-complexity=sea
    • No description provided.
  • attack-vector=takimata
    • Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
  • authentication=lorem
    • No description provided.
  • availability-impact=et
    • No description provided.
  • base-score=0.1945321992186927
    • The base score is a function of the base metric scores.
  • confidentiality-impact=dolor
    • No description provided.
  • exploitability-score=0.9576851027078831
    • No description provided.
  • impact-score=0.9295719371551834
    • No description provided.
  • integrity-impact=erat
    • No description provided.
  • privileges-required=sea
    • No description provided.
  • scope=nonumy
    • No description provided.
  • user-interaction=et

    • No description provided.
  • ..cvss-v3 attack-complexity=gubergren

    • No description provided.
  • attack-vector=justo
    • Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
  • availability-impact=sea
    • No description provided.
  • base-score=0.03937387488958621
    • The base score is a function of the base metric scores.
  • confidentiality-impact=aliquyam
    • No description provided.
  • exploitability-score=0.5999462320813541
    • No description provided.
  • impact-score=0.6413061576894121
    • No description provided.
  • integrity-impact=gubergren
    • No description provided.
  • privileges-required=dolor
    • No description provided.
  • scope=aliquyam
    • No description provided.
  • user-interaction=no

    • No description provided.
  • .. cvss-version=amet.

    • CVSS version used to populate cvss_score and severity.
  • severity=ipsum
    • The note provider assigned severity of this vulnerability.
  • source-update-time=lorem

    • The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
  • ..vulnerability-assessment.assessment cve=accusam

    • Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerability_id instead to denote CVEs.
  • impacts=gubergren
    • Contains information about the impact of this vulnerability, this will change with time.
    • Each invocation of this argument appends the given value to the array.
  • justification details=sadipscing
    • Additional details on why this justification was chosen.
  • justification-type=at

    • The justification type for this vulnerability.
  • .. long-description=sit

    • A detailed description of this Vex.
  • short-description=duo
    • A one sentence description of this Vex.
  • state=sit
    • Provides the state of this Vulnerability assessment.
  • vulnerability-id=magna

    • The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc.
  • .. language-code=et

    • Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646.
  • long-description=rebum.
    • A detailed description of this Vex.
  • product generic-uri=dolor
    • Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.
  • id=lorem
    • Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.
  • name=justo

    • Name of the product.
  • ..publisher issuing-authority=amet.

    • Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations.
  • name=no
    • Name of the publisher. Examples: 'Google', 'Google Cloud Platform'.
  • publisher-namespace=nonumy

    • The context or namespace. Contains a URL which is under control of the issuing party and can be used as a globally unique identifier for that issuing party. Example: https://csaf.io
  • .. short-description=sed

    • A one sentence description of this Vex.
  • title=kasd
    • The title of the note. E.g. Vex-Debian-11.4

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional Method Properties

You may set the following properties to further configure the call. Please note that -p is followed by one or more key-value-pairs, and is called like this -p k1=v1 k2=v2 even though the listing below repeats the -p for completeness.

  • -p update-mask=string
    • The fields to update.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").