gcloud storage insights dataset-configs update (DATASET_CONFIG : --location=LOCATION) [--activity-data-retention-period-days=ACTIVITY_DATA_RETENTION_DAYS] [--auto-add-new-buckets=AUTO_ADD_NEW_BUCKETS] [--description=DESCRIPTION] [--retention-period-days=RETENTION_DAYS] [--enable-organization-scope | --source-folders=[SOURCE_FOLDER_NUMBERS,…] | --source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE | --source-projects=[SOURCE_PROJECT_NUMBERS,…] | --source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE] [--exclude-bucket-names=[BUCKETS_NAMES,…] --exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,…] | --include-bucket-names=[BUCKETS_NAMES,…] --include-bucket-prefix-regexes=[BUCKETS_REGEXES,…]] [--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,…] | --include-source-locations=[LIST_OF_SOURCE_LOCATIONS,…]] [GCLOUD_WIDE_FLAG …]
gcloud storage insights dataset-configs update my_config --location=us-central1 --description="a user provided description"To update the same dataset config with fully specified name:
gcloud storage insights dataset-configs update projects/foo/locations/us-central1/datasetConfigs/my_configTo update the retention period days for the dataset config "my_config" in location "us-central1":
gcloud storage insights dataset-configs update my_config --location=us-central1 --retention-period-days=20
To set the project attribute:
dataset_config on the command line with a
fully specified name;
--project on the command line;
core/project.
DATASET_CONFIG
To set the dataset-config attribute:
dataset_config on the command line.
--location=LOCATIONlocation attribute:
dataset_config on the command line with a
fully specified name;
--location on the command line.
--activity-data-retention-period-days=ACTIVITY_DATA_RETENTION_DAYSretention_period_days value is used for activity data as well.
--auto-add-new-buckets=AUTO_ADD_NEW_BUCKETSAUTO_ADD_NEW_BUCKETS must be one of:
true, false.
--description=DESCRIPTION--retention-period-days=RETENTION_DAYS--enable-organization-scope--source-folders=[SOURCE_FOLDER_NUMBERS,…]--source-folders-file=SOURCE_FOLDER_NUMBERS_IN_FILE--source-projects=[SOURCE_PROJECT_NUMBERS,…]--source-projects-file=SOURCE_PROJECT_NUMBERS_IN_FILE--exclude-bucket-names=[BUCKETS_NAMES,…]--exclude-bucket-prefix-regexes=[BUCKETS_REGEXES,…]--include-bucket-names=[BUCKETS_NAMES,…]--include-bucket-prefix-regexes=[BUCKETS_REGEXES,…]*, testbucket.*foo,
testb.+foo* . It should follow syntax specified in google/re2 on
GitHub.
--exclude-source-locations=[LIST_OF_SOURCE_LOCATIONS,…]--include-source-locations=[LIST_OF_SOURCE_LOCATIONS,…]--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.
gcloud alpha storage insights dataset-configs update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.