tencent cloud


Associating CVM Instances with Security Groups

Last updated: 2022-05-07 16:03:46

    Security groups can be associated with CVMs, ENIs, TencentDB for MySQL, and CLBs. This topic describes how to associate a security group with a CVM.


    Security groups can be associated with one or more CVMs for network access control. They are an important part of CVM network security measures. You can associate your CVM with one or more security groups if necessary. The following are detailed instructions.


    You should already have a CVM instance created before starting.


    1. Log in to the CVM console.
    2. On the left sidebar, choose Security Group to go to the Security Group page.
    3. On the Security Group page, select a region and locate the security group for which you want to set rules.
    4. In the row of the target security group, click Manage Instances in the Operation column of the target security group. The Associated Instances page then appears.
    5. On the Associates Instances page, click Add Instance.
    6. In the pop-up Add Instance window, select the instances to bind and click OK

      After multiple security groups are bound to an instance, they are executed based on their priorities, which are consistent with their binding sequence. To adjust the priorities of the security groups, see Adjusting Security Group Priority.

    Subsequent Operations

    • You can check all security groups in a specific region.
      For operation details, see Viewing Security Groups.
    • If you want to disassociate a CVM instance from one or more security groups, you can remove it from the security group.
      For operation details, see Remove from Security Groups.
    • If you no longer need a security group, you can delete it. Once a security group is deleted, all rules within it are also deleted.
      For operation details, see Deleting a Security Group.
    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