# infobloxopen/terraform-provider-infoblox architecture

> Architecture diagram of the GitHub repository infobloxopen/terraform-provider-infoblox, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/infobloxopen/terraform-provider-infoblox
- Repository: https://github.com/infobloxopen/terraform-provider-infoblox

## Overview

This is a Terraform provider for managing Infoblox DDI objects against either on-premises NIOS or cloud UDDI. Terraform configuration enters through the provider, which selects and configures a backend and registers resource and data-source handlers. Those handlers translate Terraform operations into core services and backend API calls, then return state to Terraform. The tree and README show broad DNS, IPAM, DHCP, security, and infrastructure capabilities; sampled resource excerpts confirm the handler-to-service pattern. Unsampled domains are represented at their exact package directories, without asserting unverified internal calls.

Main entry points: [`internal/provider/provider.go`](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/provider/provider.go) (Provider config), [`internal/core/service`](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/service) (Core services), [`main.go`](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/main.go) (Provider process), [`internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go`](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go) (Terraform handlers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Provider entry"]
  node_main["Provider process<br/>[main.go]"]
  node_provider["Provider config<br/>[provider.go]"]
end

subgraph group_domains["DDI capabilities"]
  node_dns["DNS resources"]
  node_ipam["IPAM resources"]
  node_dhcp["DHCP resources"]
  node_security["Security resources"]
  node_gridinfra["Grid and infra"]
  node_otherdomains["Other DDI domains"]
end

subgraph group_runtime["Resource runtime"]
  node_resource["Terraform handlers"]
  node_coresvc["Core services"]
  node_models["Domain models"]
  node_mappers["Backend mappers"]
end

subgraph group_backends["Backend APIs"]
  node_nios["NIOS WAPI"]
  node_uddi["UDDI API"]
end

node_terraform(("Terraform"))

node_terraform -->|"starts provider"| node_main
node_main -->|"serves"| node_provider
node_provider -->|"registers resources"| node_dns
node_provider -->|"registers resources"| node_dhcp
node_provider -->|"registers resource"| node_resource
node_provider -->|"configures client"| node_nios
node_provider -.->|"configures client"| node_uddi
node_terraform -->|"declares objects"| node_ipam
node_terraform -->|"declares objects"| node_security
node_terraform -->|"declares objects"| node_gridinfra
node_terraform -->|"declares objects"| node_otherdomains
node_resource -->|"calls operations"| node_coresvc
node_coresvc -->|"maps objects"| node_models
node_coresvc -->|"uses field maps"| node_mappers
node_coresvc -->|"sends WAPI calls"| node_nios
node_coresvc -->|"sends API calls"| node_uddi

click node_main "https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/main.go"
click node_provider "https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/provider/provider.go"
click node_dns "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/dns"
click node_ipam "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/ipam"
click node_dhcp "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/dhcp"
click node_security "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/rpz"
click node_gridinfra "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/grid"
click node_otherdomains "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service"
click node_resource "https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go"
click node_coresvc "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/service"
click node_models "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/model"
click node_mappers "https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/mapper"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_provider toneBlue
class node_dns,node_ipam,node_dhcp,node_security,node_gridinfra,node_otherdomains toneAmber
class node_resource,node_coresvc,node_models,node_mappers toneMint
class node_nios,node_uddi toneRose
class node_terraform toneIndigo
```

## Components

### Provider entry

- [Provider process](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/main.go): `main.go`
- [Provider config](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/provider/provider.go): `internal/provider/provider.go`

### DDI capabilities

- [DNS resources](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/dns): `internal/service/dns`
- [IPAM resources](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/ipam): `internal/service/ipam`
- [DHCP resources](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/dhcp): `internal/service/dhcp`
- [Security resources](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/rpz): `internal/service/rpz`
- [Grid and infra](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service/grid): `internal/service/grid`
- [Other DDI domains](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/service): `internal/service`

### Resource runtime

- [Terraform handlers](https://github.com/infobloxopen/terraform-provider-infoblox/blob/master/internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go): `internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go`
- [Core services](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/service): `internal/core/service`
- [Domain models](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/model): `internal/core/model`
- [Backend mappers](https://github.com/infobloxopen/terraform-provider-infoblox/tree/master/internal/core/mapper): `internal/core/mapper`

### Backend APIs

- **NIOS WAPI**
- **UDDI API**

### Other components

- **Terraform**

## Connections

- Terraform → Provider process: starts provider (evidence: `main.go`)
- Provider process → Provider config: serves (evidence: `main.go`)
- Provider config → DNS resources: registers resources (evidence: `internal/provider/provider.go`)
- Provider config → DHCP resources: registers resources (evidence: `internal/provider/provider.go`)
- Provider config → Terraform handlers: registers resource (evidence: `internal/provider/provider.go`)
- Provider config → NIOS WAPI: configures client (evidence: `internal/provider/provider.go`)
- Provider config → UDDI API: configures client (evidence: `README.md`)
- Terraform → IPAM resources: declares objects (evidence: `README.md`)
- Terraform → Security resources: declares objects (evidence: `README.md`)
- Terraform → Grid and infra: declares objects (evidence: `README.md`)
- Terraform → Other DDI domains: declares objects (evidence: `README.md`)
- Terraform handlers → Core services: calls operations (evidence: `internal/service/rpz/record_rpz_cname_clientipaddressdn_resource.go`)
- Core services → Domain models: maps objects (evidence: `internal/core/service/grid/servicerestart_group.go`)
- Core services → Backend mappers: uses field maps (evidence: `internal/core/service/infra/infra_service.go`)
- Core services → NIOS WAPI: sends WAPI calls (evidence: `internal/core/service/rpz/record_rpz_cname_clientipaddressdn.go`)
- Core services → UDDI API: sends API calls (evidence: `internal/core/service/infra/infra_service.go`)
