Class PanAPIConnector
This class will allow you interact with PANOS API
Code :
$con = PanAPIConnector::findOrCreateConnectorFromHost( 'fw1.company.com' );
$infos = $con->getSoftwareVersion(); print "Platform: ".$infos['type']."
Version: ".$infos['version']; $pan = new PANConf()
$pan->API_load_from_candidate();
public
|
|
public
|
|
public
|
|
public
|
|
public
string[]
|
|
public static
|
|
public static
|
|
public static
|
#
findOrCreateConnectorFromHost( string $host, string $apiKey = null, boolean $promptForKey = TRUE, boolean $checkConnectivity = TRUE, boolean $hiddenPW = TRUE )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
__construct( string $host, string $key, string $type = 'panos', integer $serial = null, string|null $port = 443 )
|
public
|
|
public
mixed
|
#
userIDLogin( string|string[] $ips, string|string[] $users, string $vsys = 'vsys1', integer $timeout = 3600 )
|
public
mixed
|
#
userIDLogout( string|string[] $ips, string|string[] $users, string $vsys = 'vsys1', integer $timeout = 3600 )
|
public
DomDocument
|
#
register_tagIPsWithTags( string[] $ips, string[] $tags, string $vsys = 'vsys1', integer $timeout = 3600 )
|
public
DomDocument
|
#
register_sendUpdate( string[][] $register = null, string[][] $unregister = null, string $vsys = 'vsys1', integer $timeout = 3600 )
|
public
string[][]
|
|
public
|
|
public
DomDocument
|
#
sendRequest( string & $parameters, boolean $checkResultTag = FALSE, string|null & $filecontent = null, string $filename = '', array $moreOptions = array() )
|
public
string
&
|
|
public
&
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
DomDocument
|
|
public
|
|
public
DomDocument
|
#
sendEditRequest( mixed $xpath, mixed $element, mixed $useChildNodes = FALSE, mixed $timeout = 30 )
|
public
|
|
public
DomDocument
|
|
public
DomDocument
|
|
public
|
|
public
DomDocument|string[]
|
|
public
|
|
public
|
|
public
|
|
public
string[][]
&
|
public
string
|
$name | 'connector' |
|
public
string
|
$apikey | |
|
public
string
|
$apihost | |
|
public
integer
|
$isPANOS | 1 |
|
public
null
|
$serial | null |
|
public
integer
|
$port | 443 |
|
public
boolean
|
$showApiCalls | FALSE |
|
public static
|
$savedConnectors | array() |
|
public
null|string
|
$info_deviceType | null |
#
$info_deviceType can be "panorama" or "panos" (firewall) |
public
null|string
|
$info_PANOS_version | null |
#
$info_PANOS_version ie: "7.1.2" |
public
null|integer
|
$info_PANOS_version_int | null |
#
$info_PANOS_version_int integer that represents product OS version, bugfix release is ignore. ie: 7.1.4 -> 71 , 5.0.6 -> 50 |
public
null|boolean
|
$info_multiVSYS | null |
#
$info_multiVSYS true if firewall multi-vsys is enabled |
public
null|string
|
$info_serial | null |
#
$info_serial product serial number. ie: "00C734556" |
public
null|string
|
$info_hostname | null |
#
$info_hostname device hostname. ie: "PA-200" |
public
null|string
|
$info_mgmtip | null |
#
$info_mgmtip product mgmt interface IP. ie: "192.168.0.1" |
public
null|string
|
$info_uptime | null |
#
$info_uptime device uptime. ie: "57 days, 16:02:48" |
public
string
|
$info_model | 'unknown' |
#
$info_model can be unknown|m100|m500|pa200|pa500|pa2020|PA2050|PA3020|PA3050|PA3060|PA4020|PA4060|PA..... |
public
string
|
$info_vmlicense | null |
#
$info_vmlicense can be unknown|VM-100|VM-200|VM-300|VM-1000 |
public
mixed
|
$info_vmuuid | null |
|
public
mixed
|
$info_vmcpuid | null |
|
public
mixed
|
$info_app_version | null |
|
public
mixed
|
$info_av_version | null |
|
public
mixed
|
$info_wildfire_version | null |
|
public
mixed
|
$info_threat_version | null |
|
public
mixed
|
$show_config_raw | null |
|
public
mixed
|
$show_system_info_raw | null |
|
public
mixed
|
$show_clock_raw | null |
|
public
mixed
|
$request_license_info_raw | null |