The packetlogic2 package contains the multiversion PacketLogic API.
This module provides a single entry point into the PacketLogic PythonAPI, the (packetlogic2.connect()) function.
>>> import packetlogic2 >>> pl = packetlogic2.connect("192.168.1.25", "admin", "pldemo00") >>> print pl.remoteversion 12.1.2.70 >>> rt = pl.Realtime() >>> rs = pl.Ruleset()
Returns a PLConnection object using the appropriate protocol version.
str
) - PacketLogic host or IP address to connect to
str
) - User to authenticate as
str
) - Password to authenticate with
int
) - Connect to specified port instead of default port
list
) - Used to specify explicit order of versions to try.
float
) - Timeout in seconds to use for connecting and performing actions.
Returned by the connect() function. Wrapper for communication with a PacketLogic system.
This object does not keep any (TCP-level) connection to the PacketLogic system, it only stores the connection information. By invoking the different resource methods (e.g. Ruleset(), Realtime()) a new connection is made to the PacketLogic.
Methods: | ||
---|---|---|
Ungrouped | Backup object | Backup(self, port=None) Get a connection to the PacketLogic's Backup resource |
Channels object | Channels(self) Get a connection to the PacketLogic's channels resource |
|
Config object | Config(self) Get a connection to the PacketLogic's Config resource |
|
ConnLog object | ConnLog(self) Get a connection to the PacketLogic's ConnLog resource |
|
ConnprotTriggers object | ConnprotTriggers(self) Get a connection to the PacketLogic's connection protection trigger |
|
Fileserv object | Fileserv(self) Get a connection to the PacketLogic's Fileserv resource |
|
HostTriggers object | HostTriggers(self) Get a connection to the PacketLogic's host trigger resource |
|
LogLevels object | LogLevels(self) Get a connection to the PacketLogic's LogLevels resource |
|
Logs object | Logs(self) Get a connection to the PacketLogic's logs resource |
|
Realtime object | Realtime(self, port=None) Get a connection to the PacketLogic's realtime resource |
|
ResourceEdit object | ResourceEdit(self, port=None) Get a connection to the PacketLogic's ResourceEdit resource |
|
Ruleset object | Ruleset(self) Get a connection to the PacketLogic's Ruleset resource |
|
Statistics object | Statistics(self) Get a connection to the PacketLogic's Statistics resource |
|
SysDiag object | SysDiag(self) Get a connection to the PacketLogic's System Diagnostics resource |
|
SystemOverview object | SystemOverview(self) Get a connection to the PacketLogic's SystemOverview resource |
|
Users object | Users(self) Get a connection to the PacketLogic's users resource |
Properties: | |
---|---|
PLDBError | This is a deprecated way to access the PLDBError exception |
PLDError | This is a deprecated way to access the PLDError exception |
PLDNotAvailable | This is a deprecated way to access the PLDNotAvailable exception |
PLDPermissionError | This is a deprecated way to access the PLDPermissionError exception |
PLDServerError | This is a deprecated way to access the PLDServerError exception |
PLUnsupportedFeatureError | This is a deprecated way to access the PLUnsupportedFeatureError exception |
PL_API_VERSION | The full API version string |
StatsZone | StatsZone class extracted from the specific API used in this connection |
host | The hostname or IP address of the PacketLogic system (The <host> argument) |
plversion | Protocolversion of connected PacketLogic system, and hence the API used in |
remoteversion | The version of the firmware running on the the PacketLogic system |
Instance variables: | |
---|---|
username | The username used to connect to the PacketLogic system (The <username> argument). |
Get a connection to the PacketLogic's Backup resource.
For details about the Backup resource see documentation for the Backup object.
Get a connection to the PacketLogic's channels resource.
For details about the Channels resource see documentation for the Channels object.
Get a connection to the PacketLogic's Config resource.
For details about the Config resource see documentation for the Config object.
Get a connection to the PacketLogic's ConnLog resource.
For details about the ConnLog resource see documentation for the ConnLog object.
Get a connection to the PacketLogic's connection protection trigger resource.
For details about the connection protection trigger resource see documentation for the ConnprotTriggers object.
Get a connection to the PacketLogic's Fileserv resource.
For details about the Fileserv resource see documentation for the Fileserv object.
Get a connection to the PacketLogic's host trigger resource.
For details about the Host trigger resource see documentation for the HostTriggers object.
Get a connection to the PacketLogic's LogLevels resource.
For details about the log levels resource see documentation for the LogLevels object.
Get a connection to the PacketLogic's logs resource.
For details about the logs resource see documentation for the Logs object.
Get a connection to the PacketLogic's realtime resource.
For details about the Realtime resource see documentation for the Realtime object.
Get a connection to the PacketLogic's ResourceEdit resource.
For details about the ResourceEdit resource see documentation for the ResourceEdit object.
Get a connection to the PacketLogic's Ruleset resource.
For details about the Ruleset resource see documentation for the Ruleset object.
For details about the resource see documentation for the Ruleset object.
Get a connection to the PacketLogic's Statistics resource.
For details about the Statistics resource see documentation for the Statistics object.
Get a connection to the PacketLogic's System Diagnostics resource.
For details about the System Diagnostics resource see documentation for the SysDiag object.
Get a connection to the PacketLogic's SystemOverview resource.
For details about the SystemOverview resource see documentation for the SystemOverview object.
Get a connection to the PacketLogic's users resource.
For details about the Users resource see documentation for the Users object.
This is a deprecated way to access the PLDBError exception.
This is a deprecated way to access the PLDError exception.
This is a deprecated way to access the PLDNotAvailable exception.
This is a deprecated way to access the PLDPermissionError exception.
This is a deprecated way to access the PLDServerError exception.
This is a deprecated way to access the PLUnsupportedFeatureError exception.
The full API version string.
StatsZone class extracted from the specific API used in this connection.
The hostname or IP address of the PacketLogic system (The <host> argument).
Protocolversion of connected PacketLogic system, and hence the API used in this connection.
The version of the firmware running on the the PacketLogic system.