Skip to main content
Create a bucket inventory configuration to get scheduled reports on the contents of a bucket. You can create up to five configurations for the same bucket and temporarily disable report generation without deleting the configuration when needed.

Prerequisites

  • To create, modify or delete inventory configurations, make sure that you have at least the storage.editor role for the bucket, its parent project or tenant.
  • To use another bucket as the destination for reports, make sure that you have at least the storage.uploader role for the destination bucket, its parent project or tenant.
  • To view inventory configurations, make sure that you have at least the storage.viewer role for the bucket, its parent project or tenant.

How to create an inventory configuration

  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the bucket where you want to create an inventory configuration.
  3. Click AddInventory configuration.
  4. Set the inventory configuration parameters:
    • Name: Name of the configuration. Object Storage uses it both in the list of configurations and in the keys of report objects.
    • (Optional) Source prefix: Prefix that filters source objects included in the report. The report only contains objects whose keys start with this prefix.
    • Project: Project that contains the bucket where Object Storage delivers the reports.
    • Bucket: Bucket where Object Storage delivers the reports. You can select the current bucket or a different one in the same region.
    • (Optional) Destination prefix: Prefix that Object Storage adds to the keys of report objects. For example, test_dir/. Use it to keep reports separate from other objects in the destination bucket.
    • Schedule: How often Object Storage generates a report — Daily or Weekly. For details, see How Object Storage generates reports.
    • Output format: Format and compression of report objects:
      • CSV compressed with GZIP
      • Apache Parquet compressed with Snappy
    • Object versions: Whether a report lists only the current version of every object (Current version only) or all its versions (Include all versions).
    • Optional metadata fields to export: Additional object metadata that Object Storage can include in a report. For more information, see What a report contains.
  5. Click Create.
The configuration will appear on the Inventory configuration tab of the bucket and become active.
To report on all object versions, enable versioning in the bucket where you want to create an inventory configuration. Otherwise, the report will only list current versions.

How to view inventory configurations

  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the bucket where you want to view inventory configurations.
  3. Go to the Inventory configuration tab.
  4. To see all parameters of a specific configuration, open its page.

How to get a report

Object Storage delivers reports as regular objects, so you work with them as with any other objects in a bucket. Reports are always compressed.
A complete report can consist of multiple objects. To get the complete report, download every object listed in the files array of the manifest.json file.
  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the destination bucket that you set in the configuration.
  3. Find the report objects you need. Object Storage stores them under the <destination_prefix>/<bucket_name>/<configuration_name>/data/ prefix, where <bucket_name> is the bucket that you analyze. For more information, see Where Object Storage delivers reports.
  4. Download the report objects.
To make sure that the report is complete, compare each report object’s checksum with the corresponding checksum in the manifest.json file.

How to modify an inventory configuration

  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the bucket where you want to modify an inventory configuration.
  3. Go to the Inventory configuration tab.
  4. Next to the configuration that you want to modify, click Edit.
  5. Change the inventory configuration parameters and click Save changes.
Your changes will apply to the reports generated after the configuration change. Reports delivered earlier remain unchanged.

How to stop or resume an inventory configuration

Stop a configuration when you no longer need new reports but want to keep the configuration.
  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the bucket where you want to stop or resume an inventory configuration.
  3. Go to the Inventory configuration tab.
  4. Next to the configuration you want to stop or resume, click and then select one of the following:
    • Stop: Object Storage stops generating reports, and the configuration status changes to Stopped.
    • Resume: Object Storage resumes report generation according to the configuration schedule. It doesn’t generate a report immediately.

How to delete an inventory configuration

Deleting an inventory configuration is permanent. To keep a configuration but stop generating new reports, stop it instead.
  1. In the sidebar, go to StorageObject Storage.
  2. Open the page of the bucket where you want to delete an inventory configuration.
  3. Go to the Inventory configuration tab.
  4. Next to the configuration you want to delete, click Delete.
  5. Enter the inventory configuration name and click Delete inventory configuration.
Object Storage doesn’t delete the reports that it has already delivered to the destination bucket. To remove them, delete these objects or configure lifecycle rules for them.