Use this data source to lookup a single DNS Record.
data "cloudflare_record" "example" {
zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
hostname = "example.com"
}
hostname
(String) Hostname to filter DNS record results on.zone_id
(String) The zone identifier to target for the resource.content
(String) Content to filter record results on.priority
(Number) DNS priority to filter record results on.type
(String) DNS record type to filter record results on. Defaults to A
.id
(String) The ID of this resource.proxiable
(Boolean) Proxiable status of the found DNS record.proxied
(Boolean) Proxied status of the found DNS record.ttl
(Number) TTL of the found DNS record.value
(String) Value of the found DNS record.zone_name
(String) Zone name of the found DNS record.