Use the infoblox_network_view data source to retrieve the following information about a network view resource from the corresponding object in NIOS:
Parameter | Description | Example |
---|---|---|
| A description of the network view. This is a regular comment. | The network view object in NIOS. |
| The set of extensible attributes of the network view, if any. The content is formatted as a JSON map. | {"Administrator": "jsw@telecom.ca"} |
To get information about a network view, specify the name
of the network view.
Example of the Network View Data Source Block
The following is an example of an infoblox_network_view
data source block:
resource "infoblox_network_view" "inet_nv" {
name = "inet_visible_nv"
comment = "Internet-facing networks"
ext_attrs = jsonencode({
"Location" = "the North pole"
})
}
data "infoblox_network_view" "inet_nv" { name = "inet_visible_nv"
// This is just to ensure that the network view has been be created
// using 'infoblox_network_view' resource block before the data source will be queried.
depends_on = [infoblox_network_view.inet_nv]}
output "inet_nv_ext_attrs" {
value = data.infoblox_network_view.inet_nv.ext_attrs
}
output "inet_nv_comment" {
value = data.infoblox_network_view.inet_nv.comment
}
data "infoblox_network_view" "netview1" {
name = "one_more_network_view"
}