You can configure object tagging to classify objects. Object tagging uses key-value pairs to identify objects. You can manage multiple objects that have the same tag. For example, you can configure lifecycle rules for objects that have the same tag.

Background information

Object tagging uses key-value pairs to identify objects. The following rules apply to object tagging:
  • 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 a tag can contain letters, digits, spaces, and special characters such as

    + ‑ = . _ : /

  • Only the bucket owner and authorized users have the read and write permissions on object tags. These permissions are independent of the object ACL.
  • During cross-region replication (CRR), object tags are also replicated to the destination bucket.

After you configure object tagging, you can configure lifecycle rules for objects that have a specified tag. For example, you can convert the storage class of objects that have a specified tag, or you can delete objects that have a specified tag. For more information, see Configure lifecycle rules. You can authorize Resource Access Management (RAM) users to access objects that have the same tag. For more information, see Configure object tagging.

Procedure

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click the name of the bucket in which the objects for which you want to configure object tagging are stored.
  3. In the left-side navigation pane, click Files.
  4. Configure tagging for objects.
    1. Select objects for which you want to configure a tag.
      • Configure tagging for objects in unversioned buckets

        Find the object for which you want to configure tagging, and choose More > Tagging in the Actions column.

      • Configure tagging for objects in versioned buckets

        Find the object of a specified version for which you want to configure tagging, and choose More > Tagging in the Actions column.

    2. In the Tagging panel, set Key and Value based on the rules of object tagging.
  5. Click OK.