A low level, lightweight client for interacting with the Infoblox WAPI
Project description
ibwapi
A low level, lightweight client for interacting with the Infoblox WAPI.
>>> import ibwapi
>>> wapi = ibwapi.Client(
... 'grid.example.com', # grid master FQDN
... ('admin','infoblox'), # auth tuple
... wapi_version='2.13.4' # WAPI version (optional)
... )
>>> resp = wapi.get(
... 'record:a', # object type
... {'name:':'myhost.example.com'}, # filters
... return_fields=['default','comment'] # return fields
... )
>>> resp
[{'_ref': 'record:a/ZG5zLmJpbmRfYSQuMS5uZXQuZHZvbHZlLmRzLGRjMSwxMC4xNy4xLjMx:myhost.example.com/Internal', 'comment': 'My Host', 'ipv4addr': '192.168.100.1', 'name': 'myhost.example.com', 'view': 'Internal'}]
>>> wapi.update(
... resp[0]['_ref'], # object ref
... {'comment':'New Comment'} # updated fields
... )
'record:a/ZG5zLmJpbmRfYSQuMS5uZXQuZHZvbHZlLmRzLGRjMSwxMC4xNy4xLjMx:myhost.example.com/Internal'
Installing and Supported Versions
ibwapi is available on PyPI:
$ python -m pip install ibwapi
This project depends on Requests, which is licensed under the Apache License 2.0. It will generally follow the Python versions supported by Requests which is currently 3.8+.
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 ibwapi-0.1.0.tar.gz
.
File metadata
- Download URL: ibwapi-0.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed5f3bb5282b4748b04d58dd6b9ba1d4d776bf85e076b5b38dd8d49912dc5a7c |
|
MD5 | 5a3974ae0b8d4128b58facaef52f580a |
|
BLAKE2b-256 | 83102e44b42f3592c0fb8873d6fe05b0ab41de9d21735071cce8d6e732dfa68c |
Provenance
The following attestation bundles were made for ibwapi-0.1.0.tar.gz
:
Publisher:
publish.yml
on rmbolger/py-ibwapi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ibwapi-0.1.0.tar.gz
- Subject digest:
ed5f3bb5282b4748b04d58dd6b9ba1d4d776bf85e076b5b38dd8d49912dc5a7c
- Sigstore transparency entry: 147694844
- Sigstore integration time:
- Predicate type:
File details
Details for the file ibwapi-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ibwapi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07294633232032ed84241bd1a6fe4f309e5ea8d251799a261ea0df24ec1c12a6 |
|
MD5 | 48294ad14ad68dd6c1397bab646ede49 |
|
BLAKE2b-256 | b067035a72b539504b5e02d71b7efc3edca54713b2c9a8332fcb3a74e5acaa8c |
Provenance
The following attestation bundles were made for ibwapi-0.1.0-py3-none-any.whl
:
Publisher:
publish.yml
on rmbolger/py-ibwapi
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ibwapi-0.1.0-py3-none-any.whl
- Subject digest:
07294633232032ed84241bd1a6fe4f309e5ea8d251799a261ea0df24ec1c12a6
- Sigstore transparency entry: 147694845
- Sigstore integration time:
- Predicate type: