API call fortmat

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Palo Alto Networks Approved
Palo Alto Networks Approved
Community Expert Verified
Community Expert Verified

API call fortmat

L1 Bithead

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>

 

RobertoParra_0-1705959598802.png

 

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>

 

1 accepted solution

Accepted Solutions

Community Team Member

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.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

View solution in original post

5 REPLIES 5

Community Team Member

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.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L1 Bithead

I run the api call on POSTMAN to 3250 firewall PAN-Os 10.1.11-h1

Cyber Elite
Cyber Elite

@Roberto.Parra,

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>

 

 

Community Team Member

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.

LIVEcommunity team member, CISSP
Cheers,
Kiwi
Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

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>

  • 1 accepted solution
  • 1290 Views
  • 5 replies
  • 0 Likes
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!