The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.
Help & Documentation>Tag>Quick Start>Querying Resources by Tags

Querying Resources by Tags

Last updated: 2024-10-17 17:17:55

Overview

After binding tags to Tencent Cloud resources, you can use tags to quickly query resources. This document describes three methods to query resources by tag.

Prerequisites

Tag created and resources bound (refer to Creating Tags and Binding Resources)

Directions

Via ag Console > Resource Tag

Note:
If you select more product types and regions, the inquiry will take some time. Please wait patiently.
1. log in to  Tag Console.
2. In the left sidebar, click Resource Tag to enter the Resource Tag page.
3. On the Resource Tag page, select the following information to set filtering rules.
Region (required): You can select all or multiple regions.
Resource type: Required. You can select all resource types or multiple resource types to be queried. The options are product resource types that support tags. For details, see Tag-Supported Services.
Tag: Select one or multiple tag keys and values. If multiple key-value pairs are selected, the results will be a union of the resources each selected tag is bound to.
project to which the cluster belongs: click More Query Conditions to expand the project filtering box, select the project name to filter resources, and only products that support project management can be queried.
4. click Query Resources , the corresponding resources will be displayed in a list at the bottom of the page to complete the resource query operation.
Search for the required CAM policy as needed, and click to complete policy association.


Via Tag Console > Tag List

1. log in to  Tag Console.
2. In the left sidebar, click Tag List to enter.
3. In the Tag List, click the value of Target Tag Resource Sequence to view the cloud resources bound to the Tag.

The results are as follows:


Via Console of Tencent Cloud Service

You can log in to the console of a Tencent Cloud service that supports tagging and query resources under the service by tag. The directions below use CVM as an example.
2. In the left sidebar, click Instance to enter the Instance List Page.
3. Click the Search Box and select Tag.
4. Select a Tag key and Tag value to view the CVM instances bound to this Tag.