- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-13-2024 03:56 AM
We have been trying to append a new address object to an address group in the firewall. However, when we use the PUT method in Postman to insert it into the group, it replaces the existing address objects instead of adding the new one. Additionally, using the POST method results in an error.
11-13-2024 06:26 AM
Hi @ShaileshKum ,
You cannot append with the REST API. You would need to modify your script to read the members of the address group, append your new value, and replace the contents.
REST typically only does CRUD operations. Here are the supported REST and HTTP methods:
Thanks,
Tom
11-17-2024 07:49 PM
Hi @TomYoung
Thanks for your reply! Usually, when we add an object to a group, we need to copy a previous object and paste it when adding a new object.
11-22-2024 01:09 AM
Is there any other option? Currently, when we create a new object, we copy all the properties of an old object and paste them into the new one
11-22-2024 12:48 PM
Hi @ShaileshKum ,
It should be possible with the XML API using the set action. See this post which has an example of appending an application to a security policy rule. https://live.paloaltonetworks.com/t5/panorama-discussions/add-or-remove-application-in-a-security-ru...
Thanks,
Tom
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!