---
title: "infoblox_ipv4_shared_network Data Source"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/1383268696/infoblox_ipv4_shared_network%20Data%20Source"
format: markdown
---
The data source for the network object allows you to get the following parameters for an IPv4 shared network resource:

| **Parameter** | **Description** | **Example** |
| --- | --- | --- |
| `name` | The name of the IPv4 shared network object. | `shared-network1` |
| `disable` | The disable flag for the IPv4 shared network object. | `true` |
| `networks` | A list of network references. | `[`<br>`  "network/ZG5zLmw:17.0.0.0/24/default",`<br>`  "network/ZG5zLmw:18.0.0.0/24/default",`<br>`]` |
| `network_view` | The name of the network view in which this shared network. | `view2` |
| `use_options` | Indicates whether `options` is enabled or not. | `true` |
| `options` | An array of DHCP option structs that lists the DHCP options associated with the object. | `{`  
`    name = "domain-name-servers"`  
`    value = "10.22.33.44"`  
`    vendor_class = "DHCP"`  
`    num = 6`  
`    use_option = true`  
`  }` |
| `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 string of JSON map. | `{\"Owner\":\"State Library\",\"Administrator\":\"unknown\"}` |

To retrieve information about IPv4 shared 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 IPv4 networks in the NIOS Grid.

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

| **Parameter** | **Alias*** | **Description** |
| --- | --- | --- |
| `name` | `name` | The name of the IPv4 shared network object. |
| `network_view` | `network_view` | The name of the network view in which this shared network. |
| `comment` | `comment` | Describes the shared network. |
| Extensible Attributes | - | Specifies the extensible attributes specified for the network. You must specify the key/value pair within the `filters` argument.  
Example:  
`filters = {`  
`"*Site" = "some test site"`  
`}` |

*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 IPv4 Shared Network Data Source Block

`resource "infoblox_ipv4_shared_network" "shared_network" {`  
`  name = "shared-network1"`  
`  networks = ["10.12.3.0/24"]`  
`}`

`data "infoblox_ipv4_shared_network" "shared_network_read" {`  
`  filters = {`  
`    "network_view" = "default"`  
`  }`  
`  depends_on = [infoblox_ipv4_shared_network.shared_network]`  
`}`

`resource "infoblox_ipv4_shared_network" "shared_network2" {`  
`  name = "shared-network14"`  
`  comment = "test ipv4 shared network record"`  
`  networks = ["10.7.3.0/24","10.8.3.0/24"]`  
`  network_view = "default"`  
`  disable = false`  
`  ext_attrs = jsonencode({`  
`    "Site" = "Osaka"`  
`  })`  
`  use_options = true`  
`  options {`  
`    name = "domain-name-servers"`  
`    num = 6`  
`    value = "10.22.33.44"`  
`    use_option = false`  
`  }`  
`}`

`data "infoblox_ipv4_shared_network" "shared_network_read2" {`  
`  filters = {`  
`    "*Site" = "Osaka"`  
`  }`  
`  depends_on = [infoblox_ipv4_shared_network.shared_network2]`  
`}`