gcloud alpha scc findings set-mute - update a Cloud Security Command Center finding's mute state
gcloud alpha scc findings set-mute FINDING --mute=MUTE [--source=SOURCE] [--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Update a Cloud Security Command Center finding's mute state.
To update finding's mute state to MUTED, given finding organizations/123/sources/456/findings/789, run:
$ gcloud alpha scc findings set-mute 789 \ --organization=organizations/123 --source=456 --mute=MUTED $ gcloud alpha scc findings set-mute 789 --organization=123 \ --source=456 --mute=MUTED $ gcloud alpha 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 alpha scc findings set-mute 789 \ --organization=organizations/123 --source=456 --mute=UNMUTED $ gcloud alpha scc findings set-mute 789 --organization=123 \ --source=456 --mute=UNMUTED $ gcloud alpha 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 alpha scc findings set-mute 789 --folder=folders/123 \ --source=456 --mute=MUTED $ gcloud alpha scc findings set-mute 789 --folder=123 --source=456 \ --mute=MUTED $ gcloud alpha 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 alpha scc findings set-mute 789 --project=projects/123 \ --source=456 --mute=MUTED $ gcloud alpha scc findings set-mute 789 --project=123 \ --source=456 --mute=MUTED $ gcloud alpha scc findings set-mute \ projects/123/sources/456/findings/789 --mute=MUTED
- FINDING
ID of the finding or the full resource name of the finding.
- --mute=MUTE
Desired mute state of the finding. MUTE must be one of: muted, unmuted.
- --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.
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.
This command uses the securitycenter/v1 API. The full documentation for this API can be found at: https://cloud.google.com/security-command-center
This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist. This variant is also available:
$ gcloud scc findings set-mute