Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»
Terraform в Yandex Cloud
  • Начало работы
  • Настройка аутентификации Terraform-провайдера Yandex Cloud
  • Вопросы и ответы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • dns_firewall
          • dns_inbound_endpoint
          • dns_zone

В этой статье:

  • Example usage
  • Arguments & Attributes Reference
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Cloud DNS
  4. Data Sources
  5. dns_zone

yandex_dns_zone (DataSource)

Статья создана
Yandex Cloud
Обновлена 23 сентября 2026 г.
Открыть Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a DNS Zone.

Важно

One of dns_zone_id or name should be specified.

Example usageExample 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
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • deletion_protection (Read-Only) (Bool). The true value means that resource is protected from accidental deletion.
  • description (Read-Only) (String). The resource description.
  • 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 provider folder-id is used.
  • id (String).
  • labels (Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.
  • name (String). The resource name.
  • private_networks (Read-Only) (Set Of String). For privately visible zones, the set of Virtual Private Cloud resources that the zone is visible from.
  • public (Read-Only) (Bool). The zone's visibility: public zones are exposed to the Internet, while private zones are visible only to Virtual Private Cloud resources.
  • zone (Read-Only) (String). The DNS name of this zone, e.g. example.com.. Must ends with dot.
  • timeouts [Block].
    • create (String).
    • delete (String).
    • update (String).

Была ли статья полезна?

Предыдущая
dns_inbound_endpoint
Следующая
dns_firewall
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»