Skip to main content

Client for interacting with Infoblox NIOS over WAPI

Project description

https://travis-ci.org/bondar-pavel/infoblox-client.svg?branch=master https://img.shields.io/pypi/v/infoblox-client.svg

Client for interacting with Infoblox NIOS over WAPI.

Installation

Install infoblox-client using pip:

pip install infoblox-client

Usage

  1. 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'}]
  1. 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.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


Download files

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

Source Distribution

infoblox-client-0.0.4.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

infoblox_client-0.0.4-py2.py3-none-any.whl (21.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file infoblox-client-0.0.4.tar.gz.

File metadata

File hashes

Hashes for infoblox-client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c002cb5f833b028f55e72fba808de965d63b4d59c05b1101ae080f94fdb8e6ec
MD5 e5cf32c8c4ca33417b2e46d5c7d3ede2
BLAKE2b-256 28ee99c5622a99e0ae50f6e8d87bf0edb2110f99094d5d24a42bab09bf40f3e9

See more details on using hashes here.

File details

Details for the file infoblox_client-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for infoblox_client-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cbf15cb76711fb0a0025ade4b592fd526ed7b4b1057d32b293110ed77a5feb05
MD5 e74674295ced82c23bcde967baab7c74
BLAKE2b-256 a5cdca816c1b08c2c249dd1c2ad150264e2dc1af55d3d8ddb4664df3279697c0

See more details on using hashes here.

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