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
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
Release history Release notifications | RSS feed
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)
Built Distribution
iCR-1.2-py2.7.egg
(5.5 kB
view hashes)