Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (22 loc) · 687 Bytes

api.rst

File metadata and controls

28 lines (22 loc) · 687 Bytes

infoblox API

To interact with an Infoblox device, you must first create a Session object instance that will be passed to any object you create. The following example shows how to create a host.:

import infoblox

session = infoblox.Session('127.0.0.1', 'admin', 'infoblox')
host = infoblox.Host(session)
host.name = 'foo.bar.net'
host.add_ipv4addr('10.0.0.1')
if host.save():
    print('Host saved')

infoblox.Session

infoblox.Host

infoblox.HostIPv4

infoblox.HostIPv6