Yandex Cloud
КейсыДокументация
ПрезентацияСвязаться с намиНачать бесплатно
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 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
Создавайте контент и получайте гранты!Готовы написать своё руководство? Участвуйте в контент-программе и получайте гранты на работу с облачными сервисами!
Подробнее о программе
Сделано на Gravity UI
Проект Яндекса
© 2026 ООО «Яндекс.Облако»