Panorama switch context

L0 Member

Panorama switch context

On Panorama I can switch context using web interface. Is it possible using API?

 

panorama_context.png 

L4 Transporter

Re: Panorama switch context

Yes you can do that using the 'target' parameter in the API call.  Simply target the serial number of the device you want to affect.

 

Documentation on how to use 'target' parameter:

https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api/pan-os-xml-api-use-cases/query-a-fi...

 

Note: that doc says 'target' can only be used with 'type=op' api calls, but that is not so, it can be used with other API calls.  We'll get that note removed.

L0 Member

Re: Panorama switch context

Thank you, it works using Configuration Commands.

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!