infoblox_ipv4_allocation
Note The The resource allows allocation of the next available IP address from a specified network block if an IP address is not explicitly specified. The IP address can be allocated by specifying it in the resource definition or can be allocated automatically by defining the CIDR field. The allocated IP address is marked as ‘used’ in the appropriate network block. The allocation is done by creating a Host record in NIOS. The Host record can be created at the DNS server side by using the When you create the Host record at the DNS server side, specify the host name in the FQDN format. The name must include the zone name and the host name as shown in the following example: If you disable the The following table describes the parameters you can define in the IP address allocation resource blocks: Required Specifies the name (in FQDN format) of a host for which an IP address needs to be allocated. When In a cloud environment, a VM name could be used as a host name. Optional Specifies the network view from which to get the specified network block. If a value is not specified, the default network view is considered. Optional Specifies the DNS view in which to create DNS resource records that are associated with the IP address. If a value is not specified, the default DNS view is considered. This parameter is relevant only when Optional A flag that specifies whether DNS records associated with the resource must be created. The default value is Required only for dynamic allocation It specifies the network block (in CIDR format) from where to allocate an IP address. For static allocation, do not use this field Required only for static allocation It specifies an IP address that should be allocated (marked as ‘Used’ in NIOS Grid Manager). For dynamic allocation, do not use this field. Optional Specifies the time to live value for the DNS record. This parameter is relevant only when Describes the resource.infoblox_ipv4_allocation
resource is deprecated and is not supported from Infoblox IPAM Plug-In version 2.3.0. Infoblox strongly recommends that you use Infoblox_ip_allocation resource for allocation of IP addresses. For more information, see IP Address Allocation.enable_dns
flag, which is enabled by default. If you disable the flag, the record is not created in the DNS server side, but is visible on the IPAM tab in NIOS Grid Manager.enable_dns=true
fqdn=hostname1.zone.com
enable_dns
flag, specify only the host name as fqdn
. For example:fqdn=hostname1
Parameter Required/Optional Description Example Value fqdn
enable_dns
is set to true
, specify the zone name along with the host name in format: <hostname>.<zone>.com
.
When enable_dns
is set to false
, specify only the host name: <hostname>. ip-12-34-56-78.us-west-2.compute.internal
network_view
networkview_name
dns_view
enable_dns
is set to true
.dns_view_name
enable_dns
true
.true
cidr
10.4.3.128/20
ip_addr
10.4.3.138
ttl
enable_dns
is to true
.
If a value is not specified, then in NIOS, the value is inherited from the parent object of the DNS record for this resource.3600
comment
Optional Allocating an IPv4 address.
ext_attrs
Optional Set of NIOS extensible attributes that are attached to the resource. jsonencode({})
Example of the Resource Block
resource "infoblox_ipv4_allocation" "alloc1" {
network_view="edge"
cidr=172.30.11.0/24 # this is to allocate
# an IP address from the given network block
dns_view="default" # may be commented out
fqdn="test-vm.edge.example.com"
enable_dns = "true"
comment = "Allocating an IPv4 address"
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"Cloud API Owned" = "True"
"CMP Type"= "VMware"
"Site" = "Nevada"
})}