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

Who rated this post

Cyber Elite
Cyber Elite

Hi @Findus ,

 

Your research is excellent, as is your use of the "debug cli on" command.  Your GitHub link has a link to documentation.  If you follow it and click on API Reference > Useful Methods, you will see the list of methods.  https://pandevice.readthedocs.io/en/latest/useful-methods.html#configuration-methods

 

You would not use the op() method as that is for executing an operational command (think Operational mode > as opposed to Configration mode #).  I have not used the Python PAN-OS SDK.  So, I am not sure which method to use or if the log collector is supported in the configuration tree for Panorama in the same documentation page.

 

With regard to other approaches, there are LOTS of options.  A couple that come to mind are (1) curl command or (2) Python requests module.  You would need to be familiar with request types and configuration actions which are passed in the URL.  https://docs.paloaltonetworks.com/pan-os/9-1/pan-os-panorama-api/pan-os-xml-api-request-types/pan-os...

 

A great tool for testing the API is Postman, which is free.  https://www.postman.com/. I use it all the time.

 

Thanks,

 

Tom

 

Help the community: Like helpful comments and mark solutions.
Who rated this post