Documentation for PythonAPI

PacketLogic PythonAPI

The PacketLogic PythonAPI enables programmatic configuration and retrieval of data from the PacketLogic system. This allows everything from small scripts retrieving statistics data to large programs integrating the PacketLogic with other systems to be written.

Creating a new NetObject in the ruleset is as simple as:

>>> import packetlogic2
>>> pl = packetlogic2.connect("", "admin", "pldemo00")
>>> rs = pl.Ruleset()
>>> o = rs.object_add("/NetObjects/Example")
>>> o.add("")
>>> rs.commit()