Updated on 2024-04-01 GMT+08:00

Changing a Security Group

This section describes how to change a security group for cluster and replica set instances

Precautions

If any of the following operations is in progress, do not change the security group:

  • Adding nodes
  • Migrating data

Changing a Security Group

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, click the target DB instance.
  5. In the navigation pane on the left, choose Connections.
  6. In the Security Group area, click to select the security group to which the DB instance belongs.

    Figure 1 Changing a security group
    • To submit the change, click . This process takes about 1 to 3 minutes.
    • To cancel the change, click .

  7. View the modification result.

Managing Security Groups

To use multiple security groups for a DDS instance, choose Service Tickets > Create Service Ticket in the upper right corner of the management console to apply for the required permissions.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, click the instance name.
  5. In the Network Information area on the Basic Information page, click Manage next to the Security Group field.

    Alternatively, choose Connections in the navigation pane on the left. In the Security Group area, click Manage.

    • You can select multiple security groups at a time. The security group rules will be applied based on the following sequence: the first security group associated will take precedence over those associated later, then the rule with the highest priority in that security group will be applied first.
    • To create a new security group, click Create Security Group.

    Using multiple security groups may impact the network performance. Selecting more than five security groups is not recommended.

    Figure 2 Managing security groups

  6. Click OK.