The batch operation feature of COS allows you to implement large-scale batch operations on objects in the bucket. Currently, you can perform the following batch operations:
You can put objects to be operated on in an inventory file, which is based on the inventory report generated by the inventory feature (you need to enable Inventory feature first), or you can create one in the specified format. COS batch operation will operate on the objects in batches based on this inventory file. For more information, see Overview.
Log into the COS Console and click Batch Operation on the left sidebar to enter the batch operation management page.
Click Create Job to start creating a batch operation job. Configuration items are described as follows.
Job Region: Select a region for the job to be created. The job region should be the same as the bucket region of the objects to be operated on in your inventory file, otherwise the job will fail. *Chengdu and Chongqing regions are currently in beta test.
Inventory Format: Select a format for the inventory objects. There are two formats:
|Inventory Format||Field||Configuration Instructions|
|COS inventory report||Please select this if the inventory file comes from an inventory report generated by the inventory feature|
|CSV||Ignore||Placeholder field, which can be used when your inventory file contains irregular fields|
|Key||Name of an object in a bucket. If CSV file format is used, the object name is URL-encoded and must be decoded before use|
|VersionId||Object version ID. If versioning is enabled for the bucket, COS assigns a version number to the objects added to the bucket. If you do not want to use the latest object version, you can select a version ID that contains the inventory object|
Inventory Bucket: Select the bucket where the inventory is stored.
Inventory File Path: Enter the inventory file or CSV file path in the format of
directory/manifest.csv, respectively. For example, if you have an inventory stored in the
examplebucket-1250000000 root directory, the inventory path will be
Click Next and the inventory Etag will be displayed, meaning you have selected the correct inventory objects. Then, you will enter the operation configuration page.
Click Next to enter the "Other Configurations" page where you can configure the following items:
To grant batch operation permissions to COS, you need to create a CAM role. For more information on CAM roles, see Role Overview.
Click Next to enter the information check page where you can check the configurations of your batch operation job. If you need to make a change, click the corresponding Modify or Previous. Click OK if everything is correct.
After the batch operation job is created, find the newly created job in the job list and click [OK]. To cancel the job, click [Cancel] on the right.