infoblox_dns_view Resource
The infoblox_dns_view
resource enables you to perform create, update, and delete operations on DNS views in a NIOS appliance. The resource represents the ‘view’ WAPI object in NIOS.
The following table describes the parameters you can define in the infoblox_dns_view
resource block:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the desired name of the DNS view as shown in the NIOS appliance. The name has the same requirements as the corresponding parameter in WAPI. |
| Optional | Specifies the network view in which to create the DNS view. |
| Optional | Describes the DNS view. |
| Optional | Specifies the set of NIOS extensible attributes that will be attached to the DNS view. |
Example of DNS View Resource
//creating DNS view resource with minimal set of parameters
resource "infoblox_dns_view" "view1" {
name = "test_view"
}
//creating DNS view resource with full set of parameters
resource "infoblox_dns_view" "view2" {
name = "customview"
network_view = "default"
comment = "test dns view example"
ext_attrs = jsonencode({
"Site" = "Main test site"
})
}
// creating DNS View under non default network view
resource "infoblox_dns_view" "view3" {
name = "custom_view"
network_view = "non_defaultview"
comment = "example under custom network view"
ext_attrs = jsonencode({
"Site" = "Cal Site"
})
}