Panorama XML API Export Device State not generated, resulting error response"Device parameter needed' Instead

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Panorama XML API Export Device State not generated, resulting error response"Device parameter needed' Instead

L0 Member

Hello everyone, we tried to create a script to export the device-state of all devices (Firewall, Panorama).

The API request is https://<device-ip>/api/?type=export&category=device-state.


When we tried the request on firewall it generate the .tgz file which is expected, but when we run it on the Panorama Device it resulted the XML response below:

 

<response status="error">
<msg>
<line>Device parameter needed.</line>
</msg>
</response>

 

Wishnumurti_0-1707292475814.pngWishnumurti_1-1707292491984.png

What did we miss? What parameter is needed to use the export xml API for the device state. 
 
Happy to hear any feedback and thank you in advance! 🙂
1 REPLY 1

Cyber Elite
Cyber Elite

Panorama isn't a firewall so it doesn't have a device state

 

The device state contains the device groups and templates a firewall received from panorama, panorama simply has the config export

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization
  • 740 Views
  • 1 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!