Set Storage Space Inventory
Overview
The storage space inventory is a feature that helps users manage objects in the bucket. According to the user's inventory task configuration, BOS can regularly scan the objects specified by the user in the bucket daily or weekly, output an inventory report, and store it in the user-specified bucket in the CSV format. The CSV file lists the object and its corresponding metadata and records the object attribute information required by the user according to the user's configuration information.
Description:
- At present, this feature is fully available in the East China - Suzhou region, but you need first to enable the whitelist in the other areas. If you want to use it, please submit a Ticket to contact us.
Application Scenarios
The inventory is a feature to help users manage objects in the bucket, which can systematically replace the List API operation of BOS. You can enable the inventory feature to realize (including but not limited to) the following basic purposes:
- Regularly review and output the file list and file-related attributes.
- Simplify and speed up the business workflow through regular scanning, and regularly output the file report by the simple configuration without script implementation.
Set Storage Space Capacity List
- Log in to BOS Management Console.
- Select the bucket to set the permission in the Bucket List on the left, and then click “Bucket Name” to enter the bucket management directory.
- Select the Configuration Management tab in the navbar above.
- Select Advanced Configuration on the Configuration Management page, and then click Add Configuration in the Inventory Configuration area to create an inventory rule.
- Set inventory rules.
Configuration Name | Configuration Description |
---|---|
List status |
|
List name |
|
Inventory storage location |
|
Report inventory prefix |
|
Range of including files |
|
Inventory export cycle |
|
Inventory export format |
|
Descriptions:
- For each bucket, you can create up to 20 inventory rules at the same time. When it exceeds the maximum number of inventory rules, you need to delete the existing rules and recreate them.
- At present, the inventory feature of BOS is available free of charge.
- Edit or delete inventory rules.
You can edit the inventory rules created. For example, set the inventory rules disabled to “Enabled”. You can also delete the inventory rules created. After the deletion of an inventory rule, BOS does not continue to enter the inventory report for you according to this rule.
Inventory Report Content
The output inventory report contains the following content:
Field Description | Description |
---|---|
Bucket | Bucket name |
Key | File name |
Size | File data length |
Etag | Hash of the object. It may be an MD5 digest with Base64 encoded object data, which depends on the object creation method. |
StorageClass | File storage type |
CreateTime | File creation time. Time format: yyyy-mm-ddThh:mm:ssZ . Such as: 2016-09-07T00:00:00Z(UTC) |