tencent cloud

Feedback

Setting Inventory

Last updated: 2024-01-24 14:39:14

    Overview

    You can enable inventory for your bucket in the COS console. The inventory feature allows you to regularly (daily/weekly) publish inventory reports about the object attributes, configurations, and more. For more information about inventory, see Inventory Overview. The following describes how to enable the inventory feature for a bucket. COS allows you to generate inventories on schedule or on the fly as needed.
    Note:
    You can configure multiple inventory jobs for a single bucket.
    Inventory jobs do not directly read the object content during execution. Instead, they only scan the attribute information such as the object metadata.
    Currently, the inventory feature is not available for Finance Cloud regions.

    Prerequisites

    You have created a bucket. For more information, see Creating a Bucket.

    Directions

    Adding a scheduled inventory

    1. Log in to the COS console.
    2. On the left sidebar, click Bucket List.
    3. Click the name of the source bucket that you want to enable inventory for.
    4. Select Basic Configurations > Inventory on the left and click Add Inventory.
    5. On the Configuration page, you can configure the following items:
    Basic information
    Rule Status: Whether to enable this inventory rule. Valid values: Enable, Disable.
    Inventory Name: Name of the inventory.
    Destination Bucket: Bucket where the inventory is stored. Defaults to the source bucket. The destination bucket must be in the same region as the source bucket.
    Report Prefix (Optional): Prefix selected for the destination bucket. The prefix can be used to group the inventory files in a public location. The default value is used initially.
    Filter
    Scope of the file: Select the scope of the inventory objects, which can be either the entire bucket or a subset of files with the same prefix. For example, to select all files under the 'doc' path in the 'folder' path of the bucket, specify the file prefix as folder/doc.
    Object Version: Whether to include all object versions or only the current version in the inventory. If not set, only the current version will be included.
    Filter Labels (optional): Lists objects with the same tag to the inventory. If this field is not set, no tag will be filtered.
    Filter Time (Optional): Filters only objects modified after the specified time or within the specified period in the inventory. If not set, no time filter will be applied.
    Custom Header Output (Optional): If you want the inventory report to include custom headers of objects, you can enter the required custom headers for output, which only supports x-cos-meta-* headers. If left blank, custom headers will not be output by default.
    Inventory Information: Object information to be included in the inventory report. Options include object size, storage class, ETag, cross-bucket replication status, multipart upload status, last updated time, tag, and CRC-64. If not specified, all options will be selected.
    Note:
    ETag (entity tag) is the hash value of the object. It only reflects changes in the object content but not the object metadata. The value of ETag is not necessarily the MD5 checksum of the object. The value can be different if the uploaded object is encrypted.
    The generated inventory contains the Appid, Bucket, Key, and LastModifiedTime fields by default.
    If versioning is enabled for the bucket, the generated inventory will also contain the VersionId, IsLatest, and IsDeleteMarker fields.
    Output format
    Output Format: The output inventory file is a CSV file compressed with GZIP.
    Generate Lifecycle: Specifies whether to generate the inventory Everyday (default) or Everyweek. For example, an inventory added at 15:00 today will be generated and delivered to the destination bucket before 6:00 tomorrow in most cases. If you select to generate inventories by week, an inventory will be generated every 7 days. For example, if you enable inventory on September 1, then an inventory will be generated on September 2, 9, 16, and so on.
    Inventory Encryption: whether to encrypt the inventory on the server. Options include:
    None: The inventory is not encrypted (default).
    SSE-COS: Encrypt the inventory report using server-side encryption with COS-managed key. For more information, see SSE-COS Encryption in the COS Developer Guide.
    Access authorization: This field needs to be enabled to proceed with the next step. By default, this field is disabled.
    Information confirmation Confirm the bucket inventory configurations. If you need to change anything, click Previous and modify as needed.
    6. Click OK. COS will generate inventory reports daily or weekly and deliver them to the destination bucket you set.
    Note:
    For more information about the format and content of the generated inventory reports, see Inventory Overview.

    Generating an instant inventory

    1. Log in to the COS console.
    2. On the left sidebar, click Bucket List and then click the bucket (source bucket) that you want to enable inventory for.
    3. Click Basic Configurations > Inventory on the left, select an inventory rule, and click More-Generate list on the fly on the right to generate an instant inventory.
    Note:
    To generate an instant inventory, click More-Generate list on the fly in the Operation column.
    If you haven't configured inventory, you can configure one and then generate an instant inventory.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support