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

token_to_use

None

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: Use existing authentication token

>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('192.168.1.1', 'user', 'pass', token=True, token_to_use='2PXGGMT4QR3Y3PAQEEURAPB5DJ')

Example: Enable cert verification

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