Use XML API to export device state?

L2 Linker

Use XML API to export device state?

I am trying to figure out how to use the XML API to export the device state.

Looking through the PAN-OS XML API document (PAN-OS and Panorama XML API Reference Guide 6.0), I found that I should use 'type=export&category=device-state'.  But I don't see how to specify which device-state file to export.  I also tried to browse through API browser but it shows no further options after I go through 'Export > device-state'.

Anybody have any experience with using the XML API to export the device state?  I'm obviously missing something, I just don't know what...

L2 Linker

Re: Use XML API to export device state?

I don't know what I'm talking about, sorry...

There are no device-state files that get saved to the device.  When you send the request with 'type=export&category=device-state' it will respond with it's device_state_cfg.tgz

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 Live Community as a whole!

The Live Community thanks you for your participation!