Feature Overview
Tags are key-value pairs provided by Tencent Cloud to easily identify resources. For more information, see Tag Overview.
You can use tags to categorize and manage TencentDB for MySQL resources by various metrics such as business, purpose, and owner. You can also easily find a resource by its tag. In Tencent Cloud, the tag key-value pairs have no semantic meaning and are strictly parsed and matched as strings. To use tags, pay attention to the use limits first.
Here we describe a use case to show how a tag is used.
Case Background
A company owns 10 TencentDB for MySQL instances in Tencent Cloud. Distributed in three departments (ecommerce, gaming, and entertainment), these instances are used to serve internal business lines such as marketing, game A, game B, and post-production. The OPS owners of the three departments are John, Jane, and Harry, respectively.
Configuring Tags
To facilitate management, the company categorizes its TencentDB for MySQL resources with tags and defines the following tag key-value pairs.
Tag Key | Tag Value |
Department | E-commerce, Gaming, Entertainment |
Business data collection | Marketing Campaigns, Game A, Game B, Post-production |
Ops Owner | John, Jane, and Harry |
These tag keys/values are bound to TencentDB for MySQL instances in the following way:
instance-id | Department | Business data collection | Ops Owner |
cdb-abcdef1 | E-commerce | Marketing campaigns | Chris |
cdb-abcdef2 | E-commerce | Marketing campaigns | Chris |
cdb-abcdef3 | Gaming | Game A | John Smith |
cdb-abcdef3 | Gaming | Game B | John Smith |
cdb-abcdef4 | Gaming | Game B | John Smith |
cdb-abcdef5 | Gaming | Game B | Jane Smith |
cdb-abcdef6 | Gaming | Game B | Jane Smith |
cdb-abcdef7 | Gaming | Game B | Jane Smith |
cdb-abcdef8 | Entertainment | Post-production | Chris |
cdb-abcdef9 | Entertainment | Post-production | Chris |
cdb-abcdef10 | Entertainment | Post-production | Chris |