Bulk Import Firewall Policy Components
Use a JSON file to bulk import firewall policy components such as address lists, URL lists, services and service lists, applications and application lists, decryption rules and profiles, mapped secrets, and security rules.
Use the following procedure to upload JSON files. The maximum file size that you can upload is 5 MB. This feature may not be available in your region.
To use a template for bulk importing, see Templates for Bulk Importing Firewall Policy Components.
Important
- Before importing application lists, import the applications.
- Before importing service lists, import the services.
- Some names are reserved by Palo Alto Networks® and can't be used.
- Download the JSON template that you want to use and save it to your computer.
- Edit the template to include the component objects that you want to import.
-
Save the template as a
.json
file. - Select the compartment.
- Select the policy.
- Under Policy resources, select the component type you want to upload. For example, to choose applications, select Applications.
- Select the Import button for the component type. For example, to import applications, select Import applications.
- In the Import dialog box, drag the JSON file to the box or browse to the file by selecting select one.
- Select the Import button. For example, to import applications, click Import applications.
- Use one of the following commands and required parameters to bulk upload a policy component:
- network-firewall application bulk-upload
- network-firewall application-group bulk-upload
- network-firewall service bulk-upload
- network-firewall service-list bulk-upload
- network-firewall url-list bulk-upload
- network-firewall address-list bulk-upload
- network-firewall mapped-secret bulk-upload
- network-firewall decryption-profile bulk-upload
- network-firewall decryption-rule bulk-upload
- network-firewall security-rule bulk-upload
oci network-firewall address-list bulk-upload --network-firewall-policy-id network firewall policy OCID --bulk-upload-url-lists-details file://path/to/.json_file ...[OPTIONS]
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
- Run one of the following operations to bulk upload a policy component: