Configure object tagging

Last updated:2021-04-07 21:41:43

Kingsoft Cloud Standard Storage Service (KS3) allows you to classify the stored objects by using object tagging. Object tagging uses a key-value pair to tag an object. You can add tags when you upload objects or add tags to existing objects.

Note:

Kingsoft Cloud charges you for using object tagging. For more information, see Billing method and measurement description.

Background

Object tagging uses a key-value pair to tag an object. You can manage multiple objects with the same tag. For example, you can configure lifecycle rules for objects with the same tag. For more information, see Object Tagging.

A maximum of 10 tags can be set for each object. Each object tag must have a unique tag key.

Rules of setting a key:

  • A key can contain letters, digits, spaces, and the following special characters: plus signs (+), minus signs (-), equal signs (=), periods (.), underscores (_), colons (😃, and forward slashes (/).

  • A key cannot start or end with a space or be left empty. It can be 1 to 128 characters in length and is case-sensitive.

  • Do not start a key with the reserved field of the system, that is, ksc: or kss:.

Rules of setting a value:

  • A value can contain letters, digits, spaces, and the following special characters: plus signs (+), minus signs (-), equal signs (=), periods (.), underscores (_), colons (😃, and forward slashes (/).

  • A value cannot start or end with a space. It can be 1 to 256 characters in length and is case-sensitive.

  • Only the bucket owner and authorized users have read and write permissions on object tags.

  • Object tags are also replicated to the destination bucket during cross-region replication.

Procedure

Configure tags for an object:
  1. Log in to the KS3 console.
  2. In the left navigation pane, click Bucket. On the Bucket list page, click the target bucket name.
  3. On the Bucket Details page, click the Content Management tab.
  4. Find the target object and choose More > Tag in the Action column.
  5. In the Tag dialog box, configure tags for the object.
  6. Click OK.
Configure tags for multiple objects:
  1. Log in to the KS3 console.
  2. In the left navigation pane, click Bucket. On the Bucket list page, click the target bucket name.
  3. On the Bucket Details page, click the Content Management tab.
  4. Select the target objects and choose Batch operation > Tag.

Note: When you manage tags in batches, the existing tags of objects will be replaced with new tags. Before you manage tags, make sure that no impact will be made on your business.

  1. In the Tag dialog box, configure tags for the objects.

  2. Click OK.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

  • Insufficient
  • Outdated
  • Unclear or awkward
  • Redundant or clumsy
  • Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈