infoblox_ipv6_network Data Source
The data source for the network object allows you to get the following parameters for an IPv6 network resource:
Parameter | Description | Example |
---|---|---|
| The network view in which the network exists. |
|
| The network block which corresponds to the network, in CIDR notation. |
|
| A description of the network. This is a regular comment. |
|
| The set of extensible attributes, if any. The content is formatted as a string of JSON map. |
|
To retrieve information about IPv6 networks that match the specified filters, use the filters
argument and specify the parameters mentioned in the below table. These are the searchable parameters of the corresponding object in Infoblox NIOS WAPI. If you do not specify any parameter, the data source retrieves information about all IPv6 networks in the NIOS Grid.
The following table describes the parameters you can define in an infoblox_ipv6_network
data source block:
Parameter | Alias* | Description |
---|---|---|
|
| Specifies the network block that corresponds to the network, in CIDR notation. Do not use the IPv6 CIDR for an IPv4 network. |
|
| Specifies the network view in which the network exists.
|
|
| Describes the network. |
Extensible Attributes | - | Specifies the extensible attributes specified for the network. You must specify the key/value pair within the |
*Aliases are the parameter names used in the prior releases of Infoblox IPAM Plug-In for Terraform. Do not use the alias names for parameters in the data source blocks. Using them can result in error scenarios.
Example of an IPv6 Network Data Source Block
resource "infoblox_ipv6_network" "ipv6net1" {
cidr = "2002:1f93:0:4::/96"
reserve_ipv6 = 10
gateway = "2002:1f93:0:4::1"
comment = "let's try IPv6"
ext_attrs = jsonencode({
"Site" = "Antarctica"
})
}
data "infoblox_ipv6_network" "readNet1" {
filters = {
network = "2002:1f93:0:4::/96"
}
depends_on = [infoblox_ipv6_network.ipv6net1]
}
data "infoblox_ipv6_network" "readnet2" {
filters = {
"*Site" = "Antarctica"
}
depends_on = [infoblox_ipv6_network.ipv6net1]
}
output "ipv6net_res" {
value = data.infoblox_ipv6_network.readNet1
}
output "ipv6net_res1" {
value = data.infoblox_ipv6_network.readnet2
}