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
You have created a tag and bound it to a resource. For detailed instructions, please see Creating Tags and Tagging Resources.
Directions
Note:
Click the tabs below to view different querying methods.
- Log in to the Tag console.
- Click Tag List on the left sidebar.
- In the tag list, find the target tag and click the digit in the Count of Resources column to view the tagged resources.
The resources will be displayed as below:
- Log in to the Tag console.
- Click Resource Tag on the left sidebar.
- Set the filter criteria as follows.
- Region: Choose the region of the resources to query.
- Resource Type: Choose the type of the resources to query. You can query only the resources of tagging-enabled services.
- Tag: Select the tag key-value pair whose resources you want to query. This field can be left empty. You can also query the resources of multiple tags by clicking Add to select multiple key-value pairs.
- Project: Click More to show the project filter criterion and select a project. This criterion is available for only services that support project management.
- Click Query resource, and the resources will be listed 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.
Note
The directions below use CVM as an example.
- Log in to the CVM console.
- On the left sidebar, click Instances.
- Click the search box and select Tag key.
- Type a tag key and value to query the CVM instances bound to the tag.
Was this page helpful?