Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Terraform в Yandex Cloud
  • Начало работы
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • lb_network_load_balancer
          • lb_target_group

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

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for attached_target_group
  • Nested Schema for attached_target_group.healthcheck
  • Nested Schema for attached_target_group.healthcheck.http_options
  • Nested Schema for attached_target_group.healthcheck.tcp_options
  • Nested Schema for listener
  • Nested Schema for listener.external_address_spec
  • Nested Schema for listener.internal_address_spec
  1. Справочник Terraform
  2. Ресурсы (англ.)
  3. Network Load Balancer (NLB)
  4. Data Sources
  5. lb_network_load_balancer

yandex_lb_network_load_balancer (Data Source)

Статья создана
Yandex Cloud
Обновлена 11 сентября 2025 г.
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for attached_target_group
    • Nested Schema for attached_target_group.healthcheck
    • Nested Schema for attached_target_group.healthcheck.http_options
    • Nested Schema for attached_target_group.healthcheck.tcp_options
    • Nested Schema for listener
    • Nested Schema for listener.external_address_spec
    • Nested Schema for listener.internal_address_spec

Get information about a Yandex Load Balancer network load balancer. For more information, see the official documentation.

This data source is used to define Load Balancer Network Load Balancers that can be used by other resources.

Важно

One of network_load_balancer_id or name should be specified.

Example usageExample usage

//
// Get information about existing Network Load Balancer (NLB).
//
data "yandex_lb_network_load_balancer" "my_nlb" {
  network_load_balancer_id = "my-network-load-balancer"
}

SchemaSchema

OptionalOptional

  • folder_id (String) The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • name (String) The resource name.
  • network_load_balancer_id (String) Network load balancer ID.

Read-OnlyRead-Only

  • allow_zonal_shift (Boolean) Flag that marks the network load balancer as available to zonal shift.
  • attached_target_group (Set of Object) (see below for nested schema)
  • created_at (String) The creation timestamp of the resource.
  • deletion_protection (Boolean) The true value 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.
  • listener (Set of Object) (see below for nested schema)
  • region_id (String) ID of the availability zone where the network load balancer resides. If omitted, default region is being used.
  • type (String) Type of the network load balancer. Must be one of 'external' or 'internal'. The default is 'external'.

Nested Schema for Nested Schema for attached_target_group

Read-Only:

  • healthcheck (Block List, Min: 1) A HealthCheck resource. (see below for nested schema)

  • target_group_id (String) ID of the target group.

Nested Schema for Nested Schema for attached_target_group.healthcheck

Read-Only:

  • healthy_threshold (Number) Number of successful health checks required in order to set the HEALTHY status for the target.

  • http_options (Block List, Max: 1) Options for HTTP health check. (see below for nested schema)

  • interval (Number) The interval between health checks. The default is 2 seconds.

  • name (String) Name of the health check. The name must be unique for each target group that attached to a single load balancer.

  • tcp_options (Block List, Max: 1) Options for TCP health check. (see below for nested schema)

  • timeout (Number) Timeout for a target to return a response for the health check. The default is 1 second.

  • unhealthy_threshold (Number) Number of failed health checks before changing the status to UNHEALTHY. The default is 2.

Nested Schema for Nested Schema for attached_target_group.healthcheck.http_options

Read-Only:

  • path (String) URL path to set for health checking requests for every target in the target group. For example /ping. The default path is /.

  • port (Number) Port to use for HTTP health checks.

Nested Schema for Nested Schema for attached_target_group.healthcheck.tcp_options

Read-Only:

  • port (Number) Port to use for TCP health checks.

Nested Schema for Nested Schema for listener

Read-Only:

  • external_address_spec (Block Set, Max: 1) External IP address specification. (see below for nested schema)

  • internal_address_spec (Block Set, Max: 1) Internal IP address specification. (see below for nested schema)

  • name (String) Name of the listener. The name must be unique for each listener on a single load balancer.

  • port (Number) Port for incoming traffic.

  • protocol (String) Protocol for incoming traffic. TCP or UDP and the default is TCP.

  • target_port (Number) Port of a target. The default is the same as listener's port.

Nested Schema for Nested Schema for listener.external_address_spec

Read-Only:

  • address (String) External IP address for a listener. IP address will be allocated if it wasn't been set.

  • ip_version (String) IP version of the external addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.

Nested Schema for Nested Schema for listener.internal_address_spec

Read-Only:

  • address (String) Internal IP address for a listener. Must belong to the subnet that is referenced in subnet_id. IP address will be allocated if it wasn't been set.

  • ip_version (String) IP version of the external addresses that the load balancer works with. Must be one of ipv4 or ipv6. The default is ipv4.

  • subnet_id (String) ID of the subnet to which the internal IP address belongs.

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

Предыдущая
monitoring_dashboard
Следующая
lb_target_group
Проект Яндекса
© 2025 ООО «Яндекс.Облако»