Overview

Namespaces

  • None
  • PHP

Classes

  • Address
  • AddressGroup
  • AddressRuleContainer
  • AddressStore
  • AggregateEthernetIfStore
  • AggregateEthernetInterface
  • App
  • AppOverrideRule
  • AppRuleContainer
  • AppStore
  • AuthenticationRule
  • CaptivePortalRule
  • cidr
  • Container
  • CsvParser
  • CustomSecurityProfileURL
  • DecryptionProfile
  • DecryptionRule
  • DeviceCloud
  • DeviceGroup
  • DH
  • DoSRule
  • ErrorReporter
  • EthernetIfStore
  • EthernetInterface
  • ExpeditionTaskReporter
  • FawkesConf
  • FileTaskReporter
  • HipObjectsProfile
  • HipProfilesProfile
  • IkeCryptoProfil
  • IkeCryptoProfileStore
  • IKEGateway
  • IKEGatewayStore
  • InterfaceContainer
  • IP4Map
  • IPSecCryptoProfil
  • IPSecCryptoProfileStore
  • IPsecTunnel
  • IPsecTunnelStore
  • LoopbackIfStore
  • LoopbackInterface
  • ManagedDevice
  • ManagedDeviceStore
  • NatRule
  • NetworkPropertiesContainer
  • ObjRuleContainer
  • ObjStore
  • PanAPIConnector
  • PANConf
  • PanoramaConf
  • PbfRule
  • PH
  • PredefinedSecurityProfileURL
  • QoSRule
  • RQuery
  • Rule
  • RuleStore
  • RuleWithUserID
  • Schedule
  • ScheduleStore
  • SecurityProfile
  • SecurityProfileAntiSpyware
  • SecurityProfileAntiVirus
  • SecurityProfileDNSSecurity
  • SecurityProfileFileBlocking
  • SecurityProfileGroup
  • SecurityProfileGroupStore
  • SecurityProfileStore
  • SecurityProfileURL
  • SecurityProfileVirusAndWildfire
  • SecurityProfileVulnerability
  • SecurityProfileWildfire
  • SecurityRule
  • Service
  • ServiceDstPortMapping
  • ServiceGroup
  • ServiceRuleContainer
  • ServiceSrcPortMapping
  • ServiceStore
  • StaticRoute
  • Tag
  • TagRuleContainer
  • TagStore
  • Template
  • TemplateStack
  • TmpInterface
  • TmpInterfaceStore
  • TunnelIfStore
  • TunnelInterface
  • UrlCategoryRuleContainer
  • VirtualRouter
  • VirtualRouterContainer
  • VirtualRouterStore
  • VirtualSystem
  • VirtualWire
  • VirtualWireStore
  • VlanIfStore
  • VlanInterface
  • Zone
  • ZoneRuleContainer
  • ZoneStore

Interfaces

  • TaskReporter

Traits

  • AddressCommon
  • centralAddressStore
  • centralAddressStoreUser
  • centralServiceStore
  • centralServiceStoreUser
  • InterfaceType
  • NegatableRule
  • ObjectWithDescription
  • PanSubHelperTrait
  • PathableName
  • ReferenceableObject
  • RulewithLogging
  • ServiceCommon
  • XmlConvertible

Functions

  • __CmpObjMemID
  • __CmpObjName
  • array_diff_no_cast
  • array_to_devicequery
  • array_unique_no_cast
  • cloneArray
  • convert
  • derr
  • findConnector
  • findConnectorOrDie
  • getDirContents
  • insertAfter
  • lastIndex
  • mdeb
  • mwarning
  • my_shutdown
  • myAutoloader
  • myErrorHandler
  • printn
  • removeElement
  • sortArrayByStartValue
  • yesNoBool
  • Overview
  • Namespace
  • Class
  • Tree

Class PANConf

Your journey will start from PANConf or PanoramaConf

Code:
$pan = new PANConf();
$pan->load_from_file('config.txt');
$vsys1 = $pan->findVirtualSystem('vsys1');
$vsys1->display_statistics();

And there you go !

PANConf uses PathableName, PanSubHelperTrait
Located at device-and-system-classes/PANConf.php
Methods summary
public
# name( )
public
# __construct( PanoramaConf|null $withPanorama = null, string|null $serial = null, Template|null $fromTemplate = null )

Parameters

$withPanorama
PanoramaConf|null
$withPanorama
$serial
string|null
$serial
$fromTemplate
Template|null
$fromTemplate
public
# load_from_xmlstring( mixed & $xml )
public
# load_from_domxml( mixed $xml )

Parameters

$xml
mixed
$xml DOMElement|DOMDocument

Throws

Exception
public VirtualSystem|null
# findVSYS_by_Name( string $name )

!!OBSOLETE!!

!!OBSOLETE!!

Parameters

$name
string
$name

Returns

VirtualSystem|null

Obsolete

public VirtualSystem|null
# findVSYS_by_displayName( string $displayname )

Parameters

$displayname
string
$name

Returns

VirtualSystem|null
public VirtualSystem|null
# findVirtualSystem( string $name )

Parameters

$name
string
$name

Returns

VirtualSystem|null
public
# save_to_file( string $fileName, boolean $printMessage = TRUE, mixed $lineReturn = TRUE, mixed $indentingXml = 0, mixed $indentingXmlIncreament = 1 )

Parameters

$fileName
string
$fileName
$printMessage
boolean
$printMessage
$lineReturn
$indentingXml
$indentingXmlIncreament
public
# load_from_file( mixed $fileName )

Parameters

$fileName
mixed
$fileName string
public
# API_load_from_running( PanAPIConnector $conn )
public
# API_load_from_candidate( PanAPIConnector $conn )
public
# API_uploadConfig( mixed $config_name = 'panconfigurator-default.xml' )

send current config to the firewall and save under name $config_name

send current config to the firewall and save under name $config_name

public VirtualSystem[]
# getVirtualSystems( )

Returns

VirtualSystem[]
public
# display_statistics( )
public
# isFirewall( )
public
# createVirtualSystem( mixed $vsysID, mixed $displayName = '' )
public
# findSubSystemByName( mixed $location )
Methods used from PathableName
(), (), ()
Methods used from PanSubHelperTrait
(), (), (), (), (), (), ()
Properties summary
public DOMElement $xmlroot
#
public DOMDocument $xmldoc
#
public DOMElement $sharedroot
#
public DOMDocument $devicesroot
#
public DOMElement $localhostroot
#
public DOMElement|null $vsyssroot
#
public string $name ''
#
public AddressStore $addressStore null
#
public ServiceStore $serviceStore null
#
public mixed $version null
#
public VirtualSystem[] $virtualSystems array()
#
public PanAPIConnector|null $connector null
#

$connector

$connector

public null|Template $owner null
#
public NetworkPropertiesContainer $network
#
public AppStore $appStore
#
public TagStore $tagStore
#
public SecurityProfileStore $urlStore
#
protected mixed $securityProfilebaseroot
#
public SecurityProfileStore $URLProfileStore null
#
public SecurityProfileStore $customURLProfileStore null
#
public SecurityProfileStore $AntiVirusProfileStore null
#
public SecurityProfileStore $VulnerabilityProfileStore null
#
public SecurityProfileStore $AntiSpywareProfileStore null
#
public SecurityProfileStore $FileBlockingProfileStore null
#
public SecurityProfileStore $WildfireProfileStore null
#
public SecurityProfileGroupStore $securityProfileGroupStore null
#
public SecurityProfileStore $DecryptionProfileStore null
#
public SecurityProfileStore $HipObjectsProfileStore null
#
public SecurityProfileStore $HipProfilesProfileStore null
#
public ScheduleStore $scheduleStore null
#
public mixed $_public_cloud_server null
#
Magic properties used from PathableName
$name, $owner
PAN-OS-PHP API documentation generated by ApiGen 2.8.0