Skip to main content

Python client for Infoblox WAPI

Project description

PyInfoblox2

image info

PyInfoblox2 is a Python client wrapper for connecting to and performing actions against Infoblox appliances.

Contributions

Please contribute by reporting issues, suggesting features or by sending patches using pull requests.

Installation

The easiest way to install pyinfoblox is by using pip:

pip install pyinfoblox2

Or you can run build this locally::

git clone https://github.com/andy-shady-org/pyinfoblox2.git
cd pyinfoblox2
pip install .

Quickstart

Example Usage

This package makes connections to an Infoblox appliance(s) for provisioning and obtaining data.

from pyinfoblox2 import *
client = InfobloxClient('server', 'username', 'password', version='2.12.2')      

# Get container
container = Container.load(client, '10.10.0.0/8')

# Create container
new_container = Container.add(client, '10.10.0.0/8', description='Container for Networks within 10.10.0.0/8')

# remove container
container.remove()

# output
container.to_json()
from pyinfoblox2 import *
client = InfobloxClient('server', 'username', 'password', version='2.12.2', verbose=1)      

# searching
containers = Containers.search_containers(client, '10.10.0.0/8')
while containers.next_page:
    containers.get_next(containers.next_page)

# matching
if '10.10.1.0/24' in containers:
    print('true')

# output
containers.to_json()
containers['10.10.1.0/24'].to_json()

Please read the documentation for advanced usage.

Supported Elements

  • Auth Zones
  • Forward Zones
  • Delegated Zones
  • Containers
  • Networks
  • IPv4Addr
  • A Records
  • PTR Records
  • Hosts
  • HostAliases
  • Roaming Hosts
  • CNAMES
  • DHCP Ranges
  • Mac Filter Addresses
  • Mac Filters
  • TXT Records
  • SRV Records
  • MX Records
  • NS Records
  • Fixed Addresses
  • Searches (via Client)

Permissions

Write permissions on most objects are required to use this package with all its functionality.

  • Networks/Containers/Zones/Mac Filters - require restart permission on all Grid members
  • Host/CNAME/A/SRV/MX/PTR/Roaming - Require write permissions on respective containers and objects

Full Documentation

[Documentation] (https://pyinfoblox2.readthedocs.io/en/latest)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyinfoblox2-1.0.0-py3-none-any.whl (166.0 kB view details)

Uploaded Python 3

File details

Details for the file pyinfoblox2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyinfoblox2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 166.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyinfoblox2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d8c47ea9087089562ac9f8b6a6010c51a46e608989586fecee359307e8862fa
MD5 dba0473633bb85a9fab62163cf6bacb1
BLAKE2b-256 893a2fed03b2a5a21d08bdde4ad2ef7b9a8b06243450dd159a8032b192b6b186

See more details on using hashes here.

Supported by

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