yandex_dns_zone (Data Source)
Статья создана
Обновлена 11 сентября 2025 г.
Get information about a DNS Zone.
Важно
One of dns_zone_id or name should be specified.
Example usage
//
// Get information about existing DNS Zone.
//
data "yandex_dns_zone" "foo" {
dns_zone_id = yandex_dns_zone.zone1.id
}
output "zone" {
value = data.yandex_dns_zone.foo.zone
}
Schema
Optional
dns_zone_id(String) The ID of the DNS Zone.folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.name(String) The resource name.timeouts(Block, Optional) (see below for nested schema)
Read-Only
created_at(String) The creation timestamp of the resource.deletion_protection(Boolean) Thetruevalue means that resource is protected from accidental deletion.description(String) The resource description.id(String) The ID of this resource.labels(Map of String) A set of key/value label pairs which assigned to resource.private_networks(Set of String) For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.public(Boolean) The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.zone(String) The DNS name of this zone, e.g.example.com.. Must ends with dot.
Nested Schema for timeouts
Optional:
create(String)delete(String)update(String)