/
infoblox_dtc_pool Data Source

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

Parameter

Description

Example

name

The name of the DTC pool.

pool-test.com

auto_consolidated_monitors

The flag that indicates whether the automatic management of DTC consolidated monitors is enabled in the DTC pool.

false

availability

The criteria used to consider the pool as available.

ALL

quorum

The minimum number of monitors that must report the pool as up for it to be available when availability is set to QUORUM.

2

disable

The flag that indicates whether the DTC pool object is enabled.

false

consolidated_monitors

the List of monitors and associated member statuses that are shared across members and consolidated in server availability determination.

"consolidated_monitors" = tolist([
{
"availability" = "ALL"
"full_health_communication" = false
"members" = tolist([
"infoblox.localdomain",
])
"monitor_name" = "snmp"
"monitor_type" = "snmp"
},
])

lb_preferred_method

The preferred Load Balancing method of the DTC pool.

DYNAMIC_RATIO

lb_dynamic_ratio_preferred

The DTC pool settings for dynamic ratio when DYNAMIC_RATIO is selected as the preferred method.

{
    "invert_monitor_metric" = true
     "method" = "MONITOR"
     "monitor_weighing" = "RATIO"
     "monitor_metric" = ".0"
"monitor_name"="snmp"
    "monitor_type"="snmp"
   }

lb_preferred_topology

The preferred topology that must be used for load balancing.

"test-topo"

lb_alternate_method

The alternate load balancing method.

ROUND_ROBIN

lb_dynamic_ratio_alternate

The DTC Pool settings for dynamic ratio when it is selected as alternate method.

{
    "invert_monitor_metric" = true
     "method" = "MONITOR"
     "monitor_weighing" = "RATIO"
     "monitor_metric" = ".0"
"monitor_name"="snmp"
    "monitor_type"="snmp"
   }

lb_alternate_topology

The alternate topology for load balancing.

“infoblox_topology”

monitors

The list of monitors associated with the pool.

{
     monitor_name = "snmp"
     monitor_type="snmp"
}

servers

The list of servers related to the DTC pool.

{
     server  = "SERVER"
     ratio = 100
  }

health

Information related to the health of the DTC LBDN object. The health parameters it displays are:

  • 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.

60

comment

A description of the DTC pool. This is a regular comment.

The DTC Pool object in NIOS.

ext_attrs

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

{\"Owner\":\"State Library\", \"Expires\":\"never\"}

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

Parameter

Description

name

Specifies the name of the DTC pool.

comment

Describes the DTC pool.

Extensible Attributes

Specifies the extensible attributes specified for the DTC pool. You must specify the key/value pair within the filters argument.
Example:
filters = {
"*Site" = "some test site"
}

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
}