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/394/help/man/man1/gcloud_alpha_storage_management-hub_enable.1
.TH "GCLOUD_ALPHA_STORAGE_MANAGEMENT\-HUB_ENABLE" 1



.SH "NAME"
.HP
gcloud alpha storage management\-hub enable \- enables Management Hub



.SH "SYNOPSIS"
.HP
\f5gcloud alpha storage management\-hub enable\fR (\fB\-\-organization\fR=\fIORGANIZATION\fR\ |\ \fB\-\-project\fR=\fIPROJECT\fR\ |\ \fB\-\-sub\-folder\fR=\fISUB_FOLDER\fR) [\fB\-\-exclude\-locations\fR=[\fIEXCLUDE_LOCATIONS\fR,...]\ |\ \fB\-\-include\-locations\fR=[\fIINCLUDE_LOCATIONS\fR,...]] [\fB\-\-exclude\-bucket\-id\-regexes\fR=[\fIEXCLUDE_BUCKET_ID_REGEXES\fR,...]\ \fB\-\-exclude\-bucket\-ids\fR=[\fIEXCLUDE_BUCKET_IDS\fR,...]\ |\ \fB\-\-include\-bucket\-id\-regexes\fR=[\fIINCLUDE_BUCKET_ID_REGEXES\fR,...]\ \fB\-\-include\-bucket\-ids\fR=[\fIINCLUDE_BUCKET_IDS\fR,...]] [\fIGCLOUD_WIDE_FLAG\ ...\fR]



.SH "DESCRIPTION"

\fB(ALPHA)\fR \fB(DEPRECATED)\fR This command group is deprecated. Use \f5gcloud
alpha storage intelligence\-configs\fR command group instead.


Enable management hub plan for the organization, sub\-folder or project along
with filters.



.SH "EXAMPLES"

To remove buckets from the management hub plan, Use the following command with
\f5\fI\-\-exclude\-bucket\-ids\fR\fR and
\f5\fI\-\-exclude\-bucket\-regexes\fR\fR flags to specify list of bucket ids and
bucket id regexes.,

.RS 2m
$gcloud alpha storage management\-hub enable \-\-organization=my\-org \-\-exclude\-bucket\-ids="my\-bucket" \-\-exclude\-bucket\-regexes="my\-bucket\-.*"
.RE

To apply location based filters in the management hub plan, Use
\f5\fI\-\-include\-locations\fR\fR or \f5\fI\-\-exclude\-locations\fR\fR flags
to specify allowed list of locations or excluded list of locations. The
following command updates management hub plan of sub\-folder \f5123456\fR with
the specified list of included locations.,

.RS 2m
$gcloud alpha storage management\-hub enable \-\-sub\-folder=123456 \-\-include\-locations="us\-east1","us\-west1"
.RE



.SH "REQUIRED FLAGS"

.RS 2m
.TP 2m

Exactly one of these must be specified:


.RS 2m
.TP 2m
\fB\-\-organization\fR=\fIORGANIZATION\fR

Specifies organization id for the management hub.

.TP 2m
\fB\-\-project\fR=\fIPROJECT\fR

Specifies project for the management hub.

.TP 2m
\fB\-\-sub\-folder\fR=\fISUB_FOLDER\fR

Specifies sub\-folder id for the management hub.


.RE
.RE
.sp

.SH "LOCATION FLAGS"

.RS 2m
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m
\fB\-\-exclude\-locations\fR=[\fIEXCLUDE_LOCATIONS\fR,...]

Comma separated list of locations
(https://cloud.google.com/storage/docs/locations#available\-locations) to
exclude in Management Hub filter. To clear excluded locations, provide flag with
empty list. e.g \f5\-\-exclude\-locations=""\fR or \f5\-\-exclude\-locations=\fR
.

.TP 2m
\fB\-\-include\-locations\fR=[\fIINCLUDE_LOCATIONS\fR,...]

Comma separated list of locations
(https://cloud.google.com/storage/docs/locations#available\-locations) to
include in management hub filter. To clear included locations, provide flag with
empty list. e.g \f5\-\-include\-locations=""\fR or \f5\-\-include\-locations=\fR
.


.RE
.RE
.sp

.SH "BUCKET_FILTER FLAGS"

.RS 2m
.TP 2m

At most one of these can be specified:


.RS 2m
.TP 2m

Sets the cloud storage buckets exclusion filter. Full filters should be
specified using available flags in this group, gcloud CLI infers missing flags
of this group as empty which will result in clearing of the individual filters.


.RS 2m
.TP 2m
\fB\-\-exclude\-bucket\-id\-regexes\fR=[\fIEXCLUDE_BUCKET_ID_REGEXES\fR,...]

Sets filter for bucket id regexes to exclude. Accepts list of bucket id regexes
in comma separated format. If the regex contains special characters that may
have a specific meaning in the shell, escape them using backslashes(\e). To
clear bucket id regexes list, provide flag with an empty list. e.g
\f5\-\-exclude\-bucket\-id\-regexes=""\fR or
\f5\-\-exclude\-bucket\-id\-regexes=\fR .

.TP 2m
\fB\-\-exclude\-bucket\-ids\fR=[\fIEXCLUDE_BUCKET_IDS\fR,...]

Comma separated list of bucket ids to exclude in the management hub filter. To
clear bucket id list, provide flag with an empty list. e.g
\f5\-\-exclude\-bucket\-ids=""\fR or \f5\-\-exclude\-bucket\-ids=\fR .

.RE
.sp
.TP 2m

Sets the cloud storage buckets inclusion filter. Full filters should be
specified using available flags in this group, gcloud CLI infers missing flags
of this group as empty which will result in clearing of the individual filters.


.RS 2m
.TP 2m
\fB\-\-include\-bucket\-id\-regexes\fR=[\fIINCLUDE_BUCKET_ID_REGEXES\fR,...]

Sets filter for bucket id regexes to include. Accepts list of bucket id regexes
in comma separated format. If the regex contains special characters that may
have a specific meaning in the shell, escape them using backslashes(\e). To
clear bucket id regexes list, provide flag with empty list. e.g
\f5\-\-include\-bucket\-id\-regexes=""\fR or
\f5\-\-include\-bucket\-id\-regexes=\fR .

.TP 2m
\fB\-\-include\-bucket\-ids\fR=[\fIINCLUDE_BUCKET_IDS\fR,...]

Comma separated list of bucket ids to include in the management hub filter. To
clear bucket id list, provide flag with empty list. e.g
\f5\-\-include\-bucket\-ids=""\fR or \f5\-\-include\-bucket\-ids=\fR .


.RE
.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 "NOTES"

This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist.