Client for interacting with Infoblox NIOS over WAPI
Project description
Client for interacting with Infoblox NIOS over WAPI.
Free software: Apache license
Documentation: https://infoblox-client.readthedocs.org.
Installation
Install infoblox-client using pip:
pip install infoblox-client
Usage
Low level API, using connector module.
Retrieve list of network views from NIOS:
from infoblox_client import connector opts = {'host': '192.168.1.10', 'username': 'admin', 'password': 'admin'} conn = connector.Connector(opts) # get all network_views network_views = conn.get_object('networkview')
For this request data is returned as list of dicts:
[{u'_ref': u'networkview/ZG5zLm5ldHdvcmtfdmlldyQw:default/true', u'is_default': True, u'name': u'default'}]
High level API, using objects.
Example of creating Network View, Network, DNS View, DNSZone and HostRecord using NIOS objects:
from infoblox_client import connector from infoblox_client import objects opts = {'host': '192.168.1.10', 'username': 'admin', 'password': 'admin'} conn = connector.Connector(opts) nview = objects.NetworkView.create(conn, name='my_view') network = objects.Network.create(conn, network_view='my_view', cidr='192.168.1.0/24') view = objects.DNSView.create(conn, network_view='my_view', name='my_dns_view') zone = objects.DNSZone.create(conn, view='my_dns_view', fqdn='my_zone.com') my_ip = objects.IP.create(ip='192.168.1.25', mac='aa:bb:cc:11:22:33') hr = objects.HostRecord.create(conn, view='my_dns_view', name='my_host_record.my_zone.com', ip=my_ip)
Reply from NIOS is parsed back into objects and contains next data:
In [22]: hr Out[22]: HostRecordV4: _ref=record:host/ZG5zLmhvc3QkLjQuY29tLm15X3pvbmUubXlfaG9zdF9yZWNvcmQ:my_host_record.my_zone.com/my_dns_view, name=my_host_record.my_zone.com, ipv4addrs=[<infoblox_client.objects.IPv4 object at 0x7f7d6b0fe9d0>], view=my_dns_view
Features
TODO
History
0.0.6 (2015-10-26)
Added initial support of Extensible Attributes as sub objects
Added search by Extensible Attributes
Improved validation in connector
Added delete_object_by_ref to object manager
0.0.5 (2015-10-12)
Fixed issues in working with objects
Added missed _get_object_type_from_ref
Added code coverage
Updated links to point to infobloxopen repository
0.0.4 (2015-09-23)
Added object abstraction for interacting with NIOS objects
Added object_manager to simplify some operations on objects
0.0.3 (2015-09-15)
Added dependencies to package.
0.0.2 (2015-09-11)
Fixed using dashes in package directory names that prevented package import after install.
0.0.1 (2015-09-11)
Added connector to send wapi requests to NIOS, does not includes NIOS object model at this point.
First release on PyPI.
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
Built Distribution
File details
Details for the file infoblox-client-0.0.6.tar.gz
.
File metadata
- Download URL: infoblox-client-0.0.6.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a1181ab43a76839493fe888897b262bfe4cd840fad46861ca24729c1fe5c312 |
|
MD5 | 26eb34c3117e2fd33a94f97d595208f3 |
|
BLAKE2b-256 | 57ab8a205ad08ad661219b3e3d24c27508de932301a98c9692d79fca18cd74dc |
File details
Details for the file infoblox_client-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: infoblox_client-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6e54954fbc8022125f578760420ec0b91128e4fc299fc2045dee38f3f8b8e8 |
|
MD5 | 6c8b52b2dc42fbe21579f975dbcac435 |
|
BLAKE2b-256 | 10331c19d8c3cfb7f6ddbfe7515d9b85986f8da94b7e4449cccadb5a32c9da85 |