Connections

Connecting to BIG-IP with the SDK is done via f5.bigip.ManagementRoot.

>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('192.168.1.1', 'user', 'pass')

The required parameters are host, username, and password, respectively.

You can, however, supply one or more of the following kwargs (defaults listed):

timeout 30
port 443
icontrol_version ‘’
token False
verify False
auth_provider None

Example: Use token authentication on the nonstandard 4443 tcp port

>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('192.168.1.1.', 'user', 'pass', port=4443, token=True)

Example: Enable cert verification

>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('192.168.1.1', 'user', 'pass', verify=True)