get LBOutbound Rule
Use this data source to access information about an existing Load Balancer Outbound Rule.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.lb.LbFunctions;
import com.pulumi.azure.lb.inputs.GetLBOutboundRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = LbFunctions.getLBOutboundRule(GetLBOutboundRuleArgs.builder()
.name("existing_lb_outbound_rule")
.loadbalancerId("existing_load_balancer_id")
.build());
ctx.export("id", example.applyValue(getLBOutboundRuleResult -> getLBOutboundRuleResult.id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getLBOutboundRule.
Parameters
argument
A collection of arguments for invoking getLBOutboundRule.
Return
A collection of values returned by getLBOutboundRule.
See also
Parameters
loadbalancer Id
The ID of the Load Balancer in which the Outbound Rule exists.
name
The name of this Load Balancer Outbound Rule.
suspend fun getLBOutboundRule(argument: suspend GetLBOutboundRulePlainArgsBuilder.() -> Unit): GetLBOutboundRuleResult
Return
A collection of values returned by getLBOutboundRule.
See also
Parameters
argument
Builder for com.pulumi.azure.lb.kotlin.inputs.GetLBOutboundRulePlainArgs.