yandex_lb_target_group (DataSource)
Written by
Updated at February 9, 2026
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 usage
//
// Get information about existing NLB Target Group.
//
data "yandex_lb_target_group" "my_tg" {
target_group_id = "my-target-group-id"
}
Arguments & Attributes Reference
created_at(Read-Only) (String). The creation timestamp of the resource.description(Read-Only) (String). The resource description.folder_id(String). The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.id(String).labels(Read-Only) (Map Of String). A set of key/value label pairs which assigned to resource.name(String). The resource name.target(Read-Only) (Set Of Object).address.subnet_id.
target_group_id(String). Target Group ID.