Updated on 2024-06-13 GMT+08:00

Exporting and Importing Network ACL Rules

Scenarios

You can specify rule parameters in an Excel file and import it into an existing network ACL. You can also export rules of a network ACL to an Excel file.

You can import or export network ACL rules if you want to:

  • Back up these rules to a local directory as an Excel file.
  • Quickly add and restore rules by modifying and importing the Excel file you have exported.
  • Quickly add rules to other network ACLs.
  • Modify rules in batches. You can export rules as an Excel file, modify these rules in the Excel file, and import the file to the network ACL.

Notes and Constraints

  • For optimal performance, you can import or export up to 40 network ACL inbound and outbound at a time.
  • Importing rules will not delete existing rules.
  • Importing duplicate rules will fail.
  • Default rules cannot be exported.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Access Control > Network ACLs.

    The network ACL list is displayed.

  4. In the network ACL list, locate the target network ACL and click its name.

    The network ACL summary page is displayed.

  5. Export or import network ACL rules.
    • Click Export Rule to export the network ACL rules to an Excel file.
    • Click Import Rule to import the network ACL rules from an Excel file into the current network ACL.