mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
96 lines
3.3 KiB
Text
96 lines
3.3 KiB
Text
NAME
|
|
gcloud scc findings set-mute - update a Cloud Security Command Center
|
|
finding's mute state
|
|
|
|
SYNOPSIS
|
|
gcloud scc findings set-mute FINDING --mute=MUTE [--source=SOURCE]
|
|
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
|
[GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
Update a Cloud Security Command Center finding's mute state.
|
|
|
|
EXAMPLES
|
|
To update finding's mute state to MUTED, given finding
|
|
organizations/123/sources/456/findings/789, run:
|
|
|
|
$ gcloud scc findings set-mute 789 \
|
|
--organization=organizations/123 --source=456 --mute=MUTED
|
|
$ gcloud scc findings set-mute 789 --organization=123 --source=456 \
|
|
--mute=MUTED
|
|
$ gcloud scc findings set-mute \
|
|
organizations/123/sources/456/findings/789 --mute=MUTED
|
|
|
|
To update finding's mute state to UNMUTED, given finding
|
|
organizations/123/sources/456/findings/789, run:
|
|
|
|
$ gcloud scc findings set-mute 789 \
|
|
--organization=organizations/123 --source=456 --mute=UNMUTED
|
|
$ gcloud scc findings set-mute 789 --organization=123 --source=456 \
|
|
--mute=UNMUTED
|
|
$ gcloud scc findings set-mute \
|
|
organizations/123/sources/456/findings/789 --mute=UNMUTED
|
|
|
|
To update finding's mute state to MUTED, given finding
|
|
folders/123/sources/456/findings/789, run:
|
|
|
|
$ gcloud scc findings set-mute 789 --folder=folders/123 \
|
|
--source=456 --mute=MUTED
|
|
$ gcloud scc findings set-mute 789 --folder=123 --source=456 \
|
|
--mute=MUTED
|
|
$ gcloud scc findings set-mute \
|
|
folders/123/sources/456/findings/789 --mute=MUTED
|
|
|
|
To update finding's mute state to MUTED, given finding
|
|
projects/123/sources/456/findings/789, run:
|
|
|
|
$ gcloud scc findings set-mute 789 --project=projects/123 \
|
|
--source=456 --mute=MUTED
|
|
$ gcloud scc findings set-mute 789 --project=123 --source=456 \
|
|
--mute=MUTED
|
|
$ gcloud scc findings set-mute \
|
|
projects/123/sources/456/findings/789 --mute=MUTED
|
|
|
|
POSITIONAL ARGUMENTS
|
|
FINDING
|
|
ID of the finding or the full resource name of the finding.
|
|
|
|
REQUIRED FLAGS
|
|
--mute=MUTE
|
|
Desired mute state of the finding. MUTE must be one of: muted, unmuted.
|
|
|
|
OPTIONAL FLAGS
|
|
--source=SOURCE
|
|
ID of the source.
|
|
|
|
At most one of these can be specified:
|
|
|
|
--folder=FOLDER
|
|
Folder where the finding resides. Formatted as folders/456 or just
|
|
456.
|
|
|
|
--organization=ORGANIZATION
|
|
Organization where the finding resides. Formatted as
|
|
organizations/123 or just 123.
|
|
|
|
--project=PROJECT
|
|
Project (id or number) where the finding resides. Formatted as
|
|
projects/789 or just 789.
|
|
|
|
GCLOUD WIDE FLAGS
|
|
These flags are available to all commands: --access-token-file, --account,
|
|
--billing-project, --configuration, --flags-file, --flatten, --format,
|
|
--help, --impersonate-service-account, --log-http, --project, --quiet,
|
|
--trace-token, --user-output-enabled, --verbosity.
|
|
|
|
Run $ gcloud help for details.
|
|
|
|
API REFERENCE
|
|
This command uses the securitycenter/v1 API. The full documentation for
|
|
this API can be found at: https://cloud.google.com/security-command-center
|
|
|
|
NOTES
|
|
This variant is also available:
|
|
|
|
$ gcloud alpha scc findings set-mute
|
|
|