This topic describes how to manage instance tags to help you classify instances by tag.

Limits

Each tag is a key-value pair. Tags have the following limits:
  • Each tag must be attached to an Image Search instance.
  • You can attach up to 20 tags to an instance. Tag names are case-sensitive.
  • The tag keys that are attached to an instance must be unique. If you create a tag whose key is already used, the new tag overwrites the existing tag that uses the same key.
  • If an instance is deleted, the tags that are attached to the instance are deleted.
  • Consider the following limits when you create a tag:
    • The key is required and can be up to 64 characters in length. The key cannot start with aliyun or acs:, or contain http:// and https://. We recommend that you keep the key short.
    • The value is optional and can be up to 128 characters in length. It cannot start with aliyun or acs:, or contain http:// and https://. We recommend that you keep the value short.

Attach a tag

  1. Log on to the Image Search console.
  2. In the left-side navigation pane, click a service type. An instance list appears.
  3. Find the instance to which you want to attach a tag, and move the pointer over the tag management icon in the Tag column.
    Instance tags - tag management icon
  4. Click Edit Tag.
  5. In the Edit Tag dialog box, enter a key and a value. Then, click Add.
    Instance tags - attach a tag
    Note You can also select Existing Tag to attach tags to the specified instance.
  6. Click Disable to exit the Edit Tag dialog box.

Filter instances by tag

  1. Log on to the Image Search console.
  2. In the left-side navigation pane, click a service type. An instance list appears.
  3. On the top of the instance list, click Filter by Tag.
    Filter instances by tag
  4. Select the tag key and the tag value. Then, the system filters the instances based on the selected tag key-value pair.
    Note
    • You can select multiple tags. The logical relationship between the tags is AND.
    • You can also select only keys to filter instances.

Detach a tag

  1. Log on to the Image Search console.
  2. In the left-side navigation pane, click a service type. An instance list appears.
  3. Find the instance to which you want to attach a tag, and move the pointer over the tag management icon in the Tag column.
    Instance tags - tag management icon
  4. Click Edit Tag.
  5. In the Edit Tag dialog box, click × next to a tag in the Attached Tag section to detach the tag.
    Detach a tag
  6. Click Disable to exit the Edit Tag dialog box.