04-12-2021 08:07 AM
For IP sets which have 1000+ IP objects, we need to create each of the ip objects individually using the XML API. This process takes long execution time of API. In Palo, any XML API references for bulk creation of IP objects. Please help
04-12-2021 08:55 AM
@jobik_PaloALto Are you creating API call for each individual object?
You can configure multiple address objects in a single API call.
04-12-2021 09:07 AM
The Python SDK also has a methodology for bulk object creation: https://pan-os-python.readthedocs.io/en/latest/howto.html#optimize-with-bulk-operations
04-12-2021 11:35 AM - edited 04-12-2021 11:37 AM
yes . I am creating API call for each individual object. How to configure multiple address objects in a single API call?
Iam currently performing below steps to create address objects and corresponding address group
- Check Address object exist?
- If not exist create address object.
- create the address group by adding above created object as member.
P.S i need to create address objects using XML API.
In addition, can we create bulk address group with its members.
Any easy steps to bulk create all the address objects and then bulk create the address groups with corresponding address objects. Can be 2 step approach but bulk creation.
https://firewallhostname/api/?type=config&action=edit/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='devicegroupname']/address-group/entry[@name='testAddressGrp'] <entry name='testAddressGrp'><description>Created by ServiceNow</description><static><member>10.0.0.0_8</member></static></entry>
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!