Skip to main content

Infoblox NIOS 的接口和 CLI 应用程序

项目描述

用于与 Infoblox NIOS 交互的非官方 python 库。该库不以任何方式隶属于Infoblox, Inc. <http://www.infoblox.com>

PyPI 版本 下载 构建状态

文档

http://infoblox.readthedocs.org

要求

  • Python 2.6、2.7、3.2、3.3

  • argparse <http://pypi.python.org/pypi/argparse>(仅限 Python 2.6)

  • 请求 <http://docs.python-requests.org/en/latest/>

命令行使用

usage: infoblox-host [-h] [--version] [--debug] [-u USERNAME] [-p PASSWORD]
          <Infoblox Address> {add,remove} <FQDN> [IPv4 Address] [COMMENT]

Add or remove a host from the Infoblox appliance

positional arguments:
  <Infoblox Address>    The Infoblox hostname
  {add,remove}          Specify if you are adding or removing a host
  <FQDN>                The FQDN for the host
  [IPv4 Address]        The IPv4 address for the host
  [COMMENT]             A comment set on the host when adding.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --debug               Enable debug output
  -u USERNAME, --username USERNAME
                        The username to perform the work as. Default: admin
  -p PASSWORD, --password PASSWORD
                        The password to authenticate with. Default: infoblox

图书馆使用

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-1.1.1.tar.gz (10.0 kB 查看哈希

已上传 source