gcloud alpha scc muteconfigs update - update a Cloud Security Command Center mute config
gcloud alpha scc muteconfigs update MUTE_CONFIG [--description=DESCRIPTION] [--filter=FILTER] [--update-mask=UPDATE_MASK] [--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT] [GCLOUD_WIDE_FLAG ...]
(ALPHA) Update a Cloud Security Command Center mute config.
Update a mute config with id my-test-mute-config under organization 123 with a filter on category that equals to XSS_SCRIPTING:
$ gcloud alpha scc muteconfigs update my-test-mute-config \ --organization=organizations/123 \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update my-test-mute-config \ --organization=123 --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update \ organizations/123/muteConfigs/my-test-mute-config \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\""
Update a mute config with id my-test-mute-config under folder 456 with a filter on category that equals to XSS_SCRIPTING:
$ gcloud alpha scc muteconfigs update my-test-mute-config \ --folder=folders/456 \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update my-test-mute-config \ --folder=456 --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update \ folders/456/muteConfigs/my-test-mute-config \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\""
Update a mute config with id my-test-mute-config under project 789 with a filter on category that equals to XSS_SCRIPTING:
$ gcloud alpha scc muteconfigs update my-test-mute-config \ --project=projects/789 \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update my-test-mute-config \ --project=789 --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\"" $ gcloud alpha scc muteconfigs update \ projects/789/muteConfigs/my-test-mute-config \ --description="This is a test mute config" \ --filter="category=\"XSS_SCRIPTING\""
- MUTE_CONFIG
ID of the mute config or the full resource name of the mute config.
- --description=DESCRIPTION
The text that will be used to describe a mute configuration.
- --filter=FILTER
The filter string which will applied to findings muted by a mute configuration.
- --update-mask=UPDATE_MASK
Optional: If left unspecified (default), an update-mask is automatically created using the flags specified in the command and only those values are updated.
- At most one of these can be specified:
- --folder=FOLDER
Folder where the mute config resides. Formatted as folders/456 or just 456.
- --organization=ORGANIZATION
Organization where the mute config resides. Formatted as organizations/123 or just 123.
- --project=PROJECT
Project (id or number) where the mute config 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 muteconfigs update