Import Firewall Policy Components
Use a JSON file to import firewall policy components such as address lists, URL lists, services and service lists, applications and application lists, decryption rules and profiles, mapped secrets, security rules, and tunnel inspection rules.
Note
Before you can import an application list, you must import the applications. Before you can import a service list, you must import the services.
Before you can import an application list, you must import the applications. Before you can import a service list, you must import the services.
Use the following procedure to upload JSON files. The maximum file size that you can upload is 5 MB. This feature might not be available in your region.
To use a template for importing, see Templates for Importing Firewall Policy Components.
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
.jsonfile. - Select the compartment that contains the policy that you want to create import policy components to.
- Select the policy.
- On the details page, select the tab for the component type that you want to import. 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 panel, drag the
.jsonfile to the box or browse to the file by selecting the box. - Select Import.
- 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: