mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
gcloud: Wed Apr 12 10:43:12 UTC 2023
This commit is contained in:
parent
32e56b8b99
commit
b155beb241
220 changed files with 7834 additions and 1142 deletions
26
gcloud/scc/custom-modules/help
Normal file
26
gcloud/scc/custom-modules/help
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
NAME
|
||||
gcloud scc custom-modules - manage Cloud SCC (Security Command Center)
|
||||
custom modules
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules GROUP [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Cloud SCC (Security Command Center) custom modules.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
GROUPS
|
||||
GROUP is one of the following:
|
||||
|
||||
sha
|
||||
Manage Security Health Analytics custom modules.
|
||||
|
||||
NOTES
|
||||
This variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules
|
||||
|
||||
90
gcloud/scc/custom-modules/sha/create
Normal file
90
gcloud/scc/custom-modules/sha/create
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha create - create a Security Health Analytics
|
||||
custom module
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha create
|
||||
--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE
|
||||
--display-name=DISPLAY_NAME --enablement-state=ENABLEMENT_STATE
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Create a Security Health Analytics custom module.
|
||||
|
||||
EXAMPLES
|
||||
To create a Security Health Analytics custom module for given organization
|
||||
123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha create \
|
||||
--organization=organizations/123 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
To create a Security Health Analytics custom module for given folder 456,
|
||||
run:
|
||||
|
||||
$ gcloud scc custom-modules sha create --folder=folders/456 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
To create a Security Health Analytics custom module for given project 789,
|
||||
run:
|
||||
|
||||
$ gcloud scc custom-modules sha create --project=projects/789 \
|
||||
--display-name="test_display_name" \
|
||||
--enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
REQUIRED FLAGS
|
||||
--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE
|
||||
Path to a YAML file that contains the configuration for the Security
|
||||
Health Analytics custom module.
|
||||
|
||||
--display-name=DISPLAY_NAME
|
||||
Sets the display name of the Security Health Analytics custom module.
|
||||
This display name becomes the finding category for all findings that
|
||||
are returned by this custom module. The display name must be between 1
|
||||
and 128 characters, start with a lowercase letter, and contain
|
||||
alphanumeric characters or underscores only.
|
||||
|
||||
--enablement-state=ENABLEMENT_STATE
|
||||
Sets the enablement state of the Security Health Analytics custom
|
||||
module. From the following list of possible enablement states, specify
|
||||
either enabled or disabled only. ENABLEMENT_STATE must be one of:
|
||||
disabled, enabled, enablement-state-unspecified, inherited.
|
||||
|
||||
OPTIONAL FLAGS
|
||||
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
|
||||
ID or number of the project where the Security Health Analytics
|
||||
custom module 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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha create
|
||||
|
||||
67
gcloud/scc/custom-modules/sha/delete
Normal file
67
gcloud/scc/custom-modules/sha/delete
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha delete - delete a Security Health Analytics
|
||||
custom module
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha delete CUSTOM_MODULE
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Delete a Security Health Analytics custom module.
|
||||
|
||||
EXAMPLES
|
||||
To delete a Security Health Analytics custom module with ID 123456 for
|
||||
organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha delete 123456 \
|
||||
--organization=organizations/123
|
||||
|
||||
To delete a Security Health Analytics custom module with ID 123456 for
|
||||
folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha delete 123456 --folder=folders/456
|
||||
|
||||
To delete a Security Health Analytics custom module with ID 123456 for
|
||||
project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha delete 123456 --project=projects/789
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
CUSTOM_MODULE
|
||||
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.
|
||||
|
||||
FLAGS
|
||||
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
|
||||
ID or number of the project where the Security Health Analytics
|
||||
custom module 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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha delete
|
||||
|
||||
72
gcloud/scc/custom-modules/sha/get
Normal file
72
gcloud/scc/custom-modules/sha/get
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha get - get the details of a Security Health
|
||||
Analytics custom module
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha get CUSTOM_MODULE
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Get the details of a Security Health Analytics custom module. It does not
|
||||
resolve INHERITED enablement states to ENABLED or DISABLED for modules
|
||||
created at ancestor levels. For example, if the module is enabled at the
|
||||
ancestor level, modules for all child resources will have the enablement
|
||||
state set to INHERITED. Use gcloud scc custom-modules sha get-effective to
|
||||
retrieve a custom module with its effective enablement state.
|
||||
|
||||
EXAMPLES
|
||||
To get the details of a Security Health Analytics custom module with ID
|
||||
123456 for organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get 123456 \
|
||||
--organization=organizations/123
|
||||
|
||||
To get the details of a Security Health Analytics custom module with ID
|
||||
123456 for folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get 123456 --folder=folders/456
|
||||
|
||||
To get the details of a Security Health Analytics custom module with ID
|
||||
123456 for project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get 123456 --project=projects/789
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
CUSTOM_MODULE
|
||||
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.
|
||||
|
||||
FLAGS
|
||||
At most one of these can be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
Folder from which to get the custom module details. Formatted as
|
||||
folders/456 or just 456.
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Organization from which to get the custom module details. Formatted
|
||||
as organizations/123 or just 123.
|
||||
|
||||
--project=PROJECT
|
||||
ID or number of the project from which to get the custom module
|
||||
details. 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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha get
|
||||
|
||||
74
gcloud/scc/custom-modules/sha/get-effective
Normal file
74
gcloud/scc/custom-modules/sha/get-effective
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha get-effective - get the details of a Security
|
||||
Health Analytics custom module with effective enablement state
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha get-effective CUSTOM_MODULE
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Get the details of a Security Health Analytics custom module. For inherited
|
||||
custom modules, the get-effective command resolves INHERITED enablement
|
||||
states to ENABLED or DISABLED. For example, if an inherited custom module
|
||||
is enabled at the ancestor level, then the get-effective command displays
|
||||
the enablement state as ENABLED instead of INHERITED in a child folder or
|
||||
project.
|
||||
|
||||
EXAMPLES
|
||||
To get the details of a Security Health Analytics custom module 123456 with
|
||||
its effective enablement state from organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get-effective 123456 \
|
||||
--organization=organizations/123
|
||||
|
||||
To get the details of a Security Health Analytics custom module 123456 with
|
||||
its effective enablement state from folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get-effective 123456 \
|
||||
--folder=folders/456
|
||||
|
||||
To get the details of a Security Health Analytics custom module 123456 with
|
||||
its effective enablement state from project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha get-effective 123456 \
|
||||
--project=projects/789
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
CUSTOM_MODULE
|
||||
ID or the full resource name of the effective Security Health Analytics
|
||||
custom module. If you specify the full resource name, you do not need
|
||||
to specify the --organization, --folder, or --project flags.
|
||||
|
||||
FLAGS
|
||||
At most one of these can be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
Folder from which to get the custom module details. Formatted as
|
||||
folders/456 or just 456.
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Organization from which to get the custom module details. Formatted
|
||||
as organizations/123 or just 123.
|
||||
|
||||
--project=PROJECT
|
||||
ID or number of the project from which to get the custom module
|
||||
details. 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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha get-effective
|
||||
|
||||
50
gcloud/scc/custom-modules/sha/help
Normal file
50
gcloud/scc/custom-modules/sha/help
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha - manage Security Health Analytics custom
|
||||
modules
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha COMMAND [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Manage Security Health Analytics custom modules.
|
||||
|
||||
GCLOUD WIDE FLAGS
|
||||
These flags are available to all commands: --help.
|
||||
|
||||
Run $ gcloud help for details.
|
||||
|
||||
COMMANDS
|
||||
COMMAND is one of the following:
|
||||
|
||||
create
|
||||
Create a Security Health Analytics custom module.
|
||||
|
||||
delete
|
||||
Delete a Security Health Analytics custom module.
|
||||
|
||||
get
|
||||
Get the details of a Security Health Analytics custom module.
|
||||
|
||||
get-effective
|
||||
Get the details of a Security Health Analytics custom module with
|
||||
effective enablement state.
|
||||
|
||||
list
|
||||
List the details of Security Health Analytics custom modules.
|
||||
|
||||
list-descendant
|
||||
List the details of the resident and descendant Security Health
|
||||
Analytics custom modules.
|
||||
|
||||
list-effective
|
||||
List the details of Security Health Analytics custom modules with
|
||||
effective enablement states.
|
||||
|
||||
update
|
||||
Update a Security Health Analytics custom module.
|
||||
|
||||
NOTES
|
||||
This variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha
|
||||
|
||||
96
gcloud/scc/custom-modules/sha/list
Normal file
96
gcloud/scc/custom-modules/sha/list
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha list - list the details of Security Health
|
||||
Analytics custom modules
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha list
|
||||
(--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT)
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List the details of the resident and inherited Security Health Analytics
|
||||
custom modules for the specified folder or project. For an organization,
|
||||
this command lists only the custom modules that are created at the
|
||||
organization level. Custom modules created in child folders or projects are
|
||||
not included in the list. To list the resident custom modules and the
|
||||
modules that are created in child folders or projects, use gcloud scc
|
||||
custom-modules sha list-descendant.
|
||||
|
||||
EXAMPLES
|
||||
To list resident and inherited Security Health Analytics custom modules for
|
||||
organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list --organization=organizations/123
|
||||
|
||||
To list resident and inherited Security Health Analytics custom modules for
|
||||
folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list --folder=folders/456
|
||||
|
||||
To list resident and inherited Security Health Analytics custom modules for
|
||||
project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list --project=projects/789
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
Folder for listing the Security Health Analytics custom modules
|
||||
created at the current folder level and inherited modules from CRM
|
||||
ancestors. Formatted as folders/456 or just 456.
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Organization for listing the Security Health Analytics custom modules
|
||||
created at the organization level. Formatted as organizations/123 or
|
||||
just 123.
|
||||
|
||||
--project=PROJECT
|
||||
ID or number of the project for listing the Security Health Analytics
|
||||
custom modules created at current project level and inherited modules
|
||||
from CRM ancestors. Formatted as projects/789 or just 789.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha list
|
||||
|
||||
98
gcloud/scc/custom-modules/sha/list-descendant
Normal file
98
gcloud/scc/custom-modules/sha/list-descendant
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha list-descendant - list the details of the
|
||||
resident and descendant Security Health Analytics custom modules
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha list-descendant
|
||||
(--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT)
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List the details of the resident and descendant Security Health Analytics
|
||||
custom modules for a specified organization or folder. For a project, this
|
||||
command lists only the custom modules that are created in the project.
|
||||
Modules created in a parent organization or folder are excluded from the
|
||||
list. To list the resident custom modules and the modules that are
|
||||
inherited from a parent organization and folder, use gcloud scc
|
||||
custom-modules sha list.
|
||||
|
||||
EXAMPLES
|
||||
To list resident and descendant Security Health Analytics custom modules
|
||||
for organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-descendant \
|
||||
--organization=organizations/123
|
||||
|
||||
To list resident and descendant Security Health Analytics custom modules
|
||||
for folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-descendant --folder=folders/456
|
||||
|
||||
To list resident and descendant Security Health Analytics custom modules
|
||||
for project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-descendant \
|
||||
--project=projects/789
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
Folder for listing the Security Health Analytics custom modules
|
||||
created at the current folder level and its child resources.
|
||||
Formatted as folders/456 or just 456.
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Organization for listing the Security Health Analytics custom modules
|
||||
created at the organization level and its child resources. Formatted
|
||||
as organizations/123 or just 123.
|
||||
|
||||
--project=PROJECT
|
||||
ID or number of the project for listing the Security Health Analytics
|
||||
custom modules at current project level. Formatted as projects/789 or
|
||||
just 789.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha list-descendant
|
||||
|
||||
95
gcloud/scc/custom-modules/sha/list-effective
Normal file
95
gcloud/scc/custom-modules/sha/list-effective
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha list-effective - list the details of Security
|
||||
Health Analytics custom modules with effective enablement states
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha list-effective
|
||||
(--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT)
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
List the details of resident and inherited Security Health Analytics custom
|
||||
modules for the specified folder or project with their effective enablement
|
||||
states. For an organization, this command lists only the custom modules
|
||||
that are created at the organization level. Custom modules created in child
|
||||
folders or projects are not included in the list.
|
||||
|
||||
EXAMPLES
|
||||
To list resident and inherited Security Health Analytics custom modules
|
||||
with effective enablement states for organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-effective \
|
||||
--organization=organizations/123
|
||||
|
||||
To list resident and inherited effective Security Health Analytics custom
|
||||
modules with effective enablement states for folder 456, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-effective --folder=folders/456
|
||||
|
||||
To list resident and inherited effective Security Health Analytics custom
|
||||
modules with effective enablement states for project 789, run:
|
||||
|
||||
$ gcloud scc custom-modules sha list-effective --project=projects/789
|
||||
|
||||
REQUIRED FLAGS
|
||||
Exactly one of these must be specified:
|
||||
|
||||
--folder=FOLDER
|
||||
Folder for listing the effective Security Health Analytics custom
|
||||
modules created at the current folder level and inherited modules
|
||||
from CRM ancestors. Formatted as folders/456 or just 456.
|
||||
|
||||
--organization=ORGANIZATION
|
||||
Organization for listing the effective Security Health Analytics
|
||||
custom modules created at the organization level. Formatted as
|
||||
organizations/123 or just 123.
|
||||
|
||||
--project=PROJECT
|
||||
ID or number of the project for listing the effective Security Health
|
||||
Analytics custom modules for the current project level and inherited
|
||||
modules from CRM ancestors. Formatted as projects/789 or just 789.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha list-effective
|
||||
|
||||
89
gcloud/scc/custom-modules/sha/update
Normal file
89
gcloud/scc/custom-modules/sha/update
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
NAME
|
||||
gcloud scc custom-modules sha update - update a Security Health Analytics
|
||||
custom module
|
||||
|
||||
SYNOPSIS
|
||||
gcloud scc custom-modules sha update CUSTOM_MODULE
|
||||
[--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE]
|
||||
[--enablement-state=ENABLEMENT_STATE] [--update-mask=UPDATE_MASK]
|
||||
[--folder=FOLDER | --organization=ORGANIZATION | --project=PROJECT]
|
||||
[GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
Update a Security Health Analytics custom module.
|
||||
|
||||
EXAMPLES
|
||||
To update a Security Health Analytics custom module with ID 123456 for
|
||||
organization 123, run:
|
||||
|
||||
$ gcloud scc custom-modules sha update 123456 \
|
||||
--organization=organizations/123 --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 scc custom-modules sha update 123456 --folder=folders/456 \
|
||||
--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 scc custom-modules sha update 123456 \
|
||||
--project=projects/789 --enablement-state="ENABLED" \
|
||||
--custom-config-from-file=custom_config.yaml
|
||||
|
||||
POSITIONAL ARGUMENTS
|
||||
CUSTOM_MODULE
|
||||
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.
|
||||
|
||||
FLAGS
|
||||
--custom-config-from-file=CUSTOM_CONFIG_FROM_FILE
|
||||
Path to a YAML file that contains the configuration for the Security
|
||||
Health Analytics custom module.
|
||||
|
||||
--enablement-state=ENABLEMENT_STATE
|
||||
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.
|
||||
|
||||
--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
|
||||
ID or number of the project where the Security Health Analytics
|
||||
custom module 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 variant is also available:
|
||||
|
||||
$ gcloud alpha scc custom-modules sha update
|
||||
|
||||
|
|
@ -21,6 +21,9 @@ GROUPS
|
|||
bqexports
|
||||
Manage Cloud SCC (Security Command Center) BigQuery exports.
|
||||
|
||||
custom-modules
|
||||
Manage Cloud SCC (Security Command Center) custom modules.
|
||||
|
||||
findings
|
||||
Manage Cloud SCC (Security Command Center) findings.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue