Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Application Load Balancer
  • Getting started
    • All guides
    • Creating Application Load Balancer infrastructure through a wizard
      • Creating an L7 load balancer
      • Editing an L7 load balancer
      • Getting information about an L7 load balancer
      • Viewing L7 load balancer statistics
      • Viewing L7 load balancer logs
      • Setting up L7 load balancer logging
      • Getting a log group ID of an L7 load balancer
      • Stopping and starting an L7 load balancer
      • Moving a VM to a target group in a different availability zone
      • Deleting an L7 load balancer
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • Release notes
  1. Step-by-step guides
  2. L7 load balancers
  3. Getting information about an L7 load balancer

Getting information about an L7 load balancer

Written by
Yandex Cloud
Updated at June 9, 2025
Management console
CLI
Terraform
API
  1. In the management console, navigate to the folder containing your L7 load balancer.
  2. Select Application Load Balancer.
  3. Select your L7 load balancer.
  4. You will see your load blancer details on the Overview page.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command for getting information about an L7 load balancer:

    yc alb load-balancer get --help
    
  2. To get your load balancer details, run this command with its name or ID specified:

    yc alb load-balancer get <load_balancer_name>
    

    Result:

    id: a5d88ep483cm********
    name: test-balancer2
    folder_id: aoe197919j8e********
    status: ACTIVE
    region_id: ru-central1
    network_id: c64l1c06d151********
    allocation_policy:
      locations:
      - zone_id: ru-central1-a
        subnet_id: buc4gsmpj8hv********
    log_group_id: eolul9ap0bv0********
    created_at: "2021-04-26T12:12:13.624832586Z"
    log_options:
      log_group_id: e23ujjda632o********
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To get information about an L7 load balancer using Terraform:

  1. Add the data and output sections to the Terraform configuration file:

    data "yandex_alb_load_balancer" "tf-alb" {
      load_balancer_id = "<load_balancer_ID>"
    }
    
    output "tf-alb-listener" {
      value = data.yandex_alb_load_balancer.tf-alb.allocation_policy
    }
    

    Where:

    • data "yandex_alb_load_balancer": Description of the L7 load balancer as a data source:
      • load_balancer_id: L7 load balancer ID.
    • output "allocation_policy": Output variable with L7 load balancer placement policy information:
      • value: Return value.

    You can replace allocation_policy with another variable to get the information you need. For more information about the yandex_alb_load_balancer data source variables, see the relevant provider documentation.

  2. Create the resources:

    1. In the terminal, go to the directory where you edited the configuration file.

    2. Make sure the configuration file is correct using this command:

      terraform validate
      

      If the configuration is correct, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You will see a detailed list of resources. No changes will be made at this step. Terraform will show any errors found in your configuration.

    4. Apply the changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

    Terraform will create all required resources and display their output variables in the terminal. To check the results, run this command:

    terraform output
    

    Result:

    tf-alb-listener = tolist([
      {
        "location" = toset([
          {
            "disable_traffic" = false
            "subnet_id" = "buc4gsmpj8hv********"
            "zone_id" = "ru-central1-a"
          },
          ...
    

To get L7 load balancer details, use the get REST API method for the LoadBalancer resource or the LoadBalancerService/Get gRPC API call.

Was the article helpful?

Previous
Editing an L7 load balancer
Next
Viewing L7 load balancer statistics
© 2025 Direct Cursus Technology L.L.C.