All Products
Search
Document Center

Resource Management:Add a custom tag

Last Updated:Jul 31, 2023

If multiple cloud resources that are associated with each other exist within your account, you can add custom tags to these resources to categorize the resources. This way, you can manage the resources in a centralized manner.

Background information

  • Many Alibaba Cloud services support tags. For more information, see Services that work with Tag.

  • You can add up to 20 tags to a resource. If the number of tags that are added to a resource reaches the upper limit, you must remove some of the tags before you add new tags.

  • You can use one of the following methods to add a tag to a resource:

    • Perform operations in a console: You can add tags to resources on the Tags page of the Resource Management console or in the consoles of Alibaba Cloud services.

      • This topic describes how to add a tag to a resource on the Tags page of the Resource Management console.

      • For more information about how to add a tag in the console of an Alibaba Cloud service, see the documentation of the Alibaba Cloud service.

    • Use an API operation: You can call the TagResources operation of the Tag service or the related operation of an Alibaba Cloud service to add a tag to a resource.

      • For more information about the TagResources operation of the Tag service, see TagResources.

      • For more information about the related operation of an Alibaba Cloud service, see the documentation of the Alibaba Cloud service.

    • Use Operation Orchestration Service (OOS): You can use OOS to add tags to multiple resources at a time. For more information, see Use OOS to add tags to multiple ECS instances at a time.

Procedure

  1. Log on to the Resource Management console. The Tags page appears.

  2. In the top navigation bar, select a region.

  3. On the Custom Tags tab, click Create Custom Tags.

  4. In the Create Custom Tags dialog box, create a tag or select an existing tag.

    • Tag key: required. You can select an existing tag key or enter a new tag key. You can perform a fuzzy match by prefix and add a maximum of 10 tag keys at a time.

      Each tag key can contain up to 128 characters in length and cannot contain http:// or https://. It cannot start with acs: or aliyun.

    • Tag value: optional. You can select an existing tag value or enter a new tag value.

      Each tag value can contain up to 128 characters in length and cannot contain http:// or https://. It cannot start with acs: or aliyun.

    Note

    If you want to add a tag, select an existing tag key and an existing tag value. If you want to create a tag, enter a new tag key and a new tag value.

  5. Click Next.

  6. Configure the Method to Specify Resources parameter. Then, select resources or enter resource IDs.

    • Select from Resource List: allows you to select resources from the resource list.

    • Enter Resource IDs: allows you to configure the Service parameter and enter resource IDs. Separate multiple IDs with commas (,).

  7. Click OK.

Result

On the Custom Tags tab, you can view the tag that is added to the resources.