HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
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