Yandex Cloud
Поиск
Связаться с экспертомПопробовать бесплатно
  • Кейсы
  • Документация
  • Блог
  • Все сервисы
    • Cloud Interconnect
    • Cloud Backup
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Router
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Managed Service for YDB
    • SpeechKit
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • Container Registry
    • Managed Service for Prometheus®
    • Message Queue
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Cloud Apps
    • Yandex AI Studio
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Yandex Cloud Video
    • Stackland
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • DataSphere
    • Vision OCR
    • Translate
    • Cloud Registry
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Managed Service for GitLab
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Serverless Integrations
    • IoT Core
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
  • Статус работы сервисов
  • Marketplace
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Искусственный интеллект
    • Безопасность
    • Инструменты DevOps
    • Бессерверные вычисления
    • Управление ресурсами
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Акции и free tier
  • Кейсы
  • Документация
  • Блог
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»
Terraform в Yandex Cloud
  • Начало работы
  • Настройка аутентификации Terraform-провайдера Yandex Cloud
  • Библиотека решений
    • Обзор
    • История изменений (англ.)
          • alb_backend_group
          • alb_http_router
          • alb_load_balancer
          • alb_target_group
          • alb_virtual_host

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

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

yandex_alb_virtual_host (DataSource)

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

Get information about a Yandex ALB Virtual Host. For more information, see Yandex Cloud Application Load Balancer.

This data source is used to define Application Load Balancer Virtual Host that can be used by other resources.

Важно

One of virtual_host_id or name with http_router_id should be specified.

Example usageExample usage

//
// Get information about existing ALB Virtual Host
//
data "yandex_alb_virtual_host" "my-vhost" {
  name           = yandex_alb_virtual_host.my-vh.name
  http_router_id = yandex_alb_virtual_host.my-router.id
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • authority (Read-Only) (Set Of String). A list of domains (host/authority header) that will be matched to this virtual host. Wildcard hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
  • http_router_id (String). The ID of the HTTP router to which the virtual host belongs.
  • id (String).
  • modify_request_headers (Read-Only) (List Of Object). Apply the following modifications to the Request/Response header.

Важно

Only one type of actions append or replace or remove should be specified.

  • append .
  • name .
  • remove .
  • replace .
  • modify_response_headers (Read-Only) (List Of Object). Apply the following modifications to the Request/Response header.

Важно

Only one type of actions append or replace or remove should be specified.

  • append .
  • name .
  • remove .
  • replace .
  • name (String). The resource name.
  • rate_limit (Read-Only) (List Of Object). Rate limit configuration applied for a whole virtual host
    • all_requests .
      • per_minute .
      • per_second .
    • requests_per_ip .
      • per_minute .
      • per_second .
  • route (Read-Only) (List Of Object). A Route resource. Routes are matched in-order. Be careful when adding them to the end. For instance, having http '/' match first makes all other routes unused.

Важно

Exactly one type of routes http_route or grpc_route should be specified.

  • client_certificate_forward .
    • http_header .
    • issuer_header_name .
    • subject_header_name .
  • disable_security_profile .
  • grpc_route .
    • grpc_match .
      • fqmn .
        • exact .
        • prefix .
        • regex .
    • grpc_route_action .
      • auto_host_rewrite .
      • backend_group_id .
      • host_rewrite .
      • idle_timeout .
      • max_timeout .
      • rate_limit .
        • all_requests .
          • per_minute .
          • per_second .
        • requests_per_ip .
          • per_minute .
          • per_second .
    • grpc_status_response_action .
      • status .
  • http_route .
    • direct_response_action .
      • body .
      • status .
    • http_match .
      • http_method .
      • path .
        • exact .
        • prefix .
        • regex .
    • http_route_action .
      • auto_host_rewrite .
      • backend_group_id .
      • host_rewrite .
      • idle_timeout .
      • prefix_rewrite .
      • rate_limit .
        • all_requests .
          • per_minute .
          • per_second .
        • requests_per_ip .
          • per_minute .
          • per_second .
      • regex_rewrite .
        • regex .
        • substitute .
      • timeout .
      • upgrade_types .
    • redirect_action .
      • remove_query .
      • replace_host .
      • replace_path .
      • replace_port .
      • replace_prefix .
      • replace_scheme .
      • response_code .
  • name .
  • route_options .
    • rbac .
      • action .
      • principals .
        • and_principals .
          • any .
          • header .
            • name .
            • value .
              • exact .
              • prefix .
              • regex .
          • remote_ip .
    • security_profile_id .
  • route_options (Read-Only) (List Of Object).
    • rbac .
      • action .
      • principals .
        • and_principals .
          • any .
          • header .
            • name .
            • value .
              • exact .
              • prefix .
              • regex .
          • remote_ip .
    • security_profile_id .
  • virtual_host_id (String). The ID of a specific Virtual Host. Virtual Host ID is concatenation of HTTP Router ID and Virtual Host name with / symbol between them. For Example, http_router_id/vhost_name.

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

Предыдущая
alb_target_group
Следующая
alb_backend_group
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Проект Яндекса
© 2026 ТОО «Облачные Сервисы Казахстан»