OSS allows you to configure object tagging to classify objects. Object tagging uses a key-value pair to identify objects. You can perform operations on multiple objects that have the same tag. For example, you can configure lifecycle rules for objects that have the same tag.
- A maximum of 10 tags can be set for each object. Tags associated with an object must have unique tag keys.
- A tag key can be a maximum of 128 bytes in length. Each tag value can be a maximum of 256 bytes in length.
- Keys and values are case-sensitive.
- The key and value of the tag can contain letters, digits, spaces, and special characters
+ ‑ = . _ : /
- Only the bucket owner and authorized users have the read and write permissions on object tags. These permissions are independent of object ACLs.
- During cross-region replication, object tags are also replicated to the destination bucket.
- Log on to the OSS console.
- In the left-side bucket list, click the name of a bucket to go to the Overview tab.
- Click the Files tab.
- Move the pointer over More in the Actions column corresponding to an object and choose Tagging from the drop-down list.
- In the Tagging dialog box that appears, configure tags.
- Click OK.