getLBRule

Use this data source to access information about an existing Load Balancer Rule.

Example Usage

variables:
example:
fn::invoke:
function: azure:lb:getLB
arguments:
name: example-lb
resourceGroupName: example-resources
exampleGetLBRule:
fn::invoke:
function: azure:lb:getLBRule
arguments:
name: first
resourceGroupName: example-resources
loadbalancerId: ${example.id}
outputs:
lbRuleId: ${exampleGetLBRule.id}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.Network: 2023-09-01

Return

A collection of values returned by getLBRule.

Parameters

argument

A collection of arguments for invoking getLBRule.


suspend fun getLBRule(loadbalancerId: String, name: String): GetLBRuleResult

Return

A collection of values returned by getLBRule.

Parameters

loadbalancerId

The ID of the Load Balancer Rule.

name

The name of this Load Balancer Rule.

See also


suspend fun getLBRule(argument: suspend GetLBRulePlainArgsBuilder.() -> Unit): GetLBRuleResult

Return

A collection of values returned by getLBRule.

Parameters

argument

Builder for com.pulumi.azure.lb.kotlin.inputs.GetLBRulePlainArgs.

See also