Yandex Cloud
Search
Contact UsGet started
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
© 2025 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Solution library
    • Overview
    • Release notes
          • lb_network_load_balancer
          • lb_target_group

In this article:

  • Example usage
  • Schema
  • Optional
  • Read-Only
  • Nested Schema for target
  1. Terraform reference
  2. Resources
  3. Network Load Balancer (NLB)
  4. Data Sources
  5. lb_target_group

yandex_lb_target_group (Data Source)

Written by
Yandex Cloud
Updated at October 20, 2025
  • Example usage
  • Schema
    • Optional
    • Read-Only
    • Nested Schema for target

Get information about a Yandex Load Balancer target group. For more information, see the official documentation.
This data source is used to define Load Balancer Target Groups that can be used by other resources.

Warning

One of target_group_id or name should be specified.

Example usageExample usage

//
// Get information about existing NLB Target Group.
//
data "yandex_lb_target_group" "my_tg" {
  target_group_id = "my-target-group-id"
}

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.
  • target_group_id (String) Target Group ID.

Read-OnlyRead-Only

  • created_at (String) The creation timestamp of the resource.
  • 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.
  • target (Set of Object) (see below for nested schema)

Nested Schema for Nested Schema for target

Read-Only:

  • address (String) IP address of the target.

  • subnet_id (String) ID of the subnet that targets are connected to.

Was the article helpful?

Previous
lb_network_load_balancer
Next
lb_network_load_balancer
© 2025 Direct Cursus Technology L.L.C.