Help Center> Virtual Private Cloud> User Guide> Security> Security Group> Importing and Exporting Security Group Rules

Importing and Exporting Security Group Rules

Scenarios

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

Notes and Constraints

  • When modifying exported security group rules, you can only modify existing fields in the exported file based on the template and cannot add new fields or modify the field names. Otherwise, the file will fail to be imported.
  • When importing security group rules, if the source is an IP address group, ensure that the IP address group exists and its name and ID are correct. The format is ipGroup-zy[2b5213cb-0f41-4d0b-bed9-b6340bf51017].
  • Duplicate rules are not allowed.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. On the console homepage, under Network, click Virtual Private Cloud.
  3. In the navigation pane on the left, choose Access Control > Security Groups.
  4. On the Security Groups page, click the security group name.
  5. On the displayed page, 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.