{"id":16480921,"url":"https://github.com/ramblingcookiemonster/infoblox","last_synced_at":"2025-07-12T16:37:41.981Z","repository":{"id":27600476,"uuid":"31083901","full_name":"RamblingCookieMonster/Infoblox","owner":"RamblingCookieMonster","description":"Infoblox PowerShell Module","archived":false,"fork":false,"pushed_at":"2016-01-17T22:54:08.000Z","size":66,"stargazers_count":31,"open_issues_count":0,"forks_count":12,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-26T12:53:10.890Z","etag":null,"topics":["infoblox","powershell","powershell-modules"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RamblingCookieMonster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-20T20:32:58.000Z","updated_at":"2025-06-14T06:11:10.000Z","dependencies_parsed_at":"2022-09-14T02:10:29.854Z","dependency_job_id":null,"html_url":"https://github.com/RamblingCookieMonster/Infoblox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RamblingCookieMonster/Infoblox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamblingCookieMonster%2FInfoblox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamblingCookieMonster%2FInfoblox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamblingCookieMonster%2FInfoblox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamblingCookieMonster%2FInfoblox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamblingCookieMonster","download_url":"https://codeload.github.com/RamblingCookieMonster/Infoblox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamblingCookieMonster%2FInfoblox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265024279,"owners_count":23699589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infoblox","powershell","powershell-modules"],"created_at":"2024-10-11T13:05:46.418Z","updated_at":"2025-07-12T16:37:41.746Z","avatar_url":"https://github.com/RamblingCookieMonster.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/9xnsg4e3hfa7uank/branch/master?svg=true)](https://ci.appveyor.com/project/RamblingCookieMonster/infoblox)\n\nInfoblox PowerShell Module\n=============\n\nThis is a PowerShell module for working with the Infoblox Web API.\n\nThis is a quick and dirty implementation based on my environment's configuration, with limited functionality.  Contributions to improve this would be more than welcome!\n\nSome caveats:\n\n * A number of shortcuts have been taken given that this is a fast publish.  This is more of a demo module; I have no plans to address these, but contributions are welcome!\n   * Limited testing, limited validation of edge case scenarios\n   * Limited error handling\n   * Limited comment based help and examples (some may be outdated)\n\n#Functionality\n\nSearch Infoblox DHCP leases:\n  * ![Search for Infoblox DHCP leases](/Media/Get-IBLease.png)\n\nSearch for Infoblox networks\n  * ![Search for Infoblox networks](/Media/Get-IBObject.png)\n\nSearch for Infoblox for IPAM IPv4 addresses between two IPs\n  * ![Search for Infoblox DHCP leases](/Media/Get-IBObjectFilter.png)\n\n#Prerequisites\n\n * You must be using Windows PowerShell 3 or later on the system running this module\n * You must have your Infoblox configured to allow access to the Web API\n * You must have access to query the Infoblox Web API\n * We serialize a default Uri Infoblox.xml in the module path - you must have access to that path for this functionality\n * Module folder downloaded, unblocked, extracted, available to import\n\n#Instructions\n\n```powershell\n# One time setup\n    # Download the repository\n    # Unblock the zip\n    # Extract the Infoblox folder to a module path (e.g. $env:USERPROFILE\\Documents\\WindowsPowerShell\\Modules\\)\n\n# Import the module.\n    Import-Module Infoblox    #Alternatively, Import-Module \\\\Path\\To\\Infoblox\n\n# Get commands in the module\n    Get-Command -Module Infoblox\n\n# Get help for a command or two\n    Get-Help Set-IBConfig -Full\n    Get-Help New-IBSession -Full\n\n# Optional persistent default config setup\n# This configures Infoblox.xml in your module folder, will load each time you import the module\n    Set-IBConfig -Uri \"https://grid.contoso.com\" -IBVersion \"v1.6\"\n\n# View the current config settings\n    Get-IBConfig\n\n# Establish a new session.  This uses the IBConfig Uri and IBVersion\n    New-IBSession -Credential (Get-Credential)\n\n    # Note! if you don't have certificates set up correctly, you may see the following error.  Set-TrustAllCertsPolicy is a temporary solution\n    # Error retrieving session: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.\n    # Set-TrustAllCertsPolicy\n\n# Get all leases \n    Get-IBLease\n\n# Get leases for any address in 192.168.0., with a free binding state\n    Get-IBLease -Address 192.168.0. | Where {$_.binding_state -like \"FREE\"}\n\n# Get a list of all networks defined on the InfoBlox.  Get-IBObject is a generic wrapper to pull random object types\n    Get-IBObject -Object Network\n\n# Maybe you want to go from an IP address to a network:\n\n    # Get network from IPAM for a single IP\n        $filter = [pscustomobject]@{\n                    Object=\"ip_address\"\n                    Operator=\"=\"\n                    Filter=\"192.168.0.54\"\n                }\n\n        $Network = Get-IBObject -Filters $filter -Object IPV4Address | Select -ExpandProperty network\n\n\n    # Get the corresponding network object\n        $filter = [pscustomobject]@{\n                    Object=\"network\"\n                    Operator=\"=\"\n                    Filter=$Network\n                }\n\n        Get-IBObject -Filters $filter -Object Network \n\n# Find all IPAM IPv4 Addresses between two IPs\n    $filters = [pscustomobject]@{\n        Object=\"ip_address\"\n        Operator=\"\u003e=\"\n        Filter=\"192.168.0.10\"\n    },\n    [pscustomobject]@{\n        Object=\"ip_address\"\n        Operator=\"\u003c=\"\n        Filter=\"19.168.0.100\"\n    }\n\n    Get-IBObject -Filters $filters -Object IPV4Address\n```\n\t\n#NOTES\n\n  Publishing this as a reference to [this blog post](http://ramblingcookiemonster.github.io/Querying-the-Infoblox-Web-API/).  Infoblox' Web API highlights [the need for vendors to provide PowerShell modules](http://ramblingcookiemonster.github.io/REST-PowerShell-and-Infoblox/) layered on top of their APIs, rather than offloading this to their customers.\n\n  * The API documentation this used was 962 pages (most of which you can skip, thankfully)\n  * Unique syntax and formatting that you must read up on and implement, including features like paging and filters\n  * I'm not too familiar with the Infoblox.  I'm a consumer of a few services, and happen to like using PowerShell.  Someone more familiar with the technology (the vendor) should be writing a PowerShell module.\n  * I'm only going to spend as much time as needed to get a result that meets my needs for reliability, functionality, and configuration.\n  * I have other priorities.  Reading through pages upon pages of documentation that only applies to a single product's API is inefficient.  This is one of the benefits of PowerShell; I learn a bit about the language, and it applies to the AD, VMware, SQL, and other PowerShell-enabled technologies.\n\nThanks to Don Smith and Anders Wahlqvist for ideas (and likely code snippets, this was written a long time ago)\n\n * [REST-PowerShell](https://github.com/Infoblox-API/REST-PowerShell)\n * [Infoblox-PowerShell-Module](https://github.com/DollarUnderscore/Infoblox-PowerShell-Module)\n\nProject Status, 1/17/2016: I no longer work with or have access to an Infoblox. Feel free to fork this or use it as needed, but there will likely be no further development, barring external contributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framblingcookiemonster%2Finfoblox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framblingcookiemonster%2Finfoblox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framblingcookiemonster%2Finfoblox/lists"}