This topic describes how to query resources to which a specific tag is added. You can use the methods provided in this topic 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.
Log on to the Resource Management console.
In the left-side navigation pane, choose .
In the top navigation bar, select a region.
Click the Custom Tags or System Tags tab.
Find the desired tag and click View Resources in the Actions column to view the 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.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select a region.
On the Instances page, click Tags and select a tag key and a tag value to view the ECS instances to which the tag is added.
If you do not select a tag value, all ECS instances to which the selected tag key is added are displayed.
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 descriptions provide details:
Tag API operation: Call the ListTagResources operation. Configure 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 Services that work with Tag.
Query resources by using the tag editor
The tag editor is a tool that is used to manage resource tags in a centralized manner. You can use the tag editor to search for resources that belong to different Alibaba Cloud services and reside in different regions.
Procedure
Log on to the Resource Management console. The Tags page appears.
In the left-side navigation pane, choose .
On the Tag Editor page, read the message and click Remain on Original Page.
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.
Click Search.
In the Search Results section, view the resources.