All Products
Search
Document Center

Resource Management:Use tags to query resources

Last Updated:Aug 03, 2023

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.

  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. Click the Custom Tags or System Tags tab.

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

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

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

  2. In the left-side navigation pane, choose Tag > Tag Editor.

  3. On the Tag Editor page, read the message and click Remain on Original Page.

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

  5. Click Search.

  6. In the Search Results section, view the resources.