Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

infoblox-netmri

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

infoblox-netmri

A simple client for the Infoblox NetMRI RESTful API.

  • 3.8.0.0
  • PyPI
  • Socket score

Maintainers
4

Infoblox NetMRI Client

.. image:: https://codecov.io/github/infobloxopen/infoblox-netmri/coverage.svg?branch=master :target: https://codecov.io/github/infobloxopen/infoblox-netmri?branch=master

.. image:: https://img.shields.io/travis/infobloxopen/infoblox-netmri.svg :target: https://travis-ci.org/infobloxopen/infoblox-netmri

.. image:: https://img.shields.io/pypi/v/infoblox-netmri.svg :target: https://pypi.python.org/pypi/infoblox-netmri

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc