{ "info": { "author": "Marin Atanasov Nikolov", "author_email": "dnaeon@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pyinfoblox - Infoblox WAPI module for Python\n============================================\n\n.. image:: https://img.shields.io/pypi/v/pyinfoblox.svg\n :target: https://pypi.python.org/pypi/pyinfoblox/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/dm/pyinfoblox.svg\n :target: https://pypi.python.org/pypi/pyinfoblox/\n :alt: Downloads\n\npyinfoblox is a Python module for interfacing with the Infoblox WAPI.\n\nFor more information about the Infoblox WAPI, please refer to the\n`Infoblox WAPI documentation `_.\n\npyinfoblox is Open Source and licensed under the\n`BSD License `_.\n\nRequirements\n============\n\n* `Python 2.7.x or 3.x `_\n* `requests `_\n\nContributions\n=============\n\npyinfoblox is hosted on\n`Github `_. Please contribute\nby reporting issues, suggesting features or by sending patches\nusing pull requests.\n\nInstallation\n============\n\nThe easiest way to install pyinfoblox is by using ``pip``:\n\n.. code-block:: bash\n\n $ pip install pyinfoblox\n\nIn order to install the latest version of pyinfoblox from the\nGithub repository simply execute these commands instead:\n\n.. code-block:: bash\n\n $ git clone https://github.com/dnaeon/pyinfoblox.git\n $ cd pyinfoblox\n $ python setup.py install\n\nExamples\n========\n\nThe first thing we do when using ``pyinfoblox`` is to instantiate a\nnew ``InfobloxWAPI`` object.\n\n.. code-block:: python\n\n >>> from __future__ import print_function\n >>> from pyinfoblox import InfobloxWAPI\n >>> infoblox = InfobloxWAPI(\n ... username='admin',\n ... password='p4ssw0rd',\n ... wapi='https://localhost/wapi/v1.1/'\n ... )\n\nGetting Infoblox networks is as easy as doing:\n\n.. code-block:: python\n\n >>> networks = infoblox.network.get()\n >>> print(networks)\n\nGetting a specific network in Infoblox is easy too:\n\n.. code-block:: python\n\n >>> network = infoblox.network.get(network='192.168.1.0/24')\n >>> print(network)\n\nAnother example that will get all Infoblox ``ipv4address`` objects.\n\n.. code-block:: python\n\n >>> ipv4address = infoblox.ipv4address.get()\n >>> print(ipv4address)\n\nHere is how to create a new Infoblox network:\n\n.. code-block:: python\n\n >>> objref = infoblox.network.create(\n ... network='192.168.1.0/24',\n ... comment='This is my test network'\n ... )\n >>> print(objref)\n u'network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default'\n\nCreating new objects returns a reference to the newly created\nobject in Infoblox.\n\nWe can also update objects. When we update objects in Infoblox we\nneed to pass the object reference as well. This is how we can\nupdate the ``network`` we created in the previous example\n\n.. code-block:: python\n\n >>> infoblox.network.update(\n ... objref='network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default',\n ... comment='This is my updated network'\n ... )\n u'network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default'\n >>> network = infoblox.network.get(network='192.168.1.0/24')\n >>> print(network[0]['comment'])\n This is my updated network\n\nWhen we no longer need an Infoblox object we can always remove it.\nJust make sure to pass the object reference when deleting objects.\n\n.. code-block:: python\n\n >>> infoblox.network.delete(\n ... objref='network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default'\n ... )\n u'network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default'\n\nAs a last example we will see how to call functions on\nInfoblox objects.\n\nHere is how to call the ``next_available_ip`` function on a\n``network`` object in order to get the next 3 available IP addresses:\n\n.. code-block:: python\n \n >>> infoblox.network.function(\n ... objref='network/ZG5zLm5ldHdvcmskMTkyLjE2OC4xLjAvMjQvMA:192.168.1.0/24/default',\n ... _function='next_available_ip',\n ... num=3\n ... )\n {u'ips': [u'192.168.1.21', u'192.168.1.22', u'192.168.1.23']}\n\nThis example below calls the ``restartservices`` function on a\n``grid`` object:\n\n.. code-block:: python\n\n >>> from __future__ import print_function\n >>> from pyinfoblox import InfobloxWAPI\n >>> infoblox = InfobloxWAPI(\n ... username='admin',\n ... password='p4ssw0rd',\n ... wapi='https://localhost/wapi/v1.1/'\n ...)\n >>> grids = infoblox.grid.get()\n >>> print(grids)\n [{'_ref': 'grid/b25lLmNsdXN0ZXIkMA:com'}]\n >>> grid = grids[0]['_ref']\n >>> infoblox.grid.function(\n ... objref=grid,\n ... _function='restartservices',\n ... member_order='SEQUENTIALLY',\n ... restart_option='RESTART_IF_NEEDED',\n ... sequential_delay=10,\n ... service_option='ALL'\n ...)\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/dnaeon/pyinfoblox/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dnaeon/pyinfoblox", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pyinfoblox", "package_url": "https://pypi.org/project/pyinfoblox/", "platform": "", "project_url": "https://pypi.org/project/pyinfoblox/", "project_urls": { "Download": "https://github.com/dnaeon/pyinfoblox/releases", "Homepage": "https://github.com/dnaeon/pyinfoblox" }, "release_url": "https://pypi.org/project/pyinfoblox/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "Infoblox WAPI module for Python", "version": "0.1.5" }, "last_serial": 4244789, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8874c998fc781c8d3dda4b6e1c965d82", "sha256": "588e2e810f2967011cd310b34fc5cb80c4a57e75dcbf806dfb74b921c07cb86a" }, "downloads": -1, "filename": "pyinfoblox-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8874c998fc781c8d3dda4b6e1c965d82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4187, "upload_time": "2014-11-29T16:27:25", "url": "https://files.pythonhosted.org/packages/66/17/f723e9371ca85a258979bdac435cba9232263e97959ebaf486af8187af2e/pyinfoblox-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dbdae6e5634eb0a843276686ec3bf51d", "sha256": "4b945062275f2f1e4ceb6c930e9e191fd444936a8f4ea1f46bfa95a3d6a66129" }, "downloads": -1, "filename": "pyinfoblox-0.1.1.tar.gz", "has_sig": false, "md5_digest": "dbdae6e5634eb0a843276686ec3bf51d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4344, "upload_time": "2015-02-12T08:45:45", "url": "https://files.pythonhosted.org/packages/6a/71/b92d4c7c293b857902e8228e4e3064fac4c59cfe3ae8810cf1878701419c/pyinfoblox-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "2d776cc390fc1a6169247b9e47ef4ce6", "sha256": "eea151c9d25c96e1789432cf2c3d9e6dd3c3d7cdb8da74326aa56d1b41a0555c" }, "downloads": -1, "filename": "pyinfoblox-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2d776cc390fc1a6169247b9e47ef4ce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4538, "upload_time": "2015-03-30T08:17:32", "url": "https://files.pythonhosted.org/packages/1d/f2/435baa41bbba2afea77719b7d4b3899c3709aae0f7ad532b65dd61dc89e3/pyinfoblox-0.1.3.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a85b678588fa91a1851b9c78b8d21747", "sha256": "88b48a2eb482ddf5eedc850b014d9fc16f04e1b2133891f7e1118894e06bf226" }, "downloads": -1, "filename": "pyinfoblox-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a85b678588fa91a1851b9c78b8d21747", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4768, "upload_time": "2018-09-06T13:27:29", "url": "https://files.pythonhosted.org/packages/9d/b3/61bc73e7e1709ce0afb41af1e3d767d1407d1310162a8bfa4e770864a671/pyinfoblox-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a85b678588fa91a1851b9c78b8d21747", "sha256": "88b48a2eb482ddf5eedc850b014d9fc16f04e1b2133891f7e1118894e06bf226" }, "downloads": -1, "filename": "pyinfoblox-0.1.5.tar.gz", "has_sig": false, "md5_digest": "a85b678588fa91a1851b9c78b8d21747", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4768, "upload_time": "2018-09-06T13:27:29", "url": "https://files.pythonhosted.org/packages/9d/b3/61bc73e7e1709ce0afb41af1e3d767d1407d1310162a8bfa4e770864a671/pyinfoblox-0.1.5.tar.gz" } ] }