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

Importing and Exporting Security Group Rules

Scenarios

You can configure security group rules in an Excel file and import the rules to the security group. You can also export security group rules to an Excel file.

You can import and export security group rules in the following scenarios:

  • If you want to back up security group rules locally, you can export the rules to an Excel file.
  • If you want to quickly create or restore security group rules, you can import your security group rule file to the security group.
  • If you want to quickly apply the rules of one security group to another, you can export and import existing rules.
  • If you want to modify multiple rules of the current security group at a time, you can export and import existing rules.

Notes and Constraints

  • The security group rules to be imported must be configured based on the template. Do not add parameters or change existing parameters. Otherwise, the import will fail.
  • If a security group rule to be imported is the same as an existing one, the security group rule cannot be imported. You can delete the rule and try again.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and choose Network > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Security Groups.

    The security group list is displayed.

  4. On the security group list, click the name of the target security group.

    The security group details page is displayed.

  5. Export and import security group rules.
    • Click to export all rules of the current security group to an Excel file.
    • Click to import security group rules from an Excel file into the current security group.