mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-17 14:26:34 +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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue