Bulk Importing Network Firewall Policy Components
Use a JSON file to bulk import network 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 in Oracle Cloud Infrastructure.
This page provides instructions for uploading completed JSON files. The JSON templates for each component type, as well as required parameters and any constraints that you need to be aware of when you use the template, are provided in Templates for Bulk Importing Network Firewall Policy Components.
Important
- Resources that are included in a JSON file for upload must already exist in the policy before being referenced in another resource. For example, before you can upload an application list, you must first upload all the applications that you want to use in the list.
- The maximum file size that you can upload is 5 MB.
- Some names are reserved by Palo Alto Networks®. If you create a policy component with a reserved name, the process fails with an error. See Reserved Names
- 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: