infoblox_dtc_server Data Source
Use the infoblox_dtc_server
data source to retrieve the following information about a DTC server data source from the corresponding object in NIOS:
Parameter | Description | Example |
---|---|---|
| The name of the DTC server. |
|
| The address or the FQDN of the DTC server. |
|
| Indicates whether the DTC server object is enabled or disabled. |
|
| The list of IP addresses or FQDN and monitor pairs used for additional monitoring. |
|
| A flag that indicates whether a single read-only A, AAAA, or a CNAME record corresponding to the configured host name was automatically created or updated when the resource block was run. |
|
| A flag that indicates whether a host name for Server Name Indication (SNI) was used. |
|
| The hostname for Server Name Indication (SNI) in FQDN format. |
|
| Information related to the health of the DTC LBDN object. The health parameters it displays are:
|
|
| A description of the DTC server. This is a regular comment. |
|
| The set of extensible attributes of the DTC server view, if any. The content is formatted as a string of JSON map. |
|
To retrieve information about DTC servers 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 servers in the NIOS Grid.
The following table describes the parameters you can define in the infoblox_dtc_server
data source block:
Parameter | Description |
---|---|
| Specifies the desired name of the DTC server as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI. |
| Specifies the address or the FQDN of the DTC server. |
| Specifies the hostname for Server Name Indication (SNI) in FQDN format. You must set |
| Describes the DTC server. |
Extensible Attributes | Specifies the extensible attributes specified for the DTC server. You must specify the key/value pair within the |
Example of a DTC Server Data Source Block
resource "infoblox_dtc_server" "server12"{
name = "terraform_server.com"
host = "10.1.4.5"
comment = "testing server terraform"
sni_hostname = "sni.host.com"
use_sni_hostname = true
monitors {
host = "10.1.4.5"
monitor_name = "sip"
monitor_type = "sip"
}
monitors {
host = "10.1.4.32"
monitor_name = "http"
monitor_type = "http"
}
ext_attrs = jsonencode({
"Site" = "Blr"
})
auto_create_host_record= true
disable = true
}
data "infoblox_dtc_server" "exampleServer_read" {
filters = {
name = infoblox_dtc_server.server12.name
}
depends_on=[infoblox_dtc_server.server12]
}
output "server_res" {
value = data.infoblox_dtc_server.exampleServer_read
}