Adding Instances to and Removing Them from a Security Group
Scenarios
After a security group is created, you can add instances, including servers and extension NICs, to the security group to protect the instances. If the instances are not required, you can also remove them from the security group.
You can add multiple instances to or remove them from a security group.
Adding Instances to a Security Group
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click Virtual Private Cloud.
- In the navigation pane on the left, choose Access Control > Security Groups.
- On the Security Groups page, click Manage Instance in the Operation column.
- On the Servers tab, click Add and add one or more servers to the current security group.
- On the Extension NICs tab, click Add and add one or more extension NICs to the current security group.
- Click OK.
Removing Instances from a Security Group
- Instances have been added to two or more security groups.
- The instances removed from a security group cannot communicate with other instances in this security group. Ensure that your instances will not be adversely affected before you remove instances from a security group.
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - On the console homepage, under Network, click Virtual Private Cloud.
- In the navigation pane on the left, choose Access Control > Security Groups.
- On the Security Groups page, click Manage Instance in the Operation column.
- On the Servers tab, locate the target server and click Remove in the Operation column to remove the server from current security group.
- On the Extension NICs tab, locate the target extension NIC and click Remove in the Operation column to remove the NIC from the current security group.
- Click Yes.
Removing multiple instances from a security group
Select multiple servers and click Remove above the server list to remove the selected servers from the current security group all at once.
Select multiple extension NICs and click Remove above the extension NIC list to remove the selected extension NICs from the current security group all at once.
Related Operations
- You can change a security group for an instance based on service requirements.
- You can delete the security groups that you no longer need. Deleting a security group will also delete its security group rules.
Last Article: Deleting a Security Group
Next Article: Cloning a Security Group
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.