# 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).

#### 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 then Search by Tag.
3. Enter the tag key and value.

   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.

4. Click to add a tag.

   You can add multiple tags to search for private images. The system will display private images that match all tags.

5. Click Search.

   The system searches for private images based on tag keys or tag values.

Parent topic: Managing Private Images