Infoblox

Infoblox

Certified
Enterprise Edition

Infoblox DDI (DNS, DHCP, IPAM) tasks and triggers for Kestra, covering both NIOS Grid Manager (WAPI REST API) and Universal DDI (Cloud Services Portal API).

Automate Infoblox NIOS Grid Manager: manage IPv4/IPv6 networks, fixed addresses, DHCP ranges, DNS A/AAAA/CNAME/PTR/host records, list DHCP leases, and trigger flows on IP allocation events. Automate Infoblox Universal DDI (Cloud Services Portal): manage IP spaces, address blocks, subnets, addresses, DHCP ranges and fixed addresses, authoritative zones, and type-discriminated DNS records under the csp.* tasks.

How to use the Infoblox plugin

Manage Infoblox DDI — IPv4/IPv6 networks, addresses, DHCP ranges, fixed addresses, DNS records, and leases — from Kestra flows. The plugin covers two separate Infoblox products with two separate task families:

  • NIOS Grid Manager, via the WAPI REST API — tasks under ipam.*.
  • Universal DDI (Cloud Services Portal), Infoblox's SaaS offering — tasks under csp.*.

They are not interchangeable: pointing a NIOS task at a CSP host (or vice versa) fails, since auth, object identifiers, and the object model all differ. Pick the family matching your Infoblox deployment.

Authentication

NIOS Grid Manager (ipam.*): all tasks and the trigger require url (the Grid Manager base URL, e.g. https://infoblox.example.com), username, and password (HTTP Basic credentials; password is a secret) — all required. Optionally set wapiVersion (default v2.12) and options for HTTP client configuration, including relaxing TLS verification for appliances with self-signed certificates.

Universal DDI (csp.*): all tasks require apiKey (a Cloud Services Portal API key, sent as Authorization: Token <apiKey>; secret, required). url is optional and defaults to https://csp.infoblox.com (US region) — set it to your tenant's regional host, e.g. https://csp.eu.infoblox.com (EU). Optionally set options for HTTP client configuration. There is no wapiVersion equivalent — the base path is fixed at /api/ddi/v1.

Store secrets in secrets and set connection properties on each task.

For ipam.* tasks, url must point at a NIOS Grid Manager exposing the WAPI. The Infoblox Cloud Services Portal (Universal DDI) is a different product with its own API, served by the csp.* tasks: pointing a task of one family at a host of the other fails with a diagnostic error.

Tasks

NIOS Grid Manager (WAPI)

Tasks are grouped by resource type under ipam.*. A few conventions apply across all of them:

  • Object references — Infoblox identifies objects by WAPI _ref strings, not numeric IDs. Run a List (or Get) task to retrieve a _ref, then pass it as ref to Get, Update, and Delete.
  • List tasks share one shape: optional filters (a map of WAPI search parameters) and returnFields (replaces the default field set — only the fields you name, plus _ref, are returned), with maxResults (page size, at least 1, default 1000) and fetchType (FETCH, FETCH_ONE, STORE, or NONE; default FETCH).
  • Get tasks (network, fixedaddress, ipv6fixedaddress and the DNS record types) take either ref or the natural-key properties listed for each task, never both. See Looking up one object with Get.
  • Update tasks require ref plus at least one mutable field, and reject an empty payload.
  • Extensible attributes — the fixed address and DNS record tasks accept them on Create, Update and List. See Extensible attributes.
  • DNS record tasks accept an optional ttl; when set, the plugin enables use_ttl automatically.

IPv4 IPAM

  • ipam.network — List (objectType: NETWORK or NETWORKCONTAINER), Get, Create, Update, Delete. Create requires network (CIDR); optional networkView, comment. Update changes comment.
  • ipam.networkview — List, Create, Delete. Create requires name; optional comment.
  • ipam.address — List, NextAvailable, AllocateNextAvailable and Release. NextAvailable requires network (CIDR; optional networkView, num (1 to 20, default 1; WAPI documents no maximum, 20 is the limit of Infoblox's Ansible nios_next_ip lookup), exclude, and rangeStartAddr to use a DHCP range instead of the network); it only PEEKS at free addresses through the WAPI next_available_ip function and reserves NOTHING, so use AllocateNextAvailable for an atomic reservation. AllocateNextAvailable requires networkRef (a network _ref or CIDR; optional networkView); it atomically reserves one address as a RESERVED fixed address and returns its _ref. Pass that to Release (ref) to delete the reservation. Allocation fails if the network is exhausted.
  • ipam.fixedaddress — List, Get, Create, Update, Delete. Get takes ref or ipv4addr (optional networkView). Create requires ipv4addr; optional mac, matchClient, name, networkView, comment. With the WAPI-default matchClient (MAC_ADDRESS), mac is required — set matchClient: RESERVED for a placeholder without a MAC. Update changes name, mac, comment and extensible attributes.
  • ipam.range — List, Create, Update, Delete. Create requires startAddr and endAddr; optional network, networkView, comment.

IPv6 IPAM

  • ipam.ipv6network — List, Create, Update, Delete. Create requires network (CIDR); optional networkView, comment.
  • ipam.ipv6address — List, plus AllocateNextAvailable (requires networkRef; optional networkView) and Release (requires ref), with the same reserve-one-address semantics as ipam.address.
  • ipam.ipv6fixedaddress — List, Get, Create, Update, Delete. Get takes ref or ipv6addr (optional networkView). Create requires ipv6addr; optional duid, matchClient, name, comment. With the WAPI-default matchClient (DUID), duid is required — set matchClient: RESERVED for a placeholder without a DUID. Update changes ipv6addr, duid, matchClient, name, comment and extensible attributes.
  • ipam.ipv6range — List, Create, Delete. Create requires startAddr and endAddr; optional comment.

DNS records

  • ipam.dns.arecord — List, Get, Create, Update, Delete. Get takes ref or name / ipv4addr (optional dnsView). Create requires name (FQDN) and ipv4addr; optional dnsView, ttl, comment, extensibleAttributes.

  • ipam.dns.aaaarecord — List, Get, Create, Update, Delete. Get takes ref or name / ipv6addr (optional dnsView). Create requires name and ipv6addr; optional dnsView, ttl, comment, extensibleAttributes.

  • ipam.dns.cnamerecord — List, Get, Create, Update, Delete. Get takes ref or name (optional dnsView). Create requires name (alias FQDN) and canonical (target FQDN); optional dnsView, ttl, comment, extensibleAttributes.

  • ipam.dns.ptrrecord — List, Get, Create, Update, Delete. Get takes ref or any of name, ptrdname, ipv4addr, ipv6addr (optional dnsView). Create requires name and ptrdName, plus either ipv4addr or ipv6addr; optional dnsView, ttl, comment, extensibleAttributes.

  • ipam.dns.hostrecord — List, Get, Create, Update, Delete. Get takes ref or name (optional dnsView). Create requires name and ipv4Addrs (a list of address entries, each with at least ipv4addr); optional dnsView, comment, extensibleAttributes. Update requires ref and changes, in place, any of name (which changes the _ref: use the ref output afterwards), ipv4Addrs, ipv6Addrs and aliases (each replaced as a whole), ttl, comment, and extensible attributes (extensibleAttributes merged, removeExtensibleAttributes removed).

  • ipam.dns.zoneauth — List, Get. List filters by dnsView, fqdn, fqdnRegex (fqdn~) and zoneFormat (FORWARD, IPV4, IPV6). Get requires fqdn (trimmed, lowercased, trailing dot removed); optional dnsView (needed when the zone exists in several views) and searchParents to return the first zone found when walking up the name's parent suffixes (not supported for *.in-addr.arpa / *.ip6.arpa).

  • ipam.dns.record — Search, FqdnExists. Search requires recordType (HOST, A, CNAME, PTR); optional name, nameRegex (name~), zone, ipv4addr (not for CNAME), ptrdname (PTR only), dnsView. FqdnExists requires fqdn (optional dnsView); it checks host (name and alias), A, AAAA, CNAME, MX, TXT and SRV records by name, PTR records by ptrdname (the name they point to), and auth/delegated/forward zones, and outputs exists, recordTypes and the matching records.

Leases

  • ipam.lease — List only (read-only DHCP lease lookup).

Universal DDI (Cloud Services Portal)

Tasks are grouped by resource type under csp.*. A few conventions apply across all of them:

  • Object identifiers — Universal DDI identifies objects by id, itself a resource path (e.g. ipam/subnet/<uuid>), not a bare UUID and not a WAPI _ref. Run a List (or Get) task to retrieve an id, then pass it as objectId to Get, Update, and Delete (id/type are reserved property names on Kestra tasks, so these properties are named objectId/recordType instead of id/type).
  • List tasks share one shape: optional filters (a map of search parameters), limit (the _limit page size, default 100), and fetchType (FETCH, FETCH_ONE, STORE, or NONE; default FETCH). Paging is offset-based and stops at the first short page.
  • Update tasks require objectId plus at least one mutable field, and reject an empty payload.
  • CSP endpoint paths, field names, and envelope shapes are implemented per the publicly documented Universal DDI API surface and have not been verified against a live CSP tenant — treat them as best-effort pending confirmation.

Task groups:

  • csp.ipam.ipspace — List, Create, Delete. Create requires name; optional comment. The Universal DDI equivalent of a NIOS network view.
  • csp.ipam.addressblock — List, Create, Update, Delete. Create requires addressBlock (CIDR string, split locally into address+cidr) and space (an ipam/ip_space id); optional comment.
  • csp.ipam.subnet — List, Get, Create, Update, Delete. Create requires subnet (CIDR string, split locally into address+cidr) and space; a malformed CIDR (missing prefix, out-of-range prefix, non-numeric prefix) is rejected locally before any HTTP call.
  • csp.ipam.address — List, plus AllocateNextAvailable and Release. AllocateNextAvailable requires parentId (a subnet or address block id) and space; it fetches a candidate from the nextavailableip endpoint then creates the address — a best-effort two-step sequence, unlike NIOS WAPI's confirmed-atomic func: nextavailableip. Pass the output id to Release to delete the reservation.
  • csp.ipam.range — List, Create, Update, Delete. Create requires start, end, and space.
  • csp.dns.authzone — List, Create, Delete. Create requires fqdn; optional comment.
  • csp.dns.record — List, Get, Create, Update, Delete. Universal DDI unifies A, AAAA, CNAME, PTR, TXT, MX, NS, and SRV into one object discriminated by recordType. Create requires zone, nameInZone, recordType, and rdata; rdata must carry the key recordType requires (address for A/AAAA, dname for CNAME/PTR/NS, text for TXT, exchange for MX, target for SRV) or the task rejects it, naming the missing key. Update requires recordType alongside rdata to validate it. Both accept an optional ttl; when set, use_ttl is enabled alongside it, mirroring the WAPI convention (unverified against a live CSP tenant).
  • csp.ipam.host — List, Get, Create, Update, Delete on ipam/host (not dhcp/host). Create requires name; optional addresses (address, space, ref), hostNames (name, zone, alias, primary_name), autoGenerateRecords, comment, tags. Every hostNames entry needs a DNS zone id in zone. There is no ttl. Update sends the fields that are set plus name, read from the current object when not set.
  • csp.dhcp.reservation — List, Get, Create, Update, Delete on the native dhcp/fixed_address object. Create requires address, space and a client match: mac, or matchType (MAC, CLIENT_TEXT, CLIENT_HEX, RELAY_TEXT, RELAY_HEX, DUID for IPv6) plus matchValue. Optional hostname, name, dhcpOptions, disableDhcp, tags, comment. Get, Update and Delete only accept dhcp/fixed_address/... ids.
  • csp.dhcp.fixedaddress — deprecated, use csp.dhcp.reservation. List, Create, Delete, unchanged: it manages ipam/address objects tagged kestra_fixed=true.

Moving from csp.dhcp.fixedaddress

csp.dhcp.fixedaddress keeps working but is deprecated: it stores reservations as ipam/address objects tagged kestra_fixed=true, and csp.dhcp.reservation does not see them (nor the other way round). To move a reservation, list the old ones with csp.dhcp.fixedaddress.List, recreate each one with csp.dhcp.reservation.Create (address, space, and mac or matchType + matchValue), then delete the old object with csp.dhcp.fixedaddress.Delete. If Create is rejected because the old object still holds the address, delete the old object first, then create the new reservation.

The ipam.dns.zoneauth, ipam.dns.record and ipam.address.NextAvailable tasks are built from the WAPI documentation and have not been verified against a live Grid.

Looking up one object with Get

NIOS. A Get task resolves one object either by ref, or by the natural-key properties listed for each task above. Set one or the other, never both. network.Get takes only ref. The output is ref plus the full object; set returnFields to choose which fields come back.

A lookup by natural key must match exactly one object:

  • no match fails with InfobloxObjectNotFoundException, naming the object type and the lookup keys;
  • several matches fail with InfobloxAmbiguousResultException, which gives the match count and the first few _ref values.

Both extend IllegalStateException. To narrow an ambiguous match, set dnsView (the same name in several DNS views) or networkView, add ipv4addr / ipv6addr (several A records sharing a name), or pass the ref you already have.

Universal DDI. A Get task (csp.ipam.subnet, csp.ipam.host, csp.dns.record, csp.dhcp.reservation) takes the objectId of the object and returns id and object. There is no natural-key lookup: use the matching List task with filters to find an id. A response with no object (wrong id, or a url that is not a Cloud Services Portal host) fails with a not-found error instead of returning an empty object. csp.dhcp.reservation.Get, Update and Delete additionally refuse any objectId that does not start with dhcp/fixed_address/.

Extensible attributes

Pass extensible attributes as a plain map of attribute name to value, or to a list of values for a multi-value attribute; the plugin converts it to the WAPI format:

extensibleAttributes: 
  Ticket: "INC0012345"
  Site: "paris"
  • Create sets them (extattrs).
  • Update merges them into the existing attributes (extattrs+): attributes you do not mention are kept. List the names to delete in removeExtensibleAttributes (extattrs-). Setting only extensible attributes is a valid update.
  • List tasks for objects that carry extensible attributes accept extensibleAttributeFilters (Ticket: "INC0012345"), sent as *Ticket=INC0012345. Setting the same *<name> key in both filters and extensibleAttributeFilters is rejected.
  • List and Get tasks (except network.Get and lease.List) return extattrs by default unless you set your own returnFields.

Every attribute must already be defined in the Grid, otherwise WAPI rejects the request with a 400.

Large extractions

List tasks page through the results automatically, so no paging property is needed. By default (fetchType: FETCH) all rows are kept in the task outputs, which does not scale to a large Grid or tenant. Set fetchType: STORE to write the rows to internal storage and receive a uri output instead, then read the file from a later task. STORE keeps the task outputs small, but it does not lower memory use on the worker: all rows are still fetched and held in memory before they are written. For very large result sets, narrow the query with filters.

- id: list_hosts
  type: io.kestra.plugin.ee.infoblox.ipam.dns.hostrecord.List
  url: "{{ secret('INFOBLOX_URL') }}"
  username: "{{ secret('INFOBLOX_USERNAME') }}"
  password: "{{ secret('INFOBLOX_PASSWORD') }}"
  fetchType: STORE

Universal DDI hosts and NIOS Host records

csp.ipam.host is the Universal DDI counterpart of a NIOS ipam.dns.hostrecord (it is not the dhcp/host object):

NIOS host record Universal DDI ipam/host
name name
ipv4Addrs / ipv6Addrs (ipv4addr, mac, ...) addresses (address, space, ref)
aliases and the record's own DNS name hostNames (name, zone, alias, primary_name)
dnsView the zone of each hostNames entry
extensible attributes tags
ttl none: ipam/host has no TTL

Each hostNames entry needs the id of a DNS zone in zone, and each addresses entry the id of its IP space in space. Look them up with csp.dns.authzone.List and csp.ipam.ipspace.List, then copy the id of the row you need, for example:

- id: find_zone
  type: io.kestra.plugin.ee.infoblox.csp.dns.authzone.List
  apiKey: "{{ secret('INFOBLOX_CSP_API_KEY') }}"
  filters: 
    _filter: 'fqdn=="example.com."'
  fetchType: FETCH_ONE

The zone id is then {{ outputs.find_zone.row.id }}. As with a NIOS host record, Update changes only the fields you set (a PATCH here, a PUT on WAPI), and addresses / hostNames replace the existing lists when you set them. Universal DDI Update tasks for hosts, ranges, reservations and DNS records also send the fields the API requires on every update (name; start and end; address, match_type and match_value; rdata), reading them from the current object with one extra GET when you do not set them.

Reachability before allocation

The plugin does not check whether an allocated address answers on the network, and this is deliberately out of scope. InetAddress.isReachable needs raw-socket privileges; without them Java silently falls back to a TCP probe on port 7, which reports free addresses that are in fact in use. It would also probe from the worker's network, which is not necessarily the one the subnet lives on.

Run the check at flow level instead, on a worker that can reach the target network, between AllocateNextAvailable and the record creation (workerSelector is the Kestra 2.x syntax; earlier versions use workerGroup with a key):

- id: allocate
  type: io.kestra.plugin.ee.infoblox.ipam.address.AllocateNextAvailable
  url: "{{ secret('INFOBLOX_URL') }}"
  username: "{{ secret('INFOBLOX_USERNAME') }}"
  password: "{{ secret('INFOBLOX_PASSWORD') }}"
  networkRef: "10.20.0.0/24"

- id: ping
  type: io.kestra.plugin.scripts.shell.Script
  workerSelector: 
    tags: 
      - network-reach
  taskRunner: 
    type: io.kestra.plugin.core.runner.Process
  env: 
    CANDIDATE_IP: "{{ outputs.allocate.ip }}"
  script: |
    if ping -c 3 -W 2 "$CANDIDATE_IP" > /dev/null 2>&1; then
      echo ': : {"outputs": {"reachable": true}}: : '
    else
      echo ': : {"outputs": {"reachable": false}}: : '
    fi

When outputs.ping.vars.reachable is true, release the reservation with ipam.address.Release (ref: "{{ outputs.allocate.ref }}") and fail the flow.

Triggers

ipam.trigger.IpAllocationTrigger (NIOS only — no Universal DDI trigger exists yet) fires when IP allocation state changes — set network (an IPv4 or IPv6 CIDR; the address family is detected automatically, required). Optionally set watchStatus (USED for allocated addresses, UNUSED for released ones; default USED) and interval (default PT1M). Each poll compares matching addresses against the previous poll (state persisted in the namespace KV store) and fires only on the delta; an empty delta does not fire. Outputs addedEvents, removedEvents, addedCount, removedCount, and network.