This topic describes how to query cloud resources that are bound with tags. You can use one of the following methods to query resources:

Query resources on the Tags page of the Resource Management console

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

  1. Log on to the Resource Management console. The Tags page appears.
  2. In the Region section, select the region where the tag you want to query resides.
  3. Find the tag and click the tag key in the Tag Key column.
  4. Click the tag value. On the Resources tab, view the information about cloud resources.

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. This section uses Elastic Compute Service (ECS) as an example.

  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 bound.

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 that are bound with the tags specified by this parameter.
  • Tag-related API operations provided by Alibaba Cloud services: Call the tag-related API operation provided by each service to query the resources that are bound with specific tags. For more information, see Alibaba Cloud services that support tags.