Create Bulk Address Objects using the XML API
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Bulk Address Objects using the XML API

L0 Member

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

3 REPLIES 3

L3 Networker

@jobik_PaloALto Are you creating API call for each individual object? 

You can configure multiple address objects in a single API call. 

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

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer :-)

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>

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!