infoblox_dtc_pool Data Source
Use the infoblox_dtc_pool
data source to retrieve the following information about a DTC pool data source from the corresponding object in NIOS:
Parameter | Description | Example |
---|---|---|
| The name of the DTC pool. |
|
| The flag that indicates whether the automatic management of DTC consolidated monitors is enabled in the DTC pool. |
|
| The criteria used to consider the pool as available. |
|
| The minimum number of monitors that must report the pool as up for it to be available when |
|
| The flag that indicates whether the DTC pool object is enabled. |
|
| the List of monitors and associated member statuses that are shared across members and consolidated in server availability determination. |
|
| The preferred Load Balancing method of the DTC pool. |
|
| The DTC pool settings for dynamic ratio when |
|
| The preferred topology that must be used for load balancing. |
|
| The alternate load balancing method. |
|
| The DTC Pool settings for dynamic ratio when it is selected as alternate method. |
|
| The alternate topology for load balancing. |
|
| The list of monitors associated with the pool. |
|
| The list of servers related to the DTC pool. |
|
| Information related to the health of the DTC LBDN object. The health parameters it displays are:
|
|
| The Time to Live value for the pool. | |
| A description of the DTC pool. This is a regular comment. |
|
| The set of extensible attributes of the DTC pool, if any. The content is formatted as a string of JSON map. |
|
To retrieve information about DTC pools 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 pools in the NIOS Grid.
The following table describes the parameters you can define in the infoblox_dtc_pool
data source block:
Parameter | Description |
---|---|
| Specifies the name of the DTC pool. |
| Describes the DTC pool. |
Extensible Attributes | Specifies the extensible attributes specified for the DTC pool. You must specify the key/value pair within the |
Example of a DTC Pool Data Source Block
resource "infoblox_dtc_pool" "pool12"{
name="pool-test.com"
comment="pool creation"
lb_preferred_method="TOPOLOGY"
lb_preferred_topology="topology_ruleset1"
monitors{
monitor_name = "snmp"
monitor_type="snmp"
}
monitors{
monitor_name = "http"
monitor_type="http"
}
lb_alternate_method="DYNAMIC_RATIO"
lb_dynamic_ratio_alternate = jsonencode({
"monitor_name"="snmp"
"monitor_type"="snmp"
"method"="MONITOR"
"monitor_metric"=".1.2"
"monitor_weighing"="PRIORITY"
"invert_monitor_metric"=true
})
servers{
server = "dummy-server.com"
ratio=3
}
servers{
server = "server-test.com"
ratio=3
}
servers{
server = "server-test1.com"
ratio= 4
}
auto_consolidated_monitors=true
availability = "QUORUM"
quorum = 2
ttl = 120
ext_attrs = jsonencode({
"Site" = "Blr"
})
}
data "infoblox_dtc_pool" "testPool_read" {
filters = {
name = infoblox_dtc_pool.pool12.name
}
depends_on=[infoblox_dtc_pool.pool12]
}
output "pool_res" {
value = data.infoblox_dtc_pool.testPool_read
}