mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-15 17:35:31 +00:00
gcloud: Thu Apr 6 10:23:36 UTC 2023
This commit is contained in:
parent
5fabf24be7
commit
32e56b8b99
209 changed files with 5396 additions and 561 deletions
|
|
@ -6,7 +6,7 @@ SYNOPSIS
|
|||
gcloud alpha scc custom-modules sha test CUSTOM_MODULE
|
||||
--test-data-from-file=TEST_DATA_FROM_FILE
|
||||
[--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE]
|
||||
[--display-name=DISPLAY_NAME] [--enablement-state=ENABLEMENT_STATE]
|
||||
[--display-name=DISPLAY_NAME]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -19,58 +19,49 @@ EXAMPLES
|
|||
|
||||
$ gcloud alpha scc custom-modules sha test 123456 \
|
||||
--organization=organizations/123 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test 123456 \
|
||||
--organization=123 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test \
|
||||
organizations/123/securityHealthAnalyticsSettings/\
|
||||
customModules/123456 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
|
||||
To test a Security Health Analytics custom module with id 123456 for folder
|
||||
456, run:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha test 123456 \
|
||||
--folder=folders/456 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test 123456 --folder=456 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test \
|
||||
folders/456/securityHealthAnalyticsSettings/customModules/\
|
||||
123456 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
|
||||
To test a Security Health Analytics custom module with id 123456 for
|
||||
project 789, run:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha test 123456 \
|
||||
--project=projects/789 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test 123456 --project=789 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
$ gcloud alpha scc custom-modules sha test \
|
||||
projects/789/securityHealthAnalyticsSettings/customModules/\
|
||||
123456 \
|
||||
--display-name="test_display_name"--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=/tmp/custom_config.yaml \
|
||||
--test-data-from-file=/tmp/test_data.yaml
|
||||
--display-name="test_display_name"--custom-config-from-file=/\
|
||||
tmp/custom_config.yaml --test-data-from-file=/tmp/test_data.yaml
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
CUSTOM_MODULE
|
||||
|
|
@ -79,22 +70,19 @@ POSITIONAL ARGUMENTS
|
|||
|
||||
REQUIRED FLAGS
|
||||
--test-data-from-file=TEST_DATA_FROM_FILE
|
||||
Path to a yaml file containing the resource data to test the Security
|
||||
Path to a YAML file containing the resource data to test the Security
|
||||
Health Analytics custom module against.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE
|
||||
Path to a yaml file containing the custom configuration for the
|
||||
Security Health Analytics custom module.
|
||||
Path to a YAML file containing the custom configuration for the
|
||||
Security Health Analytics custom module. If not specified, the existing
|
||||
module with the given ID or resource name is used.
|
||||
|
||||
--display-name=DISPLAY_NAME
|
||||
The text that will be used to represent a Security Health Analytics
|
||||
custom module display name. Display name must be at most 64 characters.
|
||||
|
||||
--enablement-state=ENABLEMENT_STATE
|
||||
The enablement state of the Security Health Analytics custom module.
|
||||
ENABLEMENT_STATE must be one of: disabled, enabled,
|
||||
enablement-state-unspecified, inherited.
|
||||
Display name of the Security Health Analytics custom module. Display
|
||||
name must be at most 64 characters. Only relevant when
|
||||
--custom-config-from-file is also specified.
|
||||
|
||||
At most one of these can be specified:
|
||||
|
||||
|
|
|
|||
|
|
@ -5,8 +5,7 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud alpha scc custom-modules sha update CUSTOM_MODULE
|
||||
[--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE]
|
||||
[--display-name=DISPLAY_NAME] [--enablement-state=ENABLEMENT_STATE]
|
||||
[--update-mask=UPDATE_MASK]
|
||||
[--enablement-state=ENABLEMENT_STATE] [--update-mask=UPDATE_MASK]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
|
|
@ -18,52 +17,42 @@ EXAMPLES
|
|||
organization 123, run:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha update 123456 \
|
||||
--organization=organizations/123 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--organization=organizations/123 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update 123456 \
|
||||
--organization=123 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--organization=123 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update \
|
||||
organizations/123/securityHealthAnalyticsSettings/\
|
||||
customModules/123456 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
customModules/123456 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
To update a Security Health Analytics custom module with id 123456 for
|
||||
folder 456, run:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha update 123456 \
|
||||
--folder=folders/456 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--folder=folders/456 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update 123456 --folder=456 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update \
|
||||
folders/456/securityHealthAnalyticsSettings/customModules/\
|
||||
123456 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
123456 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
To update a Security Health Analytics custom module with id 123456 for
|
||||
project 789, run:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha update 123456 \
|
||||
--project=projects/789 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--project=projects/789 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update 123456 --project=789 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
$ gcloud alpha scc custom-modules sha update \
|
||||
projects/789/securityHealthAnalyticsSettings/customModules/\
|
||||
123456 --display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
123456 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
|
|
@ -76,10 +65,6 @@ FLAGS
|
|||
Path to a yaml file containing the custom configuration for the
|
||||
Security Health Analytics custom module.
|
||||
|
||||
--display-name=DISPLAY_NAME
|
||||
The text that will be used to represent a Security Health Analytics
|
||||
custom module display name. Display name must be at most 64 characters
|
||||
|
||||
--enablement-state=ENABLEMENT_STATE
|
||||
The enablement state of the Security Health Analytics custom module.
|
||||
ENABLEMENT_STATE must be one of: disabled, enabled,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue