File: //snap/google-cloud-cli/394/help/man/man1/gcloud_scc_custom-modules_sha_create.1
.TH "GCLOUD_SCC_CUSTOM\-MODULES_SHA_CREATE" 1
.SH "NAME"
.HP
gcloud scc custom\-modules sha create \- create a Security Health Analytics custom module
.SH "SYNOPSIS"
.HP
\f5gcloud scc custom\-modules sha create\fR \fB\-\-custom\-config\-from\-file\fR=\fIPATH_TO_FILE\fR \fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR \fB\-\-enablement\-state\fR=\fIENABLEMENT_STATE\fR [\fB\-\-folder\fR=\fIFOLDER\fR\ |\ \fB\-\-organization\fR=\fIORGANIZATION\fR\ |\ \fB\-\-project\fR=\fIPROJECT\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Create a Security Health Analytics custom module.
.SH "EXAMPLES"
To create a Security Health Analytics custom module for given organization
\f5123\fR, run:
.RS 2m
$ gcloud scc custom\-modules sha create \e
\-\-organization=organizations/123 \e
\-\-display\-name="test_display_name" \e
\-\-enablement\-state="ENABLED" \e
\-\-custom\-config\-from\-file=custom_config.yaml
.RE
To create a Security Health Analytics custom module for given folder \f5456\fR,
run:
.RS 2m
$ gcloud scc custom\-modules sha create \-\-folder=folders/456 \e
\-\-display\-name="test_display_name" \e
\-\-enablement\-state="ENABLED" \e
\-\-custom\-config\-from\-file=custom_config.yaml
.RE
To create a Security Health Analytics custom module for given project \f5789\fR,
run:
.RS 2m
$ gcloud scc custom\-modules sha create \-\-project=projects/789 \e
\-\-display\-name="test_display_name" \e
\-\-enablement\-state="ENABLED" \e
\-\-custom\-config\-from\-file=custom_config.yaml
.RE
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-custom\-config\-from\-file\fR=\fIPATH_TO_FILE\fR
Path to a YAML file that contains the configuration for the Security Health
Analytics custom module. Use a full or relative path to a local file containing
the value of custom_config.
.TP 2m
\fB\-\-display\-name\fR=\fIDISPLAY_NAME\fR
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.
.TP 2m
\fB\-\-enablement\-state\fR=\fIENABLEMENT_STATE\fR
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. \fIENABLEMENT_STATE\fR must be one of: \fBdisabled\fR,
\fBenabled\fR, \fBenablement\-state\-unspecified\fR, \fBinherited\fR.
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-folder\fR=\fIFOLDER\fR
Folder where the Security Health Analytics custom module resides. Formatted as
\f5folders/456\fR or just \f5456\fR.
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR
Organization where the Security Health Analytics custom module resides.
Formatted as \f5organizations/123\fR or just \f5123\fR.
.TP 2m
\fB\-\-project\fR=\fIPROJECT\fR
ID or number of the project where the Security Health Analytics custom module
resides. Formatted as \f5projects/789\fR or just \f5789\fR.
.RE
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "API REFERENCE"
This command uses the \fBsecuritycenter/v1\fR API. The full documentation for
this API can be found at: https://cloud.google.com/security\-command\-center
.SH "NOTES"
This variant is also available:
.RS 2m
$ gcloud alpha scc custom\-modules sha create
.RE