gcloud alpha storage management-hub update

NAME
gcloud alpha storage management-hub update - updates Management Hub
SYNOPSIS
gcloud alpha storage management-hub update(--organization=ORGANIZATION    |--project=PROJECT    |--sub-folder=SUB_FOLDER)(--inherit-from-parent    |--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,…]--exclude-bucket-ids=[EXCLUDE_BUCKET_IDS,…]    |--include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,…]--include-bucket-ids=[INCLUDE_BUCKET_IDS,…]--exclude-locations=[EXCLUDE_LOCATIONS,…]    |--include-locations=[INCLUDE_LOCATIONS,…])[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA)(DEPRECATED) This command group is deprecated.Usegcloud alphastorage intelligence-configs command group instead.Update management hub plan for the organization, sub-folder or project.
EXAMPLES
To limit buckets in the management hub plan, Use the following command with--include-bucket-ids and--include-bucket-regexes flags to specifylist of bucket ids and bucket id regexes.,
$gcloudalphastoragemanagement-hubupdate--organization=my-org--include-bucket-ids=my-bucket--include-bucket-regexes=my-bucket-.*

To apply location based filters in the management hub plan, Use--include-locations or--exclude-locations flags to specifyallowed list of locations or excluded list of locations. The following commandupdates management hub plan of sub-folder123456 with the specifiedlist of excluded locations.,

$gcloudalphastoragemanagement-hubupdate--sub-folder=123456--exclude-locations=us-east1,us-west1

The following command updates management hub for the given project by inheritingexisting management hub plan from the hierarchical parent resource.,

$gcloudalphastoragemanagement-hubupdate--project=my-project--inherit-from-parent

To clear included locations from the project management hub, Use the followingcommand.,

$gcloudalphastoragemanagement-hubupdate--project=my-project--include-locations=

To clear excluded bucket ids from the project management hub and to replaceexisting excluded bucket ids regexes, Use the following command.,

$gcloudalphastoragemanagement-hubupdate--project=my-project--exclude-bucket-id-regexes="test1*","test2*"--exclude-bucket-ids=""

Alternatively, use the following command to do same operation since the absenseof cloud storage bucket filter flags will be considered as empty list,

$gcloudalphastoragemanagement-hubupdate--project=my-project--exclude-bucket-id-regexes="test1*","test2*"
REQUIRED FLAGS
Exactly one of these must be specified:
--organization=ORGANIZATION
Specifies organization id for the management hub.
--project=PROJECT
Specifies project for the management hub.
--sub-folder=SUB_FOLDER
Specifies sub-folder id for the management hub.
Exactly one of these must be specified:
--inherit-from-parent
Specifies management hub config to be inherited from parent.
At most one of these can be specified:
Sets the cloud storage buckets exclusion filter. Full filters should bespecified using available flags in this group, gcloud CLI infers missing flagsof this group as empty which will result in clearing of the individual filters.
--exclude-bucket-id-regexes=[EXCLUDE_BUCKET_ID_REGEXES,…]
Sets filter for bucket id regexes to exclude. Accepts list of bucket id regexesin comma separated format. If the regex contains special characters that mayhave a specific meaning in the shell, escape them using backslashes(\). To clearbucket id regexes list, provide flag with an empty list. e.g--exclude-bucket-id-regexes="" or--exclude-bucket-id-regexes= .
--exclude-bucket-ids=[EXCLUDE_BUCKET_IDS,…]
Comma separated list of bucket ids to exclude in the management hub filter. Toclear bucket id list, provide flag with an empty list. e.g--exclude-bucket-ids="" or--exclude-bucket-ids= .
Sets the cloud storage buckets inclusion filter. Full filters should bespecified using available flags in this group, gcloud CLI infers missing flagsof this group as empty which will result in clearing of the individual filters.
--include-bucket-id-regexes=[INCLUDE_BUCKET_ID_REGEXES,…]
Sets filter for bucket id regexes to include. Accepts list of bucket id regexesin comma separated format. If the regex contains special characters that mayhave a specific meaning in the shell, escape them using backslashes(\). To clearbucket id regexes list, provide flag with empty list. e.g--include-bucket-id-regexes="" or--include-bucket-id-regexes= .
--include-bucket-ids=[INCLUDE_BUCKET_IDS,…]
Comma separated list of bucket ids to include in the management hub filter. Toclear bucket id list, provide flag with empty list. e.g--include-bucket-ids="" or--include-bucket-ids= .
At most one of these can be specified:
--exclude-locations=[EXCLUDE_LOCATIONS,…]
Comma separated list oflocationsto exclude in Management Hub filter. To clear excluded locations, provide flagwith empty list. e.g--exclude-locations="" or--exclude-locations= .
--include-locations=[INCLUDE_LOCATIONS,…]
Comma separated list oflocationsto include in management hub filter. To clear included locations, provide flagwith empty list. e.g--include-locations="" or--include-locations= .
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.

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-16 UTC.