Panorama switch context

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Panorama switch context

L0 Member

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

 

panorama_context.png 

1 accepted solution

Accepted Solutions

L4 Transporter

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.

View solution in original post

2 REPLIES 2

L4 Transporter

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.

Thank you, it works using Configuration Commands.

  • 1 accepted solution
  • 2765 Views
  • 2 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!