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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: yandex:index/getLbNetworkLoadBalancer:getLbNetworkLoadBalancer
arguments:
# arguments dictionary
The following arguments are supported:
- Folder
Id 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.
- Network
Load stringBalancer Id Network load balancer ID.
- Folder
Id 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.
- Network
Load stringBalancer Id Network load balancer ID.
- folder
Id 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.
- network
Load StringBalancer Id Network load balancer ID.
- folder
Id 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.
- network
Load 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.
- folder
Id 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.
- network
Load StringBalancer Id Network load balancer ID.
getLbNetworkLoadBalancer Result
The following output properties are available:
- Attached
Target 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.
- Created
At string Creation timestamp of this network load balancer.
- Description string
Description of the network load balancer.
- Folder
Id 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<Get
Lb 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.
- Network
Load stringBalancer Id - Region
Id string ID of the region where the network load balancer resides.
- Type string
Type of the network load balancer.
- Attached
Target []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 string Creation timestamp of this network load balancer.
- Description string
Description of the network load balancer.
- Folder
Id 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
[]Get
Lb 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.
- Network
Load stringBalancer Id - Region
Id string ID of the region where the network load balancer resides.
- Type string
Type of the network load balancer.
- attached
Target 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.
- created
At String Creation timestamp of this network load balancer.
- description String
Description of the network load balancer.
- folder
Id 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<Get
Lb 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.
- network
Load StringBalancer Id - region
Id String ID of the region where the network load balancer resides.
- type String
Type of the network load balancer.
- attached
Target 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 string Creation timestamp of this network load balancer.
- description string
Description of the network load balancer.
- folder
Id 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
Get
Lb 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.
- network
Load stringBalancer Id - region
Id 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[Get
Lb 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.
- attached
Target List<Property Map>Groups An attached target group is a group of targets that is attached to a load balancer. Structure is documented below.
- created
At String Creation timestamp of this network load balancer.
- description String
Description of the network load balancer.
- folder
Id 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.
- network
Load StringBalancer Id - region
Id String ID of the region where the network load balancer resides.
- type String
Type of the network load balancer.
Supporting Types
GetLbNetworkLoadBalancerAttachedTargetGroup
- Healthchecks
List<Get
Lb Network Load Balancer Attached Target Group Healthcheck> - Target
Group 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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
[]Get
Lb Network Load Balancer Attached Target Group Healthcheck - Target
Group 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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<Get
Lb Network Load Balancer Attached Target Group Healthcheck> - target
Group 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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
Get
Lb Network Load Balancer Attached Target Group Healthcheck[] - target
Group 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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[Get
Lb 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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>
- target
Group 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 toUNHEALTHY
.healthcheck.0.healthy_threshold
- Number of successful health checks required in order to set theHEALTHY
status 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
- Healthy
Threshold int - Http
Options List<GetLb Network Load Balancer Attached Target Group Healthcheck Http Option> - Interval int
- Name string
- Name of the network load balancer.
- Tcp
Options List<GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option> - Timeout int
- Unhealthy
Threshold int
- Healthy
Threshold int - Http
Options []GetLb Network Load Balancer Attached Target Group Healthcheck Http Option - Interval int
- Name string
- Name of the network load balancer.
- Tcp
Options []GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option - Timeout int
- Unhealthy
Threshold int
- healthy
Threshold Integer - http
Options List<GetLb Network Load Balancer Attached Target Group Healthcheck Http Option> - interval Integer
- name String
- Name of the network load balancer.
- tcp
Options List<GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option> - timeout Integer
- unhealthy
Threshold Integer
- healthy
Threshold number - http
Options GetLb Network Load Balancer Attached Target Group Healthcheck Http Option[] - interval number
- name string
- Name of the network load balancer.
- tcp
Options GetLb Network Load Balancer Attached Target Group Healthcheck Tcp Option[] - timeout number
- unhealthy
Threshold number
- healthy
Threshold Number - http
Options List<Property Map> - interval Number
- name String
- Name of the network load balancer.
- tcp
Options List<Property Map> - timeout Number
- unhealthy
Threshold 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
- External
Address List<GetSpecs Lb Network Load Balancer Listener External Address Spec> - Internal
Address 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.
- 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 belongsinternal_address_spec.0.address
- Internal IP address of a listener.internal_address_spec.0.ip_version
- IP version of the internal addresses.
- External
Address []GetSpecs Lb Network Load Balancer Listener External Address Spec - Internal
Address []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.
- 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 belongsinternal_address_spec.0.address
- Internal IP address of a listener.internal_address_spec.0.ip_version
- IP version of the internal addresses.
- external
Address List<GetSpecs Lb Network Load Balancer Listener External Address Spec> - internal
Address 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.
- target
Port 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 belongsinternal_address_spec.0.address
- Internal IP address of a listener.internal_address_spec.0.ip_version
- IP version of the internal addresses.
- external
Address GetSpecs Lb Network Load Balancer Listener External Address Spec[] - internal
Address 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.
- target
Port 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 belongsinternal_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 belongsinternal_address_spec.0.address
- Internal IP address of a listener.internal_address_spec.0.ip_version
- IP version of the internal addresses.
- external
Address List<Property Map>Specs - internal
Address List<Property Map>Specs - name String
- Name of the network load balancer.
- port Number
Port for incoming traffic.
- protocol String
Protocol for incoming traffic.
- target
Port 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 belongsinternal_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
yandex
Terraform Provider.