---
title: "infoblox_dtc_lbdn Data Source"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/1170604336/infoblox_dtc_lbdn%20Data%20Source"
format: markdown
---
Use the `infoblox_dtc_lbdn` data source to retrieve the following information about a DTC LBDN data source from the corresponding object in NIOS:

| **Parameter** | **Description** | **Example** |
| --- | --- | --- |
| `name` | The name of the DTC LBDN. | `testLbdn3` |
| `auth_zones` | The list of authoritative zones linked to the DTC LBDN object. | `{`  
`  fqdn = "example.com"`  
`  dns_view = "default"  `  
`}` |
| `auto_consolidated_monitors` | The flag that indicates whether the automatic management of DTC consolidated monitors is enabled on the the related DTC pool. | `false` |
| `disable` | The flag that indicates whether the DTC LBDN object is enabled. | `false` |
| `lb_method` | The load balancing method that is used to select the pool. | `TOPOLOGY` |
| `patterns` | The LBDN wildcards used to match the pattern. | `["test.com"]` |
| `persistence` | The maximum time in seconds, for which the client specific LBDN responses can be cached. | `60` |
| `pools` | The list of pools, which are collections of load balanced servers, associated with the DTC LBDN. | `{`  
`  pool = "pool2"`  
`  ratio = 2`  
`  }` |
| `priority` | Specifies the LBDN-pattern-match priority for “overlapping” DTC LBDN objects. | `1` |
| `topology` | The topology rules for the load balancing method `TOPOLOGY`. | `"test-topo"` |
| `types` | The list of resource record types supported by the LBDN. | `["A", "AAAA", "CNAME"]` |
| `health` | Information related to the health of the DTC LBDN object. The health parameters it displays are:<br>- `availability`: The availability status displayed in one of the following colors:
  - BLUE
  - GREEN
  - GRAY
  - NONE
  - RED
  - YELLOW
- `description`: A description about the status.
- `enabled state`: The enabled state of the LBDN. It can return one of the following values:
  - DISABLED
  - DISABLED_BY_PARENT
  - ENABLED
  - NONE | `{`  
`   availability = "NONE"`  
`   description = ""`  
`   enabled_state = "DISABLED"`  
`}` |
| `ttl` | The Time to Live value for the pool. | `120` |
| `comment` | A description of the DTC LBDN. This is a regular comment. | `The DTC LBDN object in NIOS.` |
| `ext_attrs` | The set of extensible attributes of the DTC LBDNs, if any. The content is formatted as a string of JSON map. | `{\"Owner\":\"State Library\", \"Expires\":\"never\"}` |

To retrieve information about DTC LBDNs 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 DTC LBDNs in the NIOS Grid.

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

| **Parameter** | **Description** |
| --- | --- |
| `name` | Specifies the name of the DTC LBDN. |
| `comment` | Describes the DTC LBDN. |
| Extensible Attributes | Specifies the extensible attributes specified for the DTC LBDN. You must specify the key/value pair within the `filters` argument.  
Example:  
`filters = {`  
`"*Site" = "some test site"`  
`}` |

## Example of a DTC LBDN Data Source Block

`//creating an LBDN resource`  
`resource "infoblox_dtc_lbdn" "lbdn_record" {`  
`  name = "testLbdn3"`  
`  lb_method = "ROUND_ROBIN"`  
`  comment = "test LBDN"`  
`  types = ["A"]`  
`}`  


`// accessing LBDN by specifying name and comment`  
`data "infoblox_dtc_lbdn" "readlbdn" {`  
`  filters = {`  
`    name = "testLbdn3"`  
`    comment = "test LBDN"`  
`  }`  
`  // This is just to ensure that the record has been be created`  
`  // using 'infoblox_dtc_lbdn' resource block before the data source is queried.`  
`  depends_on = [infoblox_dtc_lbdn.lbdn_record]`  
`}`

`// returns matching LBDN with name and comment, if any`  
`output "lbdn_res" {`  
`  value = data.infoblox_dtc_lbdn.readlbdn`  
`}`