Skip to main content

Python client for Infoblox WAPI

Project description

PyInfoblox2

PyPi Stars Badge Forks Badge Issues Badge Pull Requests Badge GitHub contributors License Badge Downloads Downloads/Week Downloads/Month

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 Distribution

pyinfoblox2-1.0.1.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

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

pyinfoblox2-1.0.1-py3-none-any.whl (85.1 kB view details)

Uploaded Python 3

File details

Details for the file pyinfoblox2-1.0.1.tar.gz.

File metadata

  • Download URL: pyinfoblox2-1.0.1.tar.gz
  • Upload date:
  • Size: 44.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyinfoblox2-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1d3ce53d3b68e3a67b7f0df30819b5081ee3bf579f886632973579b330fe1958
MD5 4b91ed5de6958126475bd1ad28aad9a5
BLAKE2b-256 4d2a419d423f5cf037c1460fa716762fcce847a9cc8248f87955744ba42dbe43

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyinfoblox2-1.0.1.tar.gz:

Publisher: publish.yml on andy-shady-org/pyinfoblox2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pyinfoblox2-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 85.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyinfoblox2-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9024fe40d3140dcbc0d13454b7f3fb28fa8a825b9f4f222533af65ded19bbfe0
MD5 64ae33218a409b4716bde5ebdfb4cc0e
BLAKE2b-256 fd2b3ddc8f8f5ec47d803934c637a1cb23da2065a40c3f155daf72537ec70096

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyinfoblox2-1.0.1-py3-none-any.whl:

Publisher: publish.yml on andy-shady-org/pyinfoblox2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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