Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The data source for the network object allows you to get the following parameters for an IPv4 network resource:

Parameter

Description

Example

comment

A description of the network. This is a regular comment.

Untrusted network

ext_attrs

The set of extensible attributes, if any. The content is formatted as a JSON map.

{
“Owner”: “public internet caffe”, “Administrator”: “unknown”
"Owner": "public internet caffe", "Administrator": "unknown"}

To get information about a network, you must specify a combination of the network view and network address in the CIDR format.

The following table describes the parameters you can define in an infoblox_ipv4_network data source block:

Parameter

Required/Optional

Description

network_view

Required

The

Specifies the network view in which the network

is to be created. The default value is default. If a value is not specified, the default network view defined in NIOS is considered

exists.

cidr

Required

The

Specifies the network block that corresponds to the network, in

the

CIDR notation

that is used for the network

. Do not use the

IPv4 CIDR for an

IPv6

network or the IPv6

CIDR for an IPv4 network.

Example of

...

an IPv4 Network Data Source Block

data "infoblox_ipv4_network" "nearby_network" {
    network_view = "default"
    cidr = " 192.168.128.0/20
}

output"nearby_network_comment" {
    value
=data.infoblox_ipv4_network.nearby_network.comment
}

output"nearby_network_ext_attrs" {
    value
=data.infoblox_ipv4_network.nearby_network.ext_attrs
}


data "infoblox_ipv4_network" "net1" {
    cidr = 10.1.0.0/24
    network_view = "nondefault_netview" // required even if it is the same as the default value
}