- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-22-2024 01:44 PM
Hello, I want to know, what is the issue with this API call?
<request><content><upgrade><install><sync-to-peer>yes</sync-to-peer><version><lastest></lastest></version></install></upgrade></content></request>
I would like to sync the content update by API calls, but after I run this API call, it doesn't sync with the peer
<request><content><upgrade><download><latest></latest></download></upgrade></content></request>
01-25-2024 01:51 AM
Either that as suggested by @BPry or use the <sync-to-peer> tags if you're just interested syncing versions between your peers:
XML:
<request><content><upgrade><install><sync-to-peer></sync-to-peer></install></upgrade></content></request>
XML API Url:
/api/?type=op&cmd=<request><content><upgrade><install><sync-to-peer></sync-to-peer></install></upgrade></content></request>
Kind regards,
-Kim.
01-23-2024 03:35 AM
Hi @Roberto.Parra ,
Can you provide more details on the environment you're running this on and the content versions that are currently active ?
Where are you running the API call ?
Kind regards,
-Kim.
01-24-2024 02:45 PM
I run the api call on POSTMAN to 3250 firewall PAN-Os 10.1.11-h1
01-24-2024 03:16 PM
It's just invalid as you have it. You need to do the following
<request><content><upgrade><install><version>latest</version></install></upgrade></content></request>
01-25-2024 01:51 AM
Either that as suggested by @BPry or use the <sync-to-peer> tags if you're just interested syncing versions between your peers:
XML:
<request><content><upgrade><install><sync-to-peer></sync-to-peer></install></upgrade></content></request>
XML API Url:
/api/?type=op&cmd=<request><content><upgrade><install><sync-to-peer></sync-to-peer></install></upgrade></content></request>
Kind regards,
-Kim.
01-25-2024 06:45 AM
thanks
It's works in thisn way
<request><content><upgrade><install><version>latest</version><sync-to-peer>yes</sync-to-peer></install></upgrade></content></request>
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!