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

Background information

  • Many Alibaba Cloud services support tags. For more information, see Alibaba Cloud services that support tags.
  • A maximum of 20 tags can be added to a resource. If the number of tags that are added to a resource exceeds 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 Tag 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 Tag 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 References column in Alibaba Cloud services that support tags.
    • 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.
    • 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 resources.

Procedure

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Tag > Tag.
  3. In the top navigation bar, select a region.
  4. On the Custom Tags tab, click Create Custom Tags.
  5. 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 a maximum of 128 characters in length and cannot contain http:// or https://. It cannot start with aliyun or acs:.

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

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

    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.
  6. Click Next.
  7. Specify Product, Resource Type, and Input Types. Then, select resources or enter resource IDs.

    Input Types includes the following options:

    • Select resources: allows you to select resources from the resource list.
    • Enter multiple resource IDs: allows you to enter resource IDs. Separate multiple IDs with commas (,).
  8. Click Confirm.
  9. In the message that appears, click Close.

Result

View the tag that is added to the resources on the Custom Tags tab.