1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-14 17:05:28 +00:00
gcloud-help/gcloud/alpha/scc/custom-modules/sha/update

94 lines
3.7 KiB
Text
Raw Normal View History

2023-02-08 10:13:59 +00:00
NAME
gcloud alpha scc custom-modules sha update - update a Security Health
Analytics custom module
SYNOPSIS
gcloud alpha scc custom-modules sha update CUSTOM_MODULE
2024-07-31 09:35:16 +00:00
[--custom-config-from-file=PATH_TO_FILE]
2023-04-06 10:23:36 +00:00
[--enablement-state=ENABLEMENT_STATE] [--update-mask=UPDATE_MASK]
2023-02-08 10:13:59 +00:00
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
[GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) Update a Security Health Analytics custom module.
EXAMPLES
2023-04-12 10:43:12 +00:00
To update a Security Health Analytics custom module with ID 123456 for
2023-03-08 10:34:05 +00:00
organization 123, run:
2023-02-08 10:13:59 +00:00
$ gcloud alpha scc custom-modules sha update 123456 \
2023-04-06 10:23:36 +00:00
--organization=organizations/123 --enablement-state="ENABLED" \
2023-02-08 10:13:59 +00:00
--custom-config-from-file=custom_config.yaml
2023-04-12 10:43:12 +00:00
To update a Security Health Analytics custom module with ID 123456 for
2023-03-08 10:34:05 +00:00
folder 456, run:
2023-02-08 10:13:59 +00:00
$ gcloud alpha scc custom-modules sha update 123456 \
2023-04-06 10:23:36 +00:00
--folder=folders/456 --enablement-state="ENABLED" \
2023-02-08 10:13:59 +00:00
--custom-config-from-file=custom_config.yaml
2023-04-12 10:43:12 +00:00
To update a Security Health Analytics custom module with ID 123456 for
2023-03-08 10:34:05 +00:00
project 789, run:
2023-02-08 10:13:59 +00:00
$ gcloud alpha scc custom-modules sha update 123456 \
2023-04-06 10:23:36 +00:00
--project=projects/789 --enablement-state="ENABLED" \
2023-02-08 10:13:59 +00:00
--custom-config-from-file=custom_config.yaml
POSITIONAL ARGUMENTS
CUSTOM_MODULE
2023-04-12 10:43:12 +00:00
ID or the full resource name of the Security Health Analytics custom
module. If you specify the full resource name, you do not need to
specify the --organization, --folder, or --project flags.
2023-02-08 10:13:59 +00:00
FLAGS
2024-07-31 09:35:16 +00:00
--custom-config-from-file=PATH_TO_FILE
2023-04-12 10:43:12 +00:00
Path to a YAML file that contains the configuration for the Security
2024-07-31 09:35:16 +00:00
Health Analytics custom module. Use a full or relative path to a local
file containing the value of custom_config.
2023-02-08 10:13:59 +00:00
--enablement-state=ENABLEMENT_STATE
2023-04-12 10:43:12 +00:00
Sets the enablement state of the Security Health Analytics custom
module. From the following list of possible enablement states, specify
either enabled, disabled or inherited only. ENABLEMENT_STATE must be
one of: disabled, enabled, enablement-state-unspecified, inherited.
2023-02-08 10:13:59 +00:00
--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 Security Health Analytics custom module resides.
Formatted as folders/456 or just 456.
--organization=ORGANIZATION
Organization where the Security Health Analytics custom module
resides. Formatted as organizations/123 or just 123.
--project=PROJECT
2023-04-12 10:43:12 +00:00
ID or number of the project where the Security Health Analytics
custom module resides. Formatted as projects/789 or just 789.
2023-02-08 10:13:59 +00:00
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
2023-04-12 10:43:12 +00:00
access allowlist. This variant is also available:
$ gcloud scc custom-modules sha update
2023-02-08 10:13:59 +00:00