yandex_lb_target_group (Data Source)
Статья создана
Обновлена 20 октября 2025 г.
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.
Важно
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"
}
Schema
Optional
folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.name(String) The resource name.target_group_id(String) Target Group ID.
Read-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 target
Read-Only:
-
address(String) IP address of the target. -
subnet_id(String) ID of the subnet that targets are connected to.