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.
You have created a bucket. For more information, see Creating a Bucket.
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.
In the pop-up window, configure the following information:
a. Basic information
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.
b. Filter
Scope of the file: object scope to apply the inventory rule. The whole bucket is selected by default.
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.
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, and tag. If not specified, all 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 ofETag
is not necessarily the MD5 checksum of the object. The value can be different if the uploaded object is encrypted.
c. Output format
Output: The default value is CSV.
Generate Lifecycle: specifies whether to export 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.
Inventory Encryption: whether to encrypt the inventory on the server. Options include:
Access authorization: This field needs to be enabled to proceed with the next step. By default, this field is disabled.
d. Information confirmation
Confirm the inventory configurations for the bucket. If there is anything you need to modify, click Previous and modify as needed.
Note:For more information about the format and content of the generated inventory reports, see Inventory Overview.
Note: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.
Was this page helpful?