...
Excerpt | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following table describes the parameters you can define in the resource block of the record:
|
Additionally, define any one of the following parameters for for the infoblox_a_record
resource:
Parameter | Required/ | Description | Example Value |
---|---|---|---|
| Required only for static allocation | Specifies the IPv4 address to associate with the A record.
|
|
| Required only for dynamic allocation | Specifies the network from which to allocate an IP address when the |
|
| Required only if | Specifies the extensible attributes of the parent network that must be used as filters to retrieve the next available IP address for creating the record object. |
|
Examples of the A Record Block
...
//full set of parameters required to dynamically create an A record
resource "infoblox_a_record" "a_rec3" {
fqdn = "dynamic1.example2.org"
cidr = 10.1.0.0/24 // the network must exist, you may use
// the example for infoblox_ipv4_network resource.
network_view = "nondefault_netview" // not necessarily in
// the same network view as the DNS view resides in.
comment = "example dynamic A-record a_rec3"
dns_view = "nondefault_dnsview1"
ttl = 0 // 0 = disable caching
ext_attrs = jsonencode({})
}
//create an A record using next-available-IP address based on extensible attributes tag
resource "infoblox_a_record" "rec"{
fqdn = "very-interesting-host.example.com"
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
filter_params = jsonencode({
"*Site": "Turkey"
})
comment = "A record"
}