Querying Resources by Tag
Last updated:2024-12-10 15:19:40
Querying Resources by Tag
Last updated: 2024-12-10 15:19:40
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
Directions
Note:
Click the tabs below to view different querying methods.
Via Tag Console > Resource Tag
Via Tag Console > Tag List
Via Console of Tencent Cloud Service
2. Click Resource Tag on the left sidebar.
3. Set the filter criteria as follows.
Region (required): You can select all or multiple regions.
Resource type (required): You can select all or multiple resource types from the drop-down list, which includes Tencent Cloud services and resources that support tagging. For details, please see Tagging-enabled Services. Tag: Select one or multiple tag keys and values. If multiple tag keys and values are selected, the results will be a union of the resources bound to each selected tag.
Project: Click More to show the project filter criterion and select a project. You can query only services that support project management by this criterion.
4. Click Query resource, and the resources will be listed below.
2. Click Tag List on the left sidebar.
3. In the tag list, find the target tag, and click the digit in the Count of Resources column to view the resources bound to the tag.
The resources will be displayed as below:
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. On the left sidebar, click Instances.
3. Click the search box and select Tag key.
4. Type a tag key and value to query the CVM instances bound to the tag.