1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 06:47:12 +00:00
gcloud-help/gcloud/alpha/scc/findings/set-mute
2022-03-01 04:29:52 +00:00

99 lines
3.7 KiB
Text

NAME
gcloud alpha scc findings set-mute - update a Cloud Security Command Center
finding's mute state
SYNOPSIS
gcloud alpha scc findings set-mute FINDING --mute=MUTE [--source=SOURCE]
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) 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 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
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 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