This data source allows for the retrieval of the following information and attributes for a view in Address Manager.
Attributes
| Attribute | Required/Optional | Description | Example |
|---|---|---|---|
configuration |
Optional | The name of the BlueCat Configuration that contains the view. If this is not supplied, the Gateway default configuration name is used. | terraform_demo |
view |
Optional | The name of the view. | Internal |
deployable |
Optional | Whether the view is to be deployable. | true |
server_roles |
Required | The list of server roles. The format of each server role is:
|
["primary, server1","secondary,
server2"] |
properties |
Optional | The properties of the CNAME record. | comment=My comments |
allowed_property_keys |
Optional | Defines a list of alternative properties to be returned by the data source. | ["propertyName", "propertyName2"] |
Example
resource "bluecat_view" "view_name" {
configuration = "terraform_demo"
name = "InternalView"
properties = ""
}