Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • alb_backend_group
          • alb_http_router
          • alb_load_balancer
          • alb_target_group
          • alb_virtual_host

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Application Load Balancer
  4. Data Sources
  5. alb_virtual_host

yandex_alb_virtual_host (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View in 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.

Warning

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.

Warning

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.

Warning

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.

Warning

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.

Was the article helpful?

Previous
alb_target_group
Next
alb_backend_group
© 2026 Direct Cursus Technology L.L.C.