Python client for Infoblox WAPI
Project description
PyInfoblox2
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d3ce53d3b68e3a67b7f0df30819b5081ee3bf579f886632973579b330fe1958
|
|
| MD5 |
4b91ed5de6958126475bd1ad28aad9a5
|
|
| BLAKE2b-256 |
4d2a419d423f5cf037c1460fa716762fcce847a9cc8248f87955744ba42dbe43
|
Provenance
The following attestation bundles were made for pyinfoblox2-1.0.1.tar.gz:
Publisher:
publish.yml on andy-shady-org/pyinfoblox2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyinfoblox2-1.0.1.tar.gz -
Subject digest:
1d3ce53d3b68e3a67b7f0df30819b5081ee3bf579f886632973579b330fe1958 - Sigstore transparency entry: 200518500
- Sigstore integration time:
-
Permalink:
andy-shady-org/pyinfoblox2@ce4c37a8673f36ed1bfcd84589daa925cb1c928e -
Branch / Tag:
refs/tags/V1.0.1 - Owner: https://github.com/andy-shady-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ce4c37a8673f36ed1bfcd84589daa925cb1c928e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9024fe40d3140dcbc0d13454b7f3fb28fa8a825b9f4f222533af65ded19bbfe0
|
|
| MD5 |
64ae33218a409b4716bde5ebdfb4cc0e
|
|
| BLAKE2b-256 |
fd2b3ddc8f8f5ec47d803934c637a1cb23da2065a40c3f155daf72537ec70096
|
Provenance
The following attestation bundles were made for pyinfoblox2-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on andy-shady-org/pyinfoblox2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyinfoblox2-1.0.1-py3-none-any.whl -
Subject digest:
9024fe40d3140dcbc0d13454b7f3fb28fa8a825b9f4f222533af65ded19bbfe0 - Sigstore transparency entry: 200518503
- Sigstore integration time:
-
Permalink:
andy-shady-org/pyinfoblox2@ce4c37a8673f36ed1bfcd84589daa925cb1c928e -
Branch / Tag:
refs/tags/V1.0.1 - Owner: https://github.com/andy-shady-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ce4c37a8673f36ed1bfcd84589daa925cb1c928e -
Trigger Event:
release
-
Statement type: