infoblox_ipv6_network_container Data Source
Use the infoblox_ipv6_network_container data source to retrieve the following information about an IPv6 network container resource from the corresponding object in NIOS:
Parameter | Description | Example |
---|---|---|
| The network view in which the network container exists. |
|
| The IPv6 network block of the network container, in CIDR notation. |
|
| A description of the network container. This is a regular comment. |
|
| The set of extensible attributes of the network container, if any. The content is formatted as a string of JSON map. |
|
To retrieve information about IPv6 network containers 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 network containers in the NIOS Grid.
The following table describes the parameters you can define in the infoblox_ipv6_network_container data source block:
Parameter | Alias* | Description |
---|---|---|
|
| Specifies the IPv6 network block of the network container. |
|
| Specifies the network view in which the network container exists. |
|
| Describes the network container. |
Extensible Attributes | - | Specifies the extensible attributes specified for the network container. 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 the IPv6 Network Container Data Source Block
resource "infoblox_ipv6_network_container" "nc1" {
cidr = "2002:1f93:0:2::/96"
comment = "new generation network segment"
ext_attrs = jsonencode({
"Site" = "space station"
})
}
data "infoblox_ipv6_network_container" "nc2" {
filters = {
network = "2002:1f93:0:2::/96"
}
depends_on = [infoblox_ipv6_network_container.nc1]
}
data "infoblox_ipv6_network_container" "nc_ea_search" {
filters = {
"*Site" = "space station"
}
depends_on = [infoblox_ipv6_network_container.nc1]
}
output "nc1_output" {
value = data.infoblox_ipv6_network_container.nc2
}
output "nc1_comment" {
value = data.infoblox_ipv6_network_container.nc_ea_search
}