This data source allows for the retrieval of the following information and attributes for a CNAME record (alias record) in Address Manager.
Attributes
Attribute | Required/Optional | Description | Example |
---|---|---|---|
configuration | Optional | The name of the BlueCat Configuration that contains the CNAME record. If this is not supplied, the Gateway default configuration name is used. | terraform_demo |
view | Optional | The view that contains the details of the zone. If this is not supplied, the Gateway default view name is used. | Internal |
zone | Optional | The zone that contains the CNAME record. If this is not supplied, the absolute name must be the FQDN. | bluecatnetworks.com |
canonical | Required | The name of the CNAME record. This must be the FQDN if the zone is not provided. | webapp.bluecatnetworks.com |
linked_record | Required | The host record name that is linked to the CNAME record. | server1.bluecatnetworks.com |
ttl | Optional | The TTL value of the record. | 300 |
properties | Optional | The properties of the CNAME record. | attribute=value |
Example
data "bluecat_cname_record" "aliasname" {
configuration="terraform_demo"
view="Internal"
zone="bluecatnetworks.com"
canonical="webapp.bluecatnetworks.com"
linked_record="server1.bluecatnetworks.com"
}
output "id" {
value = data.bluecat_cname_record.aliasname
}
output "linked_record" {
value = data.bluecat_cname_record.aliasname.linked_record
}
output "properties" {
value = data.bluecat_cname_record.aliasname.properties
}