Skip to main content

A Python SDK for F5 iControl REST API

Project description

What is BIGREST?

F5 BIG-IP and BIG-IQ devices have an API called iControl REST.
BIGREST is an SDK with multiple methods and functions that simplifies the use of the iControl REST API.

BIGREST functionalities

  • 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

Documentation

https://bigrest.readthedocs.io/

Source code

https://github.com/leonardobdes/BIGREST

Author

Name:
Leonardo Souza

How to install?

Requires Python version 3.7

Install BIGREST using Python pip:

pip install bigrest

How to use it?

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"])
This is just a simple example to give you a first view about the SDK.
Detailed information about how to use the SDK will be provided in the next sections of this documentation.

How to get help?

If you have problems using this SDK, or to understand how the F5 iControl REST API works, use DevCentral website to get help.

How to report bugs?

Use GitHub issues to report bugs.
For any bug, please provide the following information.

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.

How to request new functionalities?

Use GitHub issues to request new functionalities.
Use the following format in the title RFE - Title.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bigrest-1.0.2.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

bigrest-1.0.2-py3-none-any.whl (13.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page