Skip to main content

Infoblox NetMRI Client

https://codecov.io/github/infobloxopen/infoblox-netmri/coverage.svg?branch=master https://img.shields.io/travis/infobloxopen/infoblox-netmri.svg https://img.shields.io/pypi/v/infoblox-netmri.svg

A simple client for the Infoblox NetMRI RESTful API.

Features

  • Enables execution of RESTful API calls on the NetMRI via Python.

  • HTTP and HTTPS

Installation

Install infoblox-netmri using pip:

pip install infoblox-netmri

Usage

It’s simple to use. Just create an InfobloxNetMRI object and then call the api_request method. Almost every API request will return a dictionary. It will contain the outputs documented in the online API documentation.

from infoblox_netmri.client import InfobloxNetMRI

c = InfobloxNetMRI(host="netmri",
                   username="admin",
                   password="password")

devices = c.api_request('devices/index', {'limit': 10})

Now, devices contains a dictionary of the API call outputs. In this case, it contains the standard keys returned by “list” style methods (index, search, find - see the docs): current, start, limit, and the plural form of the model, devices. This last is an array of dictionaries with the device details, while the others describe the “paging” information of the result. So, we really want to loop through devices['devices']:

FORMAT='{:30} {:16} {}'
print(FORMAT.format('Device Name', 'IP Address', 'Vendor'))
for d in devices['devices']:
    print(FORMAT.format(d['DeviceName'], d['DeviceIPDotted'], d['DeviceVendor']))

NetMRI Documentation

To see documentation on the calls available, visit the page /api/docs on your NetMRI.

Please also see https://github.com/infobloxopen/netmri-toolkit and https://github.com/infobloxopen/infoblox-netmri/tree/master/examples/tutorial for examples.

Metadata

Release files for infoblox-netmri 3.8.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infoblox-netmri 3.8.0.0
File Size Uploaded Provenance Actions
infoblox-netmri-3.8.0.0.tar.gz 10.0 MB Without provenance Details for infoblox-netmri-3.8.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for infoblox-netmri 3.8.0.0
File Interpreter ABI Platform Actions
infoblox_netmri-3.8.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for infoblox_netmri-3.8.0.0-py2.py3-none-any.whl

Total release size: 23.8 MB

Release files / infoblox-netmri-3.8.0.0.tar.gz

Download URL infoblox-netmri-3.8.0.0.tar.gz
Size 10.0 MB
Tags Source
SHA-256 checksum
How to use checksums
600419c84f900af7b7dd2edbe948d16c6dbecce16456cd383226aecc79808bf5
BLAKE2b-256 checksum
How to use checksums
a6db95f628db8cd34ffc3bed83bce748483ec349b2fa894e886bb8e893428de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.7

Release files / infoblox_netmri-3.8.0.0-py2.py3-none-any.whl

Download URL infoblox_netmri-3.8.0.0-py2.py3-none-any.whl
Size 13.8 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eb09cd7d35d226511da1f0ebef36fb51cdbfde584a58ae317482020ba9441131
BLAKE2b-256 checksum
How to use checksums
d2f71034900898ecc6f2eeb187d251456d7efeea354500c5238e61b17c94236c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.7

Security for infoblox-netmri 3.8.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page