- Supports partition
- Supports route domain
- Support HTTP basic authentication
- Support token
- Support refresh token
- Implements all HTTP methods used in the iControl REST API
- Implements HTTP path /stats
- Implements HTTP path /example
- Implements command
- Implements task
- Implements transaction
https://bigrest.readthedocs.io/
https://github.com/leonardobdes/BIGREST
Requires Python version 3.7
Install BIGREST using Python pip:
pip install bigrest
In the following example:
192.168.1.245: | IP or name of the F5 device. |
---|---|
admin: | Username to be used to connect to the device. |
password: | Password to be used to connect to the device. |
First, import the SDK:
from bigrest.bigip import BIGIP
Next, create a device object:
device = BIGIP("192.168.1.245", "admin", "password")
Lastily, load all virtual servers and print their names:
virtuals = device.load("/mgmt/tm/ltm/virtual")
for virtual in virtuals:
print(virtual.properties["name"])
If you have problems using this SDK, or to understand how the F5 iControl REST API works, use DevCentral website to get help.
BIGREST version:**
Run the following command to find the version you are using.
pip show bigrest
F5 device type:
BIG-IP or BIG-IQ
F5 device version:
Run the following command to find the version you are using.
tmsh show sys version
Python code to replicate the bug.
Output generated when the bug is triggered.