getBackendAddressPool

Use this data source to access information about an existing Load Balancer's Backend Address Pool.

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.GetLBArgs;
import com.pulumi.azure.lb.inputs.GetBackendAddressPoolArgs;
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 exampleLB = LbFunctions.getLB(GetLBArgs.builder()
.name("example-lb")
.resourceGroupName("example-resources")
.build());
final var exampleBackendAddressPool = LbFunctions.getBackendAddressPool(GetBackendAddressPoolArgs.builder()
.name("first")
.loadbalancerId(exampleLB.applyValue(getLBResult -> getLBResult.id()))
.build());
ctx.export("backendAddressPoolId", exampleBackendAddressPool.applyValue(getBackendAddressPoolResult -> getBackendAddressPoolResult.id()));
ctx.export("backendIpConfigurationIds", data.azurerm_lb_backend_address_pool().beap().backend_ip_configurations().stream().map(element -> element.id()).collect(toList()));
}
}

Return

A collection of values returned by getBackendAddressPool.

Parameters

argument

A collection of arguments for invoking getBackendAddressPool.


suspend fun getBackendAddressPool(loadbalancerId: String, name: String): GetBackendAddressPoolResult

Return

A collection of values returned by getBackendAddressPool.

See also

Parameters

loadbalancerId

The ID of the Load Balancer in which the Backend Address Pool exists.

name

Specifies the name of the Backend Address Pool.


Return

A collection of values returned by getBackendAddressPool.

See also

Parameters

argument

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