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, please 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.
- 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.
You have created a bucket. For more information, please see Creating Buckets.
Log in to the COS console.
On the left sidebar, click Bucket List.
Click the name of the source bucket that you want to enable inventory for.
Click Basic Configurations > Inventory, and then click Add Inventory.
On the Add Inventory page, configure the following parameters:
Rule Status: whether to enable this inventory rule. Valid values: Enable, Disable.
Inventory Name: name of the published inventory report
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.
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
ETagis not necessarily the MD5 checksum of the object. The value can be different if the uploaded object is encrypted.
Confirm the inventory configurations for the bucket. If there is anything you need to modify, click Previous and modify as needed.
5. Click OK. In this way, COS will publish inventory reports and deliver them to the destination bucket you set daily or weekly.
For more information about the format and content of the generated inventory reports, please see Inventory Overview.
To generate an inventory on the fly, click Generate list on the fly in the Operation column.
If you haven’t configured inventory, you can configure one and then generate an inventory on the fly.