infoblox_zone_forward Data Source
The data source for the forward zone object allows you to get the following parameters for a forward zone resource:
Parameter | Description | Example |
---|---|---|
| The name of the DNS view in which the forward zone should exist. |
|
| The name of the DNS zone in FQDN format. |
|
| The forward/stub server name server group that is assigned for the zone. |
|
| The forwarding member name server group that is assigned for the zone. |
|
| The information of the default or custom zone forwarder to which the NIOS appliance forwards queries for a specified zone. |
|
| Indicates weather the appliance sends queries to forwarders only. |
|
| The information of the forwarding members to which the NIOS appliance forwards queries for a specified zone. |
|
| The format of the DNS zone. |
|
| Indicates whether the zone is disabled. |
|
| A description of the network. This is a regular comment. |
|
| The set of extensible attributes, if any. The content is formatted as a string of JSON map. |
|
To retrieve information about forward zones 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 forward zones in the NIOS Grid.
The following table describes the parameters you can define in an infoblox_zone_forward
data source block:
Parameter | Alias* | Description |
---|---|---|
|
| Specifies the name of the DNS zone in FQDN format. |
|
| Specifies the name of the DNS view in which the forward zone exists. |
| - | Determines the format of the DNS zone. |
|
| Describes the forward zone. |
Extensible Attributes | - | Specifies the extensible attributes specified for the network. You must specify the key/value pair within the |
*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.
Examples of Zone Forward Data Source
resource "infoblox_zone_forward" "forwardzone_forwardTo" {
fqdn = "zone_forward.ex.org"
forward_to {
name = "test22.dz.ex.com"
address = "10.0.0.1"
}
forward_to {
name = "test2.dz.ex.com"
address = "10.0.0.2"
}
}
// accessing Zone Forward by specifying fqdn and view
data "infoblox_zone_forward" "data_zone_forward" {
filters = {
fqdn = "zone_forward.ex.org"
view = "default"
}
// This is just to ensure that the record has been be created
depends_on = [infoblox_zone_forward.forwardzone_forwardTo]
}
// returns matching Zone Forward with fqdn and view, if any
output "zone_forward_data3" {
value = data.infoblox_zone_forward.data_zone_forward
}