This topic describes how to query cloud resources to which a specific tag is added. You can use the methods provided in this topic to query cloud resources.

Query resources on the Tag page of the Resource Management console

For an Alibaba Cloud service that supports tags, you can query resources by tag on the Tag page of the Resource Management console.

  1. Log on to the Resource Management console. The Tag page appears.
  2. In the top navigation bar, select a region.
  3. Click the Custom Tags, Preset Tags, or System Tags tab.
  4. Find your desired tag and click View Resources in the Action column to view the cloud resources to which the tag is added.

Query resources in the consoles of Alibaba Cloud services

For an Alibaba Cloud service that supports tags, you can query resources by tag in the console of the service. In this example, the Elastic Compute Service (ECS) console is used to query resources.

  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. On the Instances page, click Tags and select a tag key and a tag value.
    If you do not select a tag value, the system displays all ECS instances to which the selected tag key is added.

Query resources by calling a tag-related API operation

For an Alibaba Cloud service that supports tags, you can use a Tag API operation or a tag-related API operation provided by the service to query resources. The following description demonstrates the preceding operations:

  • Tag API operation: Call the ListTagResources operation. Specify the value of the request parameter Tags to query the resources to which the tags specified by this parameter are added.
  • Tag-related API operations provided by Alibaba Cloud services: Call the tag-related API operation provided by each service to query the resources to which specific tags are added. For more information, see Alibaba Cloud services that support tags.

Query resources by using a tag editor

A tag editor is a tool that is used to manage resource tags in a centralized manner. You can use a tag editor to search for resources that belong to different Alibaba Cloud services and reside in different regions.

  1. Log on to the Resource Management console. The Tag page appears.
  2. In the left-side navigation pane, choose Tag > Tag Editor.
  3. In the Search section, specify conditions to search for resources.
    You can specify multiple tags that reside in different regions and are added to different resources to search for resources.
  4. Click Search.
    In the Search Results section, view the resources.