tencent cloud

Feedback

Managing Instances via Tags

Last updated: 2024-01-08 09:41:35

    Overview

    Tags are key-value pairs provided by Tencent Cloud for easy resource identification. You can use tags to categorize and manage your CVM resources. Tencent Cloud will not use your tags, they are solely used by you to manage your CVM resources.

    Usage Limits

    Note the following limits when using tags:
    Quantity limits: each Tencent Cloud resource allows up to 50 tags.
    Tag key limits:
    Tag keys cannot start with qcloud, tencent, or project.
    A tag key can contain up to 255 characters, including numbers, letters, and +=.@-.
    Tag value limits: a tag value can contain up to 127 characters, including numbers, letters and +=.@-. It can be left empty if necessary.

    Directions and Use Cases

    Use case

    A company has purchased six CVM instances, of which the business group, scope and owners are as follows:
    Instance ID
    Business Group
    Business Scope
    Owner
    ins-abcdef1
    E-commerce
    Marketing campaigns
    John Smith
    ins-abcdef2
    E-commerce
    Marketing campaigns
    Chris
    ins-abcdef3
    Games
    Game A
    Jane Smith
    ins-abcdef4
    Games
    Game B
    Chris
    ins-abcdef5
    Entertainment
    Post-production
    Chris
    ins-abcdef6
    Entertainment
    Post-production
    John Smith
    Taking ins-abcdef1 as an example, we can add the following 3 sets of tags to the instance:
    Tag Key
    Tag Value
    dept
    ecommerce
    business
    mkt
    owner
    John Smith
    Similarly, you can add tag key-value pairs to other instances based on the business group, scope and owners.

    Setting tags in the CVM console

    Take the preceding case as an example. After designing the tag key-value pairs, you can log in to the CVM console to specify the tags.
    1. Log in to the CVM console.
    2. On the instance management page, proceed according to the actually used view mode:
    List view
    Tab view
    Select the instance for which to edit tags and click More > Instance Settings > Edit Tags as shown below:
    
    
    Select the instance for which to edit tags and click More Actions > Instance Settings > Edit Tags in the top-right corner as shown below:
    
    
    3. In the You have selected 1 resource window that appears, specify the tags as required. As shown in the following figure. For example, you can add three tag key-value pairs to the ins-abcdef1 instance.
    
    
    4. Click OK. A message indicating the edit was successful will be prompted.

    Filtering instances by tags

    To filter instances by tag, follow the steps below:
    1. Click the search box and select Tag from the drop-down list.
    2. Enter the tag, and click
    
    to search. You can filter instances using tags. For example, you can search instances that are bound with tags key1 or key2 by entering Tag: key1|key2 in the search box.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support