> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to configure and manage a bucket inventory in Object Storage

Create a [bucket inventory](https://docs.nebius.com/object-storage/buckets/inventory.md) 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

> [tab] Web console
>
> Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>
> * `storage.editor` to create, modify, or delete inventory configurations.
> * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
> * `storage.viewer` to view inventory configurations.

> [tab] Nebius AI Cloud CLI
>
> * [Install and configure](https://docs.nebius.com/cli/install.md) the Nebius AI Cloud CLI.
> * Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>   * `storage.editor` to create, modify, or delete inventory configurations.
>   * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
>   * `storage.viewer` to view inventory configurations.

> [tab] Terraform
>
> * [Install and configure](https://docs.nebius.com/terraform-provider/install.md) the Nebius AI Cloud provider for Terraform.
> * Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>   * `storage.editor` to create, modify, or delete inventory configurations.
>   * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
>   * `storage.viewer` to view inventory configurations.

> [tab] Go SDK
>
> * [Install and initialize the Nebius SDK for Go](https://docs.nebius.com/sdk/go/install-auth.md).
> * Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>   * `storage.editor` to create, modify, or delete inventory configurations.
>   * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
>   * `storage.viewer` to view inventory configurations.

> [tab] Python SDK
>
> * [Install and initialize the Nebius SDK for Python](https://docs.nebius.com/sdk/python/install-auth.md).
> * Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>   * `storage.editor` to create, modify, or delete inventory configurations.
>   * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
>   * `storage.viewer` to view inventory configurations.

> [tab] JavaScript SDK
>
> * [Install and initialize the Nebius SDK for JavaScript](https://docs.nebius.com/sdk/javascript/install-auth.md).
> * Make sure that you have at least the following [roles](https://docs.nebius.com/iam/authorization/roles.md) for the bucket, its parent project, or tenant:
>   * `storage.editor` to create, modify, or delete inventory configurations.
>   * `storage.uploader` for the destination bucket, its parent project, or tenant, to use another bucket as the destination for reports.
>   * `storage.viewer` to view inventory configurations.

## How to create an inventory configuration

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object Storage**.
>
> 2. Open the page of the bucket where you want to create an inventory configuration.
>
> 3. Click **Add** → **Inventory 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](https://docs.nebius.com/object-storage/buckets/inventory.md#where-object-storage-delivers-reports).
>
>    * (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](https://docs.nebius.com/overview/regions.md).
>
>    * (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](https://docs.nebius.com/object-storage/buckets/inventory.md#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](https://docs.nebius.com/object-storage/buckets/inventory.md#what-a-report-contains).
>
> 5. Click **Create**.
>
> The configuration will appear on the **Inventory configuration** tab of the bucket and become active.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the bucket where you want to create an inventory configuration:
>
>    ```bash theme={null}
>    export SOURCE_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <source_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 2. Get the ID of the bucket where Object Storage will deliver reports:
>
>    ```bash theme={null}
>    export DESTINATION_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <destination_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 3. Create an inventory configuration:
>
>    ```bash theme={null}
>    nebius storage inventory create \
>      --parent-id $SOURCE_BUCKET_ID \
>      --name <configuration_name> \
>      --destination-bucket-id $DESTINATION_BUCKET_ID \
>      --destination-prefix <destination_prefix> \
>      --source-prefix <source_prefix> \
>      --schedule daily \
>      --output-format csv_gzip \
>      --enabled=true \
>      --noncurrent-versions=true \
>      --optional-fields "last_access,checksum_algorithms"
>    ```
>
>    The command contains the following parameters:
>
>    * `--parent-id`: ID of the bucket where you create the inventory configuration.
>    * `--destination-bucket-id`: ID of the bucket where Object Storage delivers reports. The bucket must be in the same [region](https://docs.nebius.com/overview/regions.md) as the source bucket.
>    * `--destination-prefix` (optional): Prefix that Object Storage adds to the keys of report objects.
>    * `--source-prefix` (optional): Prefix that filters source objects included in the report.
>    * `--schedule`: How often Object Storage generates a report: `daily` or `weekly`.
>    * `--output-format`: Format and compression of report objects: `csv_gzip` or `parquet_snappy`.
>    * `--enabled`: Enables report generation for the inventory configuration. Set it to `true` when you create a configuration that should start generating reports.
>    * `--noncurrent-versions` (optional): Includes noncurrent object versions in the report. Set it to `true` if you want the report to include all object versions. The bucket must have [versioning](https://docs.nebius.com/object-storage/buckets/versioning.md) enabled.
>    * `--optional-fields` (optional): Additional object metadata fields to include in the report. The example exports the last access time and checksum algorithms.

> [tab] Terraform
>
> 1. Add an inventory configuration to your Terraform configuration:
>
>    ```hcl theme={null}
>    resource "nebius_storage_v1_inventory" "inventory" {
>      parent_id             = "<source_bucket_ID>"
>      name                  = "<configuration_name>"
>      destination_bucket_id = "<destination_bucket_ID>"
>      destination_prefix    = "<destination_prefix>"
>      source_prefix         = "<source_prefix>"
>      schedule              = "DAILY"
>      output_format         = "CSV_GZIP"
>      enabled               = true
>      noncurrent_versions   = true
>      optional_fields       = ["LAST_ACCESS", "CHECKSUM_ALGORITHMS"]
>    }
>    ```
>
>    The configuration contains the following arguments:
>
>    * `parent_id`: ID of the bucket where you create the inventory configuration.
>    * `destination_bucket_id`: ID of the bucket where Object Storage delivers reports. The bucket must be in the same [region](https://docs.nebius.com/overview/regions.md) as the source bucket.
>    * `destination_prefix` (optional): Prefix that Object Storage adds to the keys of report objects.
>    * `source_prefix` (optional): Prefix that filters source objects included in the report.
>    * `schedule`: How often Object Storage generates a report: `DAILY` or `WEEKLY`.
>    * `output_format`: Format and compression of report objects: `CSV_GZIP` or `PARQUET_SNAPPY`.
>    * `enabled`: Enables report generation for the inventory configuration. Set it to `true` when you create a configuration that should start generating reports.
>    * `noncurrent_versions` (optional): Includes noncurrent object versions in the report. Set it to `true` if you want the report to include all object versions. The bucket must have [versioning](https://docs.nebius.com/object-storage/buckets/versioning.md) enabled.
>    * `optional_fields` (optional): Additional object metadata fields to include in the report. The example exports the last access time and checksum algorithms.
>
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
>
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> 1. Get the ID of the bucket where you want to create an inventory configuration:
>
>    ```go theme={null}
>    sourceService := sdk.Services().Storage().V1().Bucket()
>    sourceBucket, err := sourceService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<source_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(sourceBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> 2. Get the ID of the bucket where Object Storage will deliver reports:
>
>    ```go theme={null}
>    destinationService := sdk.Services().Storage().V1().
>        Bucket()
>    destinationBucket, err := destinationService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<destination_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(destinationBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> 3. Create an inventory configuration:
>
>    ```go theme={null}
>    createService := sdk.Services().Storage().V1().
>        Inventory()
>    createOperation, err := createService.Create(
>        ctx,
>        &storage.CreateInventoryRequest{
>            Metadata: &common.ResourceMetadata{
>                Name:     "<configuration_name>",
>                ParentId: "<source_bucket_ID>",
>            },
>            Spec: &storage.InventorySpec{
>                Enabled:             true,
>                SourcePrefix:        "<source_prefix>",
>                DestinationBucketId: "<destination_bucket_ID>",
>                DestinationPrefix:   "<destination_prefix>",
>                OutputFormat:        storage.InventorySpec_CSV_GZIP,
>                NoncurrentVersions:  true,
>                OptionalFields: []storage.InventorySpec_OptionalField{
>                    storage.InventorySpec_LAST_ACCESS,
>                    storage.InventorySpec_CHECKSUM_ALGORITHMS,
>                },
>                Schedule: storage.InventorySpec_DAILY,
>            },
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = createOperation.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    In the code, set the following parameters:
>
>    * `Metadata.Name`: Configuration name.
>    * `Metadata.ParentId`: ID of the bucket where you create the inventory configuration.
>    * `SourcePrefix`: Prefix that filters source objects included in the report.
>    * `DestinationBucketId`: ID of the bucket where Object Storage delivers reports. The bucket must be in the same [region](https://docs.nebius.com/overview/regions.md) as the source bucket.
>    * `DestinationPrefix`: Prefix that Object Storage adds to the keys of report objects.
>
>    The example sets `Enabled` to `true`, `OutputFormat` to `InventorySpec_CSV_GZIP`, `NoncurrentVersions` to `true`, `OptionalFields` to `InventorySpec_LAST_ACCESS` and `InventorySpec_CHECKSUM_ALGORITHMS`, and `Schedule` to `InventorySpec_DAILY`.

> [tab] Python SDK
>
> 1. Get the ID of the bucket where you want to create an inventory configuration:
>
>    ```python theme={null}
>    source_service = BucketServiceClient(sdk)
>    source_bucket = await source_service.get_by_name(
>        GetBucketByNameRequest(name="<source_bucket_name>"),
>    )
>    print(source_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Get the ID of the bucket where Object Storage will deliver reports:
>
>    ```python theme={null}
>    destination_service = BucketServiceClient(sdk)
>    destination_bucket = await destination_service.get_by_name(
>        GetBucketByNameRequest(
>            name="<destination_bucket_name>",
>        ),
>    )
>    print(destination_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 3. Create an inventory configuration:
>
>    ```python theme={null}
>    create_service = InventoryServiceClient(sdk)
>    create_operation = await create_service.create(
>        CreateInventoryRequest(
>            metadata=ResourceMetadata(
>                name="<configuration_name>",
>                parent_id="<source_bucket_ID>",
>            ),
>            spec=InventorySpec(
>                enabled=True,
>                source_prefix="<source_prefix>",
>                destination_bucket_id="<destination_bucket_ID>",
>                destination_prefix="<destination_prefix>",
>                output_format=InventorySpec.OutputFormat.CSV_GZIP,
>                noncurrent_versions=True,
>                optional_fields=[
>                    InventorySpec.OptionalField.LAST_ACCESS,
>                    InventorySpec.OptionalField.CHECKSUM_ALGORITHMS,
>                ],
>                schedule=InventorySpec.Schedule.DAILY,
>            ),
>        ),
>    )
>    await create_operation.wait()
>    ```
>
>    In the code, set the following parameters:
>
>    * `metadata.name`: Configuration name.
>    * `metadata.parent_id`: ID of the bucket where you create the inventory configuration.
>    * `source_prefix`: Prefix that filters source objects included in the report.
>    * `destination_bucket_id`: ID of the bucket where Object Storage delivers reports. The bucket must be in the same [region](https://docs.nebius.com/overview/regions.md) as the source bucket.
>    * `destination_prefix`: Prefix that Object Storage adds to the keys of report objects.
>
>    The example sets `enabled` to `True`, `output_format` to `InventorySpec.OutputFormat.CSV_GZIP`, `noncurrent_versions` to `True`, `optional_fields` to `InventorySpec.OptionalField.LAST_ACCESS` and `InventorySpec.OptionalField.CHECKSUM_ALGORITHMS`, and `schedule` to `InventorySpec.Schedule.DAILY`.

> [tab] JavaScript SDK
>
> 1. Get the ID of the bucket where you want to create an inventory configuration:
>
>    ```ts theme={null}
>    const sourceService = new BucketService(sdk);
>    const sourceBucket = await sourceService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<source_bucket_name>",
>      }),
>    ).result;
>    console.log(sourceBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Get the ID of the bucket where Object Storage will deliver reports:
>
>    ```ts theme={null}
>    const destinationService = new BucketService(sdk);
>    const destinationBucket = await destinationService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<destination_bucket_name>",
>      }),
>    ).result;
>    console.log(destinationBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 3. Create an inventory configuration:
>
>    ```ts theme={null}
>    const createService = new InventoryService(sdk);
>    const createOperation = await createService.create(
>      CreateInventoryRequest.create({
>        metadata: ResourceMetadata.create({
>          name: "<configuration_name>",
>          parentId: "<source_bucket_ID>",
>        }),
>        spec: InventorySpec.create({
>          enabled: true,
>          sourcePrefix: "<source_prefix>",
>          destinationBucketId: "<destination_bucket_ID>",
>          destinationPrefix: "<destination_prefix>",
>          outputFormat: InventorySpec_OutputFormat.CSV_GZIP,
>          noncurrentVersions: true,
>          optionalFields: [
>            InventorySpec_OptionalField.LAST_ACCESS,
>            InventorySpec_OptionalField.CHECKSUM_ALGORITHMS,
>          ],
>          schedule: InventorySpec_Schedule.DAILY,
>        }),
>      }),
>    ).result;
>    await createOperation.wait();
>    ```
>
>    In the code, set the following parameters:
>
>    * `metadata.name`: Configuration name.
>    * `metadata.parentId`: ID of the bucket where you create the inventory configuration.
>    * `sourcePrefix`: Prefix that filters source objects included in the report.
>    * `destinationBucketId`: ID of the bucket where Object Storage delivers reports. The bucket must be in the same [region](https://docs.nebius.com/overview/regions.md) as the source bucket.
>    * `destinationPrefix`: Prefix that Object Storage adds to the keys of report objects.
>
>    The example sets `enabled` to `true`, `outputFormat` to `InventorySpec_OutputFormat.CSV_GZIP`, `noncurrentVersions` to `true`, `optionalFields` to `InventorySpec_OptionalField.LAST_ACCESS` and `InventorySpec_OptionalField.CHECKSUM_ALGORITHMS`, and `schedule` to `InventorySpec_Schedule.DAILY`.

> [!NOTE]
>
> To report on all object versions, [enable versioning](https://docs.nebius.com/object-storage/buckets/versioning.md) in the bucket where you want to create an inventory configuration. Otherwise, the report will only list current versions.

## How to view inventory configurations

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object 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.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the bucket whose inventory configurations you want to view:
>
>    ```bash theme={null}
>    export SOURCE_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <source_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 2. List inventory configurations:
>
>    ```bash theme={null}
>    nebius storage inventory list --parent-id $SOURCE_BUCKET_ID
>    ```
>
> 3. To see all parameters of a specific configuration, get it by name:
>
>    ```bash theme={null}
>    nebius storage inventory get-by-name \
>      --parent-id $SOURCE_BUCKET_ID \
>      --name <configuration_name>
>    ```

> [tab] Terraform
>
> With Terraform, you can retrieve a specific inventory configuration by name or ID. The following example shows how to retrieve it by name.
>
> 1. Add a data source for the inventory configuration:
>
>    ```hcl theme={null}
>    data "nebius_storage_v1_inventory" "inventory" {
>      parent_id = "<source_bucket_ID>"
>      name      = "<configuration_name>"
>    }
>
>    output "inventory_configuration" {
>      value = data.nebius_storage_v1_inventory.inventory
>    }
>    ```
>
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
>
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> 1. Get the ID of the bucket whose inventory configurations you want to view:
>
>    ```go theme={null}
>    sourceService := sdk.Services().Storage().V1().Bucket()
>    sourceBucket, err := sourceService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<source_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(sourceBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> 2. List inventory configurations:
>
>    ```go theme={null}
>    listService := sdk.Services().Storage().V1().Inventory()
>    inventories, err := listService.List(
>        ctx,
>        &storage.ListInventoriesRequest{
>            ParentId: "<source_bucket_ID>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(inventories)
>    ```
>
>    In the code, set `ParentId` to the bucket ID. The code prints the list.
>
> 3. To see all parameters of a specific configuration, get it by name:
>
>    ```go theme={null}
>    getService := sdk.Services().Storage().V1().Inventory()
>    inventory, err := getService.GetByName(
>        ctx,
>        &common.GetByNameRequest{
>            ParentId: "<source_bucket_ID>",
>            Name:     "<configuration_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(inventory)
>    ```
>
>    In the code, set `ParentId` to the bucket ID and `Name` to the configuration name. `Name` is the name you gave the configuration when you created it. The list from the previous step also shows this name. The code prints the configuration.

> [tab] Python SDK
>
> 1. Get the ID of the bucket whose inventory configurations you want to view:
>
>    ```python theme={null}
>    source_service = BucketServiceClient(sdk)
>    source_bucket = await source_service.get_by_name(
>        GetBucketByNameRequest(name="<source_bucket_name>"),
>    )
>    print(source_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. List inventory configurations:
>
>    ```python theme={null}
>    list_service = InventoryServiceClient(sdk)
>    inventories = await list_service.list(
>        ListInventoriesRequest(parent_id="<source_bucket_ID>"),
>    )
>    print(inventories)
>    ```
>
>    In the code, set `parent_id` to the bucket ID. The code prints the list.
>
> 3. To see all parameters of a specific configuration, get it by name:
>
>    ```python theme={null}
>    get_service = InventoryServiceClient(sdk)
>    inventory = await get_service.get_by_name(
>        GetByNameRequest(
>            parent_id="<source_bucket_ID>",
>            name="<configuration_name>",
>        ),
>    )
>    print(inventory)
>    ```
>
>    In the code, set `parent_id` to the bucket ID and `name` to the configuration name. `name` is the name you gave the configuration when you created it. The list from the previous step also shows this name. The code prints the configuration.

> [tab] JavaScript SDK
>
> 1. Get the ID of the bucket whose inventory configurations you want to view:
>
>    ```ts theme={null}
>    const sourceService = new BucketService(sdk);
>    const sourceBucket = await sourceService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<source_bucket_name>",
>      }),
>    ).result;
>    console.log(sourceBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. List inventory configurations:
>
>    ```ts theme={null}
>    const listService = new InventoryService(sdk);
>    const inventories = await listService.list(
>      ListInventoriesRequest.create({
>        parentId: "<source_bucket_ID>",
>      }),
>    ).result;
>    console.log(inventories);
>    ```
>
>    In the code, set `parentId` to the bucket ID. The code prints the list.
>
> 3. To see all parameters of a specific configuration, get it by name:
>
>    ```ts theme={null}
>    const getService = new InventoryService(sdk);
>    const inventory = await getService.getByName(
>      GetByNameRequest.create({
>        parentId: "<source_bucket_ID>",
>        name: "<configuration_name>",
>      }),
>    ).result;
>    console.log(inventory);
>    ```
>
>    In the code, set `parentId` to the bucket ID and `name` to the configuration name. `name` is the name you gave the configuration when you created it. The list from the previous step also shows this name. The code prints the configuration.

## 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.

> [!NOTE]
>
> 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.

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object 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](https://docs.nebius.com/object-storage/buckets/inventory.md#where-object-storage-delivers-reports).
> 4. [Download](https://docs.nebius.com/object-storage/objects/upload-download.md#how-to-download-web-console) the report objects.

> [tab] AWS CLI
>
> 1. Make sure that the [AWS CLI is configured](https://docs.nebius.com/object-storage/interfaces/aws-cli.md#configuring-aws-cli) to work with Object Storage.
> 2. Download a report object:
>
>    ```sh theme={null}
>    aws s3 cp \
>      s3://<destination_bucket_name>/<destination_prefix>/<bucket_name>/<configuration_name>/data/<inventory_file> \
>      <local/destination/path/>
>    ```
>
>    Repeat this command for every object listed in the `files` array of the `manifest.json` file.
>
>    For more information about downloading objects, see [Uploading and downloading objects in Object Storage](https://docs.nebius.com/object-storage/objects/upload-download.md#how-to-download-aws-cli).

> [!TIP]
>
> 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

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object 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**.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```bash theme={null}
>    export SOURCE_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <source_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 2. Get the inventory configuration ID:
>
>    ```bash theme={null}
>    export INVENTORY_ID=$(nebius storage inventory get-by-name \
>      --parent-id $SOURCE_BUCKET_ID \
>      --name <configuration_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 3. Update the inventory configuration:
>
>    ```bash theme={null}
>    nebius storage inventory update \
>      --id $INVENTORY_ID \
>      --destination-prefix <new_destination_prefix> \
>      --schedule weekly \
>      --output-format parquet_snappy
>    ```
>
>    In the command, add only the parameters that you want to change.

> [tab] Terraform
>
> 1. In your Terraform configuration, change the arguments of the corresponding `nebius_storage_v1_inventory` resource. For example:
>
>    ```hcl theme={null}
>    resource "nebius_storage_v1_inventory" "inventory" {
>      parent_id             = "<source_bucket_ID>"
>      name                  = "<configuration_name>"
>      destination_bucket_id = "<destination_bucket_ID>"
>      destination_prefix    = "<new_destination_prefix>"
>      source_prefix         = "<source_prefix>"
>      schedule              = "WEEKLY"
>      output_format         = "PARQUET_SNAPPY"
>      enabled               = true
>      noncurrent_versions   = true
>      optional_fields       = ["LAST_ACCESS", "CHECKSUM_ALGORITHMS"]
>    }
>    ```
>
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
>
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```go theme={null}
>    sourceService := sdk.Services().Storage().V1().Bucket()
>    sourceBucket, err := sourceService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<source_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(sourceBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> 2. Update the inventory configuration:
>
>    ```go theme={null}
>    updateService := sdk.Services().Storage().V1().
>        Inventory()
>    updateInventory, err := updateService.GetByName(
>        ctx,
>        &common.GetByNameRequest{
>            ParentId: "<source_bucket_ID>",
>            Name:     "<configuration_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    updateInventory.Spec.DestinationPrefix =
>        "<new_destination_prefix>"
>    updateInventory.Spec.Schedule = storage.InventorySpec_WEEKLY
>    updateInventory.Spec.OutputFormat =
>        storage.InventorySpec_PARQUET_SNAPPY
>    updateOperation, err := updateService.Update(
>        ctx,
>        &storage.UpdateInventoryRequest{
>            Metadata: updateInventory.Metadata,
>            Spec:     updateInventory.Spec,
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = updateOperation.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    The sample gets the configuration by `ParentId` and `Name`, then changes `DestinationPrefix`, `Schedule`, and `OutputFormat`. `Name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-go-sdk) also shows this name. The example sets `Schedule` to `InventorySpec_WEEKLY` and `OutputFormat` to `InventorySpec_PARQUET_SNAPPY`. Other settings stay as they are on the configuration.

> [tab] Python SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```python theme={null}
>    source_service = BucketServiceClient(sdk)
>    source_bucket = await source_service.get_by_name(
>        GetBucketByNameRequest(name="<source_bucket_name>"),
>    )
>    print(source_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Update the inventory configuration:
>
>    ```python theme={null}
>    update_service = InventoryServiceClient(sdk)
>    update_inventory = await update_service.get_by_name(
>        GetByNameRequest(
>            parent_id="<source_bucket_ID>",
>            name="<configuration_name>",
>        ),
>    )
>    update_inventory.spec.destination_prefix = (
>        "<new_destination_prefix>"
>    )
>    update_inventory.spec.schedule = InventorySpec.Schedule.WEEKLY
>    update_inventory.spec.output_format = (
>        InventorySpec.OutputFormat.PARQUET_SNAPPY
>    )
>    update_operation = await update_service.update(
>        UpdateInventoryRequest(
>            metadata=update_inventory.metadata,
>            spec=update_inventory.spec,
>        ),
>    )
>    await update_operation.wait()
>    ```
>
>    The sample gets the configuration by `parent_id` and `name`, then changes `destination_prefix`, `schedule`, and `output_format`. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-python-sdk) also shows this name. The example sets `schedule` to `InventorySpec.Schedule.WEEKLY` and `output_format` to `InventorySpec.OutputFormat.PARQUET_SNAPPY`. Other settings stay as they are on the configuration.

> [tab] JavaScript SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```ts theme={null}
>    const sourceService = new BucketService(sdk);
>    const sourceBucket = await sourceService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<source_bucket_name>",
>      }),
>    ).result;
>    console.log(sourceBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Update the inventory configuration:
>
>    ```ts theme={null}
>    const updateService = new InventoryService(sdk);
>    const updateInventory = await updateService.getByName(
>      GetByNameRequest.create({
>        parentId: "<source_bucket_ID>",
>        name: "<configuration_name>",
>      }),
>    ).result;
>    updateInventory.spec.destinationPrefix =
>      "<new_destination_prefix>";
>    updateInventory.spec.schedule = InventorySpec_Schedule.WEEKLY;
>    updateInventory.spec.outputFormat =
>      InventorySpec_OutputFormat.PARQUET_SNAPPY;
>    const updateOperation = await updateService.update(
>      UpdateInventoryRequest.create({
>        metadata: updateInventory.metadata,
>        spec: updateInventory.spec,
>      }),
>    ).result;
>    await updateOperation.wait();
>    ```
>
>    The sample gets the configuration by `parentId` and `name`, then changes `destinationPrefix`, `schedule`, and `outputFormat`. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-javascript-sdk) also shows this name. The example sets `schedule` to `InventorySpec_Schedule.WEEKLY` and `outputFormat` to `InventorySpec_OutputFormat.PARQUET_SNAPPY`. Other settings stay as they are on the configuration.

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.

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object 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.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```bash theme={null}
>    export SOURCE_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <source_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 2. Get the inventory configuration ID:
>
>    ```bash theme={null}
>    export INVENTORY_ID=$(nebius storage inventory get-by-name \
>      --parent-id $SOURCE_BUCKET_ID \
>      --name <configuration_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 3. Run one of the following commands:
>
>    * To stop generating reports:
>
>      ```bash theme={null}
>      nebius storage inventory update \
>        --id $INVENTORY_ID \
>        --enabled=false
>      ```
>
>    * To resume generating reports:
>
>      ```bash theme={null}
>      nebius storage inventory update \
>        --id $INVENTORY_ID \
>        --enabled=true
>      ```

> [tab] Terraform
>
> 1. In the corresponding `nebius_storage_v1_inventory` resource, change the `enabled` argument:
>
>    * To stop generating reports, set `enabled` to `false`:
>
>      ```hcl theme={null}
>      resource "nebius_storage_v1_inventory" "inventory" {
>        parent_id             = "<source_bucket_ID>"
>        name                  = "<configuration_name>"
>        destination_bucket_id = "<destination_bucket_ID>"
>        destination_prefix    = "<destination_prefix>"
>        source_prefix         = "<source_prefix>"
>        schedule              = "DAILY"
>        output_format         = "CSV_GZIP"
>        enabled               = false
>        noncurrent_versions   = true
>        optional_fields       = ["LAST_ACCESS", "CHECKSUM_ALGORITHMS"]
>      }
>      ```
>
>    * To resume generating reports, set `enabled` to `true`:
>
>      ```hcl theme={null}
>      resource "nebius_storage_v1_inventory" "inventory" {
>        parent_id             = "<source_bucket_ID>"
>        name                  = "<configuration_name>"
>        destination_bucket_id = "<destination_bucket_ID>"
>        destination_prefix    = "<destination_prefix>"
>        source_prefix         = "<source_prefix>"
>        schedule              = "DAILY"
>        output_format         = "CSV_GZIP"
>        enabled               = true
>        noncurrent_versions   = true
>        optional_fields       = ["LAST_ACCESS", "CHECKSUM_ALGORITHMS"]
>      }
>      ```
>
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
>
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```go theme={null}
>    sourceService := sdk.Services().Storage().V1().Bucket()
>    sourceBucket, err := sourceService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<source_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(sourceBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> The samples get the configuration by `ParentId` and `Name`. `Name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-go-sdk) also shows this name.
>
> * To stop generating reports, set `Enabled` to `false`:
>
>   ```go theme={null}
>   stopService := sdk.Services().Storage().V1().Inventory()
>   stopInventory, err := stopService.GetByName(
>       ctx,
>       &common.GetByNameRequest{
>           ParentId: "<source_bucket_ID>",
>           Name:     "<configuration_name>",
>       },
>   )
>   if err != nil {
>       return err
>   }
>   stopInventory.Spec.Enabled = false
>   stopOperation, err := stopService.Update(
>       ctx,
>       &storage.UpdateInventoryRequest{
>           Metadata: stopInventory.Metadata,
>           Spec:     stopInventory.Spec,
>       },
>   )
>   if err != nil {
>       return err
>   }
>   if _, err = stopOperation.Wait(ctx); err != nil {
>       return err
>   }
>   ```
>
> * To resume generating reports, set `Enabled` to `true`:
>
>   ```go theme={null}
>   resumeService := sdk.Services().Storage().V1().Inventory()
>   resumeInventory, err := resumeService.GetByName(
>       ctx,
>       &common.GetByNameRequest{
>           ParentId: "<source_bucket_ID>",
>           Name:     "<configuration_name>",
>       },
>   )
>   if err != nil {
>       return err
>   }
>   resumeInventory.Spec.Enabled = true
>   resumeOperation, err := resumeService.Update(
>       ctx,
>       &storage.UpdateInventoryRequest{
>           Metadata: resumeInventory.Metadata,
>           Spec:     resumeInventory.Spec,
>       },
>   )
>   if err != nil {
>       return err
>   }
>   if _, err = resumeOperation.Wait(ctx); err != nil {
>       return err
>   }
>   ```

> [tab] Python SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```python theme={null}
>    source_service = BucketServiceClient(sdk)
>    source_bucket = await source_service.get_by_name(
>        GetBucketByNameRequest(name="<source_bucket_name>"),
>    )
>    print(source_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> The samples get the configuration by `parent_id` and `name`. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-python-sdk) also shows this name.
>
> * To stop generating reports, set `enabled` to `False`:
>
>   ```python theme={null}
>   stop_service = InventoryServiceClient(sdk)
>   stop_inventory = await stop_service.get_by_name(
>       GetByNameRequest(
>           parent_id="<source_bucket_ID>",
>           name="<configuration_name>",
>       ),
>   )
>   stop_inventory.spec.enabled = False
>   stop_operation = await stop_service.update(
>       UpdateInventoryRequest(
>           metadata=stop_inventory.metadata,
>           spec=stop_inventory.spec,
>       ),
>   )
>   await stop_operation.wait()
>   ```
>
> * To resume generating reports, set `enabled` to `True`:
>
>   ```python theme={null}
>   resume_service = InventoryServiceClient(sdk)
>   resume_inventory = await resume_service.get_by_name(
>       GetByNameRequest(
>           parent_id="<source_bucket_ID>",
>           name="<configuration_name>",
>       ),
>   )
>   resume_inventory.spec.enabled = True
>   resume_operation = await resume_service.update(
>       UpdateInventoryRequest(
>           metadata=resume_inventory.metadata,
>           spec=resume_inventory.spec,
>       ),
>   )
>   await resume_operation.wait()
>   ```

> [tab] JavaScript SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```ts theme={null}
>    const sourceService = new BucketService(sdk);
>    const sourceBucket = await sourceService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<source_bucket_name>",
>      }),
>    ).result;
>    console.log(sourceBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> The samples get the configuration by `parentId` and `name`. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-javascript-sdk) also shows this name.
>
> * To stop generating reports, set `enabled` to `false`:
>
>   ```ts theme={null}
>   const stopService = new InventoryService(sdk);
>   const stopInventory = await stopService.getByName(
>     GetByNameRequest.create({
>       parentId: "<source_bucket_ID>",
>       name: "<configuration_name>",
>     }),
>   ).result;
>   stopInventory.spec.enabled = false;
>   const stopOperation = await stopService.update(
>     UpdateInventoryRequest.create({
>       metadata: stopInventory.metadata,
>       spec: stopInventory.spec,
>     }),
>   ).result;
>   await stopOperation.wait();
>   ```
>
> * To resume generating reports, set `enabled` to `true`:
>
>   ```ts theme={null}
>   const resumeService = new InventoryService(sdk);
>   const resumeInventory = await resumeService.getByName(
>     GetByNameRequest.create({
>       parentId: "<source_bucket_ID>",
>       name: "<configuration_name>",
>     }),
>   ).result;
>   resumeInventory.spec.enabled = true;
>   const resumeOperation = await resumeService.update(
>     UpdateInventoryRequest.create({
>       metadata: resumeInventory.metadata,
>       spec: resumeInventory.spec,
>     }),
>   ).result;
>   await resumeOperation.wait();
>   ```

## How to delete an inventory configuration

> [!WARNING]
>
> Deleting an inventory configuration is permanent. To keep a configuration but stop generating new reports, [stop it](#how-to-stop-or-resume-an-inventory-configuration) instead.

> [tab] Web console
>
> 1. In the sidebar, go to  **Storage** → **Object 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**.

> [tab] Nebius AI Cloud CLI
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```bash theme={null}
>    export SOURCE_BUCKET_ID=$(nebius storage bucket get-by-name \
>      --name <source_bucket_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 2. Get the inventory configuration ID:
>
>    ```bash theme={null}
>    export INVENTORY_ID=$(nebius storage inventory get-by-name \
>      --parent-id $SOURCE_BUCKET_ID \
>      --name <configuration_name> \
>      --format jsonpath='{.metadata.id}')
>    ```
>
> 3. Delete the inventory configuration:
>
>    ```bash theme={null}
>    nebius storage inventory delete --id $INVENTORY_ID
>    ```

> [tab] Terraform
>
> 1. Remove the corresponding `nebius_storage_v1_inventory` resource from the Terraform configuration.
> 2. Check that the configuration is correct:
>    ```bash theme={null}
>    terraform validate
>    ```
> 3. Apply the changes:
>    ```bash theme={null}
>    terraform apply
>    ```

> [tab] Go SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```go theme={null}
>    sourceService := sdk.Services().Storage().V1().Bucket()
>    sourceBucket, err := sourceService.GetByName(
>        ctx,
>        &storage.GetBucketByNameRequest{
>            Name: "<source_bucket_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    fmt.Println(sourceBucket.GetMetadata().GetId())
>    ```
>
>    In the code, set `Name` to the bucket name. The code prints the bucket ID.
>
> 2. Delete the inventory configuration:
>
>    ```go theme={null}
>    deleteService := sdk.Services().Storage().V1().Inventory()
>    deleteInventory, err := deleteService.GetByName(
>        ctx,
>        &common.GetByNameRequest{
>            ParentId: "<source_bucket_ID>",
>            Name:     "<configuration_name>",
>        },
>    )
>    if err != nil {
>        return err
>    }
>    deleteOperation, err := deleteService.Delete(
>        ctx,
>        &storage.DeleteInventoryRequest{
>            Id: deleteInventory.GetMetadata().GetId(),
>        },
>    )
>    if err != nil {
>        return err
>    }
>    if _, err = deleteOperation.Wait(ctx); err != nil {
>        return err
>    }
>    ```
>
>    The sample gets the configuration by `ParentId` and `Name`, then deletes it by the ID from that response. `Name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-go-sdk) also shows this name.

> [tab] Python SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```python theme={null}
>    source_service = BucketServiceClient(sdk)
>    source_bucket = await source_service.get_by_name(
>        GetBucketByNameRequest(name="<source_bucket_name>"),
>    )
>    print(source_bucket.metadata.id)
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Delete the inventory configuration:
>
>    ```python theme={null}
>    delete_service = InventoryServiceClient(sdk)
>    delete_inventory = await delete_service.get_by_name(
>        GetByNameRequest(
>            parent_id="<source_bucket_ID>",
>            name="<configuration_name>",
>        ),
>    )
>    delete_operation = await delete_service.delete(
>        DeleteInventoryRequest(id=delete_inventory.metadata.id),
>    )
>    await delete_operation.wait()
>    ```
>
>    The sample gets the configuration by `parent_id` and `name`, then deletes it by the ID from that response. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-python-sdk) also shows this name.

> [tab] JavaScript SDK
>
> 1. Get the ID of the bucket where the inventory configuration is created:
>
>    ```ts theme={null}
>    const sourceService = new BucketService(sdk);
>    const sourceBucket = await sourceService.getByName(
>      GetBucketByNameRequest.create({
>        name: "<source_bucket_name>",
>      }),
>    ).result;
>    console.log(sourceBucket.metadata?.id);
>    ```
>
>    In the code, set `name` to the bucket name. The code prints the bucket ID.
>
> 2. Delete the inventory configuration:
>
>    ```ts theme={null}
>    const deleteService = new InventoryService(sdk);
>    const deleteInventory = await deleteService.getByName(
>      GetByNameRequest.create({
>        parentId: "<source_bucket_ID>",
>        name: "<configuration_name>",
>      }),
>    ).result;
>    const deleteOperation = await deleteService.delete(
>      DeleteInventoryRequest.create({
>        id: deleteInventory.metadata.id,
>      }),
>    ).result;
>    await deleteOperation.wait();
>    ```
>
>    The sample gets the configuration by `parentId` and `name`, then deletes it by the ID from that response. `name` is the name you gave the configuration when you created it. [Listing the configurations](#how-to-view-inventory-configurations-javascript-sdk) also shows this name.

Object Storage doesn't delete the reports that it has already delivered to the destination bucket. To remove them, [delete these objects](https://docs.nebius.com/object-storage/objects/manage.md#how-to-delete-objects) or [configure lifecycle rules](https://docs.nebius.com/object-storage/objects/configure-lifecycle-rules.md) for them.
