gcloud alpha storage insights inventory-reports create SOURCE_BUCKET_URL [--destination=DESTINATION_URL] [--display-name=DISPLAY_NAME] [--metadata-fields=[METADATA_FIELDS,…]; default="project,bucket,name,location,size,timeCreated,timeDeleted,updated,storageClass,etag,retentionExpirationTime,crc32c,md5Hash,generation,metageneration,contentType,contentEncoding,timeStorageClassUpdated"] [--schedule-repeats=FREQUENCY; default="daily"] [--schedule-repeats-until=END_DATE] [--schedule-starts=START_DATE] [--parquet | --csv-delimiter=DELIMITER --[no-]csv-header --csv-separator=SEPARATOR] [GCLOUD_WIDE_FLAG …]
(ALPHA) Create an inventory report config that defines how often
inventory reports are generated, the metadata fields you want the reports to
include, and a bucket/prefix in which to store the reports, also known as the
destination.
gcloud alpha storage insights inventory-reports create gs://my-bucket --destination=gs://report-bucket/save-path/SOURCE_BUCKET_URL--destination=DESTINATION_URL--display-name=DISPLAY_NAME--metadata-fields=[METADATA_FIELDS,…]; default="project,bucket,name,location,size,timeCreated,timeDeleted,updated,storageClass,etag,retentionExpirationTime,crc32c,md5Hash,generation,metageneration,contentType,contentEncoding,timeStorageClassUpdated"METADATA_FIELDS must be one of: project,
bucket, name, location,
size, timeCreated, timeDeleted,
updated, storageClass, etag,
retentionExpirationTime, crc32c, md5Hash,
generation, metageneration, contentType,
contentEncoding, timeStorageClassUpdated.
--schedule-repeats=FREQUENCY; default="daily"FREQUENCY must be one of: daily,
weekly.
--schedule-repeats-until=END_DATE--schedule-starts=START_DATE--parquet--csv-delimiter=DELIMITER--[no-]csv-header--csv-header to enable and
--no-csv-header to disable.
--csv-separator=SEPARATORSEPARATOR must be one of:
\n, \r\n.
--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 storage insights inventory-reports create
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.