File: //snap/google-cloud-cli/current/help/man/man1/gcloud_scc_custom-modules_sha_simulate.1
.TH "GCLOUD_SCC_CUSTOM\-MODULES_SHA_SIMULATE" 1
.SH "NAME"
.HP
gcloud scc custom\-modules sha simulate \- validates a Security Health Analytics custom module
.SH "SYNOPSIS"
.HP
\f5gcloud scc custom\-modules sha simulate\fR \fB\-\-custom\-config\-from\-file\fR=\fIPATH_TO_FILE\fR \fB\-\-resource\-from\-file\fR=\fIPATH_TO_FILE\fR (\fB\-\-folder\fR=\fIFOLDER\fR\ |\ \fB\-\-organization\fR=\fIORGANIZATION\fR\ |\ \fB\-\-project\fR=\fIPROJECT\fR) [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Validates a given Security Health Analytics custom module and resource.
.SH "EXAMPLES"
To validate a Security Health Analytics custom module against a custom resource
for organization \f5123\fR, run:
.RS 2m
$ gcloud scc custom\-modules sha simulate \e
\-\-organization=organizations/123 \e
\-\-custom\-config\-from\-file=/tmp/custom_config.yaml \e
\-\-resource\-from\-file=/tmp/resource.yaml
.RE
To validate a Security Health Analytics custom module against a custom resource
for folder \f5456\fR, run:
.RS 2m
$ gcloud scc custom\-modules sha simulate \-\-folder=folders/456 \e
\-\-custom\-config\-from\-file=/tmp/custom_config.yaml \e
\-\-resource\-from\-file=/tmp/resource.yaml
.RE
To validate a Security Health Analytics custom module against a custom resource
for project \f5789\fR, run:
.RS 2m
$ gcloud scc custom\-modules sha simulate \-\-project=projects/789 \e
\-\-custom\-config\-from\-file=/tmp/custom_config.yaml \e
\-\-resource\-from\-file=/tmp/resource.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\-\-resource\-from\-file\fR=\fIPATH_TO_FILE\fR
Path to a YAML file that contains the resource data to validate the Security
Health Analytics custom module against. Use a full or relative path to a local
file containing the value of resource.
.TP 2m
Exactly one of these must be specified:
.RS 2m
.TP 2m
\fB\-\-folder\fR=\fIFOLDER\fR
Folder that will own the Security Health Analytics custom module. Formatted as
\f5folders/456\fR or just \f5456\fR.
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR
Organization that will own the Security Health Analytics custom module.
Formatted as \f5organizations/123\fR or just \f5123\fR.
.TP 2m
\fB\-\-project\fR=\fIPROJECT\fR
ID or number of the project that will own the Security Health Analytics custom
module. 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 simulate
.RE