Skip to main content

This is a Python module to easily use the F5 iControl REST interface

Project description

This is a python module to simplify using iControl REST.

Install using pip:

pip install iCR
As simple as:

#!/usr/bin/env python
from iCR import iCR
bigip = iCR("172.24.9.132","admin","admin")
virtuals = bigip.get("ltm/virtual")
for vs in virtuals['items']:
print vs['name']
This prints out a list of Virtual Servers.

Supported methods:

init(hostname,username,password,[timeout,port,icontrol_version,folder,token,debug])
get(url,[select,top,skip])
create(url,data)
modify(url,data,[patch=True])
delete(url)
Module Variables:

icr_session - the link to the requests session
raw - the raw returned JSON
code - the returned HTTP Status Code eg 200
error - in the case of error, the exception error string
headers - the response headers
Features: iControl version, debug mode, folders, iWorkflow tokens, select, top, skip

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

iCR-1.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

iCR-1.2-py2.7.egg (5.5 kB view hashes)

Uploaded Source

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