Updated on 2024-07-30 GMT+08:00

Tagging an Image

Scenarios

You can use tags to classify images. You can add, modify, or delete image tags, or search for required images by tag in the image list.

  • When adding predefined tags to an image or searching for an image using predefined tags, you must have permission to access the Tag Management Service (TMS).
  • If your organization has pre-configured tag policies for images, you need to add tags to your images based on the policies. If you do not comply with the tag policies, images may fail to be created. Contact the organization administrator to learn more about the tag policies.
    • Each tag consists of a key and a value. The key contains a maximum of 36 characters, and the value contains a maximum of 43 characters. The key cannot be left blank or be an empty string. The value cannot be left blank but can be an empty string.
    • An image can have a maximum of 10 tags.

Constraints

An image can have a maximum of 10 tags.

Add, Delete, and Modify Image Tags

  1. Access the IMS console.
    1. Log in to the management console.
    2. Under Compute, click Image Management Service.

      The IMS console is displayed.

  2. Click the Private Images tab and click the image name to display the image details.
    • To modify an image tag, go to 3.
    • To delete an image tag, go to 4.
    • To add an image tag, go to 5.
  3. Click the Tags tab, locate the target tag, and click Edit in the Operation column. In the displayed dialog box, modify the tag.
  4. Click the Tags tab, locate the target tag, and click Delete in the Operation column. In the displayed dialog box, click Yes.
  5. Click the Tags tab and then Add Tag. In the displayed dialog box, add a tag.

Search for Private Images by Tag

  1. Access the IMS console.
    1. Log in to the management console.
    2. Under Compute, click Image Management Service.

      The IMS console is displayed.

  2. Click the Private Images tab and click the search box above the private image list. Specify tag keys and values under Resource Tag to search for private images.
    Figure 1 Searching for images by tag
    • Neither the tag key nor tag value can be empty. When the tag key and tag value are matched, the system automatically shows your desired private images.
    • You can add multiple tags to search for shared images. The system will display private images that match all tags.