Use this data source to look up zone
info. This is the singular alternative to cloudflare_zones
.
data "cloudflare_zone" "example" {
name = "example.com"
}
resource "cloudflare_record" "example" {
zone_id = data.cloudflare_zone.example.id
name = "www"
value = "203.0.113.1"
type = "A"
proxied = true
}
account_id
(String) The account identifier to target for the resource.name
(String) The name of the zone. Must provide only one of zone_id
, name
.zone_id
(String) The zone identifier to target for the resource. Must provide only one of zone_id
, name
.id
(String) The ID of this resource.name_servers
(List of String) Cloudflare assigned name servers. This is only populated for zones that use Cloudflare DNS.paused
(Boolean) Whether the zone is paused on Cloudflare.plan
(String) The name of the plan associated with the zone.status
(String) Status of the zone.vanity_name_servers
(List of String) List of Vanity Nameservers (if set).