pa_api.panorama
1from panos import panorama 2 3from .utils import clean_url_host 4 5 6class Panorama(panorama.Panorama): 7 """ 8 Wrapper class for the Panorama class from pan-os-python library: 9 https://pan-os-python.readthedocs.io/en/latest/readme.html#features 10 11 Added features are: 12 - hostname can be provided with and without the scheme 13 - https://mydomain.com 14 - mydomain.com 15 - https://mydomain.com:443 16 Are all valid 17 """ 18 19 def __init__( 20 self, 21 hostname, 22 api_username=None, 23 api_password=None, 24 api_key=None, 25 port=None, 26 *args, 27 **kwargs, 28 ): 29 _, hostname, _port = clean_url_host(hostname) 30 port = port or _port or 443 31 return super().__init__( 32 hostname, api_username, api_password, api_key, port, *args, **kwargs 33 )
class
Panorama(panos.panorama.Panorama):
7class Panorama(panorama.Panorama): 8 """ 9 Wrapper class for the Panorama class from pan-os-python library: 10 https://pan-os-python.readthedocs.io/en/latest/readme.html#features 11 12 Added features are: 13 - hostname can be provided with and without the scheme 14 - https://mydomain.com 15 - mydomain.com 16 - https://mydomain.com:443 17 Are all valid 18 """ 19 20 def __init__( 21 self, 22 hostname, 23 api_username=None, 24 api_password=None, 25 api_key=None, 26 port=None, 27 *args, 28 **kwargs, 29 ): 30 _, hostname, _port = clean_url_host(hostname) 31 port = port or _port or 443 32 return super().__init__( 33 hostname, api_username, api_password, api_key, port, *args, **kwargs 34 )
Wrapper class for the Panorama class from pan-os-python library: https://pan-os-python.readthedocs.io/en/latest/readme.html#features
Added features are:
- hostname can be provided with and without the scheme
- https://mydomain.com
- mydomain.com
- https://mydomain.com:443 Are all valid
Panorama( hostname, api_username=None, api_password=None, api_key=None, port=None, *args, **kwargs)
20 def __init__( 21 self, 22 hostname, 23 api_username=None, 24 api_password=None, 25 api_key=None, 26 port=None, 27 *args, 28 **kwargs, 29 ): 30 _, hostname, _port = clean_url_host(hostname) 31 port = port or _port or 443 32 return super().__init__( 33 hostname, api_username, api_password, api_key, port, *args, **kwargs 34 )
Initialize PanDevice
Inherited Members
- panos.panorama.Panorama
- FIREWALL_CLASS
- NAME
- DEFAULT_VSYS
- CHILDTYPES
- OPSTATES
- op
- xpath_vsys
- xpath_panorama
- panorama
- commit_all
- refresh_devices
- generate_vm_auth_key
- get_vm_auth_keys
- panos.base.PanDevice
- hostname
- port
- is_virtual
- timeout
- interval
- serial
- config_locked
- commit_locked
- lock_before_change
- config_changed
- software
- content
- version
- content_version
- platform
- ha_failed
- userid
- predefined
- get_device_version
- create_from_device
- XapiWrapper
- id
- api_key
- xapi
- update_connection_method
- generate_xapi
- set_config_changed
- xpath_root
- xpath_mgtconfig
- xpath_device
- devices
- show_system_info
- refresh_system_info
- refresh_version
- set_hostname
- set_dns_servers
- set_ntp_servers
- pending_changes
- add_commit_lock
- remove_commit_lock
- add_config_lock
- remove_config_lock
- remove_all_locks
- check_commit_locks
- check_config_locks
- revert_to_running_configuration
- restart
- ha_peer
- set_ha_peers
- ha_pair
- active
- passive
- is_active
- activate
- toggle_ha_active
- update_ha_active
- set_failed
- map_ha
- show_highavailability_state
- refresh_ha_active
- synchronize_config
- config_sync_state
- config_synced
- commit
- syncjob
- syncreboot
- watch_op
- nearest_pandevice
- request_license_info
- fetch_licenses_from_license_server
- request_password_hash
- test_security_policy_match
- clock
- plugins
- whoami
- is_ready
- panos.base.PanObject
- XPATH
- SUFFIX
- ROOT
- CHILDMETHODS
- HA_SYNC
- TEMPLATE_NATIVE
- parent
- children
- variables
- vsys
- uid
- add
- insert
- extend
- pop
- remove
- remove_by_name
- removeall
- xpath
- xpath_nosuffix
- xpath_short
- element
- element_str
- equal
- apply
- create
- delete
- update
- rename
- move
- refresh
- refresh_variable
- devicegroup
- find
- findall
- find_or_create
- findall_or_create
- find_index
- refreshall
- refreshall_from_xml
- xml_merge
- about
- create_similar
- apply_similar
- delete_similar
- dot
- tree
- fulltree
- retrieve_panos_version
- hierarchy_info