pan.xapi no response

L1 Bithead

pan.xapi no response

Why am I not getting response when using pan.xapi vs


from python interpretor:


api_sess = pan.xapi.PanXapi(hostname="",api_username="myusername", api_password="mypassword",api_key='mykey') = "/config/devices/entry/deviceconfig/system/hostname")


*returns no ouptput however using I expected results.


python -h -l myusername -xr -s "/config/devices/entry/deviceconfig/system/hostname"
show: success

L3 Networker

Re: pan.xapi no response



1) no need to specify api_username and api_password when api_key is specified


2) should handle exceptions


3) to see request XML response use for example:

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!