Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getLbNetworkLoadBalancer
Explore with Pulumi AI
Get information about a Yandex Load Balancer network load balancer. For more information, see Yandex.Cloud Network Load Balancer.
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const foo = pulumi.output(yandex.getLbNetworkLoadBalancer({
    networkLoadBalancerId: "my-network-load-balancer",
}));
import pulumi
import pulumi_yandex as yandex
foo = yandex.get_lb_network_load_balancer(network_load_balancer_id="my-network-load-balancer")
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Yandex.GetLbNetworkLoadBalancer.InvokeAsync(new Yandex.GetLbNetworkLoadBalancerArgs
        {
            NetworkLoadBalancerId = "my-network-load-balancer",
        }));
    }
}
package main
import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "my-network-load-balancer"
		_, err := yandex.LookupLbNetworkLoadBalancer(ctx, &GetLbNetworkLoadBalancerArgs{
			NetworkLoadBalancerId: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
This data source is used to define [Load Balancer Network Load Balancers] that can be used by other resources.
Using getLbNetworkLoadBalancer
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getLbNetworkLoadBalancer(args: GetLbNetworkLoadBalancerArgs, opts?: InvokeOptions): Promise<GetLbNetworkLoadBalancerResult>
function getLbNetworkLoadBalancerOutput(args: GetLbNetworkLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetLbNetworkLoadBalancerResult>def get_lb_network_load_balancer(folder_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 network_load_balancer_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetLbNetworkLoadBalancerResult
def get_lb_network_load_balancer_output(folder_id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 network_load_balancer_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetLbNetworkLoadBalancerResult]func LookupLbNetworkLoadBalancer(ctx *Context, args *LookupLbNetworkLoadBalancerArgs, opts ...InvokeOption) (*LookupLbNetworkLoadBalancerResult, error)
func LookupLbNetworkLoadBalancerOutput(ctx *Context, args *LookupLbNetworkLoadBalancerOutputArgs, opts ...InvokeOption) LookupLbNetworkLoadBalancerResultOutput> Note: This function is named LookupLbNetworkLoadBalancer in the Go SDK.
public static class GetLbNetworkLoadBalancer 
{
    public static Task<GetLbNetworkLoadBalancerResult> InvokeAsync(GetLbNetworkLoadBalancerArgs args, InvokeOptions? opts = null)
    public static Output<GetLbNetworkLoadBalancerResult> Invoke(GetLbNetworkLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLbNetworkLoadBalancerResult> getLbNetworkLoadBalancer(GetLbNetworkLoadBalancerArgs args, InvokeOptions options)
public static Output<GetLbNetworkLoadBalancerResult> getLbNetworkLoadBalancer(GetLbNetworkLoadBalancerArgs args, InvokeOptions options)
fn::invoke:
  function: yandex:index/getLbNetworkLoadBalancer:getLbNetworkLoadBalancer
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FolderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the network load balancer.
 
- NetworkLoad stringBalancer Id 
- Network load balancer ID.
- FolderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the network load balancer.
 
- NetworkLoad stringBalancer Id 
- Network load balancer ID.
- folderId String
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the network load balancer.
 
- networkLoad StringBalancer Id 
- Network load balancer ID.
- folderId string
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name string
- Name of the network load balancer.
 
- networkLoad stringBalancer Id 
- Network load balancer ID.
- folder_id str
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name str
- Name of the network load balancer.
 
- network_load_ strbalancer_ id 
- Network load balancer ID.
- folderId String
- Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the network load balancer.
 
- networkLoad StringBalancer Id 
- Network load balancer ID.
getLbNetworkLoadBalancer Result
The following output properties are available:
- AttachedTarget List<GetGroups Lb Network Load Balancer Attached Target Group> 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- CreatedAt string
- Creation timestamp of this network load balancer.
- Description string
- Description of the network load balancer.
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- Labels to assign to this network load balancer.
- Listeners
List<GetLb Network Load Balancer Listener> 
- Listener specification that will be used by a network load balancer. Structure is documented below.
- Name string
- Name of the listener.
- NetworkLoad stringBalancer Id 
- RegionId string
- ID of the region where the network load balancer resides.
- Type string
- Type of the network load balancer.
- AttachedTarget []GetGroups Lb Network Load Balancer Attached Target Group 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- CreatedAt string
- Creation timestamp of this network load balancer.
- Description string
- Description of the network load balancer.
- FolderId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- Labels to assign to this network load balancer.
- Listeners
[]GetLb Network Load Balancer Listener 
- Listener specification that will be used by a network load balancer. Structure is documented below.
- Name string
- Name of the listener.
- NetworkLoad stringBalancer Id 
- RegionId string
- ID of the region where the network load balancer resides.
- Type string
- Type of the network load balancer.
- attachedTarget List<GetGroups Lb Network Load Balancer Attached Target Group> 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- createdAt String
- Creation timestamp of this network load balancer.
- description String
- Description of the network load balancer.
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- Labels to assign to this network load balancer.
- listeners
List<GetLb Network Load Balancer Listener> 
- Listener specification that will be used by a network load balancer. Structure is documented below.
- name String
- Name of the listener.
- networkLoad StringBalancer Id 
- regionId String
- ID of the region where the network load balancer resides.
- type String
- Type of the network load balancer.
- attachedTarget GetGroups Lb Network Load Balancer Attached Target Group[] 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- createdAt string
- Creation timestamp of this network load balancer.
- description string
- Description of the network load balancer.
- folderId string
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- Labels to assign to this network load balancer.
- listeners
GetLb Network Load Balancer Listener[] 
- Listener specification that will be used by a network load balancer. Structure is documented below.
- name string
- Name of the listener.
- networkLoad stringBalancer Id 
- regionId string
- ID of the region where the network load balancer resides.
- type string
- Type of the network load balancer.
- attached_target_ Sequence[Getgroups Lb Network Load Balancer Attached Target Group] 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- created_at str
- Creation timestamp of this network load balancer.
- description str
- Description of the network load balancer.
- folder_id str
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- Labels to assign to this network load balancer.
- listeners
Sequence[GetLb Network Load Balancer Listener] 
- Listener specification that will be used by a network load balancer. Structure is documented below.
- name str
- Name of the listener.
- network_load_ strbalancer_ id 
- region_id str
- ID of the region where the network load balancer resides.
- type str
- Type of the network load balancer.
- attachedTarget List<Property Map>Groups 
- An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- createdAt String
- Creation timestamp of this network load balancer.
- description String
- Description of the network load balancer.
- folderId String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- Labels to assign to this network load balancer.
- listeners List<Property Map>
- Listener specification that will be used by a network load balancer. Structure is documented below.
- name String
- Name of the listener.
- networkLoad StringBalancer Id 
- regionId String
- ID of the region where the network load balancer resides.
- type String
- Type of the network load balancer.
Supporting Types
GetLbNetworkLoadBalancerAttachedTargetGroup       
- Healthchecks
List<GetLb Network Load Balancer Attached Target Group Healthcheck> 
- TargetGroup stringId 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
- Healthchecks
[]GetLb Network Load Balancer Attached Target Group Healthcheck 
- TargetGroup stringId 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
- healthchecks
List<GetLb Network Load Balancer Attached Target Group Healthcheck> 
- targetGroup StringId 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
- healthchecks
GetLb Network Load Balancer Attached Target Group Healthcheck[] 
- targetGroup stringId 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
- healthchecks
Sequence[GetLb Network Load Balancer Attached Target Group Healthcheck] 
- target_group_ strid 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
- healthchecks List<Property Map>
- targetGroup StringId 
- ID of the target group that attached to the network load balancer.- healthcheck.0.name- Name of the health check.
- healthcheck.0.interval- The interval between health checks.
- healthcheck.0.timeout- Timeout for a target to return a response for the health check.
- healthcheck.0.unhealthy_threshold- Number of failed health checks before changing the status to- UNHEALTHY.
- healthcheck.0.healthy_threshold- Number of successful health checks required in order to set the- HEALTHYstatus for the target.
- healthcheck.0.tcp_options.0.port- Port to use for TCP health checks.
- healthcheck.0.http_options.0.port- Port to use for HTTP health checks.
- healthcheck.0.http_options.0.path- URL path to use for HTTP health checks.
 
GetLbNetworkLoadBalancerAttachedTargetGroupHealthcheck        
- HealthyThreshold int
- HttpOptions List<GetLb Network Load Balancer Attached Target Group Healthcheck Http Option> 
- Interval int
- Name string
- Name of the network load balancer.
 
- TcpOptions List<GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option> 
- Timeout int
- UnhealthyThreshold int
- HealthyThreshold int
- HttpOptions []GetLb Network Load Balancer Attached Target Group Healthcheck Http Option 
- Interval int
- Name string
- Name of the network load balancer.
 
- TcpOptions []GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option 
- Timeout int
- UnhealthyThreshold int
- healthyThreshold Integer
- httpOptions List<GetLb Network Load Balancer Attached Target Group Healthcheck Http Option> 
- interval Integer
- name String
- Name of the network load balancer.
 
- tcpOptions List<GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option> 
- timeout Integer
- unhealthyThreshold Integer
- healthyThreshold number
- httpOptions GetLb Network Load Balancer Attached Target Group Healthcheck Http Option[] 
- interval number
- name string
- Name of the network load balancer.
 
- tcpOptions GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option[] 
- timeout number
- unhealthyThreshold number
- healthyThreshold Number
- httpOptions List<Property Map>
- interval Number
- name String
- Name of the network load balancer.
 
- tcpOptions List<Property Map>
- timeout Number
- unhealthyThreshold Number
GetLbNetworkLoadBalancerAttachedTargetGroupHealthcheckHttpOption          
GetLbNetworkLoadBalancerAttachedTargetGroupHealthcheckTcpOption          
- Port int
- Port for incoming traffic.
- Port int
- Port for incoming traffic.
- port Integer
- Port for incoming traffic.
- port number
- Port for incoming traffic.
- port int
- Port for incoming traffic.
- port Number
- Port for incoming traffic.
GetLbNetworkLoadBalancerListener     
- ExternalAddress List<GetSpecs Lb Network Load Balancer Listener External Address Spec> 
- InternalAddress List<GetSpecs Lb Network Load Balancer Listener Internal Address Spec> 
- Name string
- Name of the network load balancer.
 
- Port int
- Port for incoming traffic.
- Protocol string
- Protocol for incoming traffic.
- TargetPort int
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
- ExternalAddress []GetSpecs Lb Network Load Balancer Listener External Address Spec 
- InternalAddress []GetSpecs Lb Network Load Balancer Listener Internal Address Spec 
- Name string
- Name of the network load balancer.
 
- Port int
- Port for incoming traffic.
- Protocol string
- Protocol for incoming traffic.
- TargetPort int
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
- externalAddress List<GetSpecs Lb Network Load Balancer Listener External Address Spec> 
- internalAddress List<GetSpecs Lb Network Load Balancer Listener Internal Address Spec> 
- name String
- Name of the network load balancer.
 
- port Integer
- Port for incoming traffic.
- protocol String
- Protocol for incoming traffic.
- targetPort Integer
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
- externalAddress GetSpecs Lb Network Load Balancer Listener External Address Spec[] 
- internalAddress GetSpecs Lb Network Load Balancer Listener Internal Address Spec[] 
- name string
- Name of the network load balancer.
 
- port number
- Port for incoming traffic.
- protocol string
- Protocol for incoming traffic.
- targetPort number
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
- external_address_ Sequence[Getspecs Lb Network Load Balancer Listener External Address Spec] 
- internal_address_ Sequence[Getspecs Lb Network Load Balancer Listener Internal Address Spec] 
- name str
- Name of the network load balancer.
 
- port int
- Port for incoming traffic.
- protocol str
- Protocol for incoming traffic.
- target_port int
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
- externalAddress List<Property Map>Specs 
- internalAddress List<Property Map>Specs 
- name String
- Name of the network load balancer.
 
- port Number
- Port for incoming traffic.
- protocol String
- Protocol for incoming traffic.
- targetPort Number
- Port of a target.- external_address_spec.0.address- External IP address of a listener.
- external_address_spec.0.ip_version- IP version of the external addresses.
- internal_address_spec.0.subnet_id- Subnet ID to which the internal IP address belongs
- internal_address_spec.0.address- Internal IP address of a listener.
- internal_address_spec.0.ip_version- IP version of the internal addresses.
 
GetLbNetworkLoadBalancerListenerExternalAddressSpec        
- address str
- ip_version str
GetLbNetworkLoadBalancerListenerInternalAddressSpec        
- address str
- ip_version str
- subnet_id str
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.