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 PanoramaConf

Your journey will start from PANConf or PanoramaConf

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

And there you go !

PanoramaConf uses PathableName, PanSubHelperTrait
Located at device-and-system-classes/PanoramaConf.php
Methods summary
public
# name( )
public
# __construct( )
public
# load_from_xmlstring( mixed & $xml )
public
# load_from_domxml( DOMElement|DOMDocument $xml )

Parameters

$xml
DOMElement|DOMDocument
$xml

Throws

Exception
public DeviceGroup|null
# findDeviceGroup( string $name )

Parameters

$name
string
$name

Returns

DeviceGroup|null
public Template|null
# findTemplate( string $name )

Parameters

$name
string
$name

Returns

Template|null
public TemplateStack|null
# findTemplateStack( string $name )

Parameters

$name
string
$name

Returns

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

Parameters

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

Parameters

$fileName
string
$fileName
public
# display_statistics( )
public
# API_load_from_running( PanAPIConnector $conn )
public
# API_load_from_candidate( PanAPIConnector $conn )
public
# API_uploadConfig( mixed $config_filename = '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

Parameters

$config_filename
mixed
$config_filename string filename you want to save config in PANOS
public
# API_loadManagedFirewallConfigs( mixed $fromRunning )

load all managed firewalls configs from API from running config if $fromRunning = TRUE

load all managed firewalls configs from API from running config if $fromRunning = TRUE

public
# loadManagedFirewallsConfigs( mixed $fromDirectory = './' )

load all managed firewalls configs from a directory

load all managed firewalls configs from a directory

Var

string $fromDirectory
public DeviceGroup|boolean
# findApplicableDGForVsys( string $deviceSerial, string $vsysName )

Parameters

$deviceSerial
string
$deviceSerial
$vsysName
string
$vsysName

Returns

DeviceGroup|boolean
public DeviceGroup
# createDeviceGroup( string $name )

Create a blank device group. Return that DV object.

Create a blank device group. Return that DV object.

Parameters

$name
string
$name

Returns

DeviceGroup
public DeviceGroup[]
# getDeviceGroups( )

Returns

DeviceGroup[]
public Template
# createTemplate( string $name )

Create a blank template. Return that template object.

Create a blank template. Return that template object.

Parameters

$name
string
$name

Returns

Template
public Template[]
# getTemplates( )

Returns

Template[]
public TemplateStack[]
# getTemplatesStacks( )

Returns

TemplateStack[]
public
# isPanorama( )
public
# findSubSystemByName( mixed $location )
Methods used from PathableName
(), (), ()
Methods used from PanSubHelperTrait
(), (), (), (), (), (), ()
Properties summary
public DOMElement $xmlroot
#
public DOMDocument $xmldoc
#
public DOMElement $sharedroot
#
public mixed $devicesroot
#
public mixed $localhostlocaldomain
#
public DOMElement $localhostroot
#
public string[]|DomNode $templateroot
#
public string[]|DomNode $templatestackroot
#
public string[]|DomNode $devicegrouproot
#
public mixed $version null
#
public array $managedFirewallsSerials array()
#
public mixed $managedFirewallsStore
#
public array $managedFirewallsSerialsModel array()
#
public DeviceGroup[] $deviceGroups array()
#
public Template[] $templates array()
#
public TemplateStack[] $templatestacks array()
#
public RuleStore $securityRules
#
public RuleStore $natRules
#
public RuleStore $decryptionRules null
#
public RuleStore $appOverrideRules
#
public RuleStore $captivePortalRules
#
public RuleStore $authenticationRules
#
public RuleStore $pbfRules
#
public RuleStore $qosRules
#
public RuleStore $dosRules
#
public AddressStore $addressStore null
#
public ServiceStore $serviceStore null
#
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 ZoneStore $zoneStore null
#
public PANConf[] $managedFirewalls array()
#
public PanAPIConnector|null $connector null
#

$connector

$connector

public AppStore $appStore
#
public SecurityProfileStore $urlStore
#
public TagStore $tagStore
#
public boolean $_fakeMode FALSE
#
public NetworkPropertiesContainer $_fakeNetworkProperties
#
public string $name ''
#
Magic properties used from PathableName
$name, $owner
PAN-OS-PHP API documentation generated by ApiGen 2.8.0