get Load Balancers
This data source provides the Alb Load Balancers of the current Alibaba Cloud user.
NOTE: Available in v1.132.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alb.AlbFunctions;
import com.pulumi.alicloud.alb.inputs.GetLoadBalancersArgs;
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 ids = AlbFunctions.getLoadBalancers();
ctx.export("albLoadBalancerId1", ids.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
final var nameRegex = AlbFunctions.getLoadBalancers(GetLoadBalancersArgs.builder()
.nameRegex("^my-LoadBalancer")
.build());
ctx.export("albLoadBalancerId2", nameRegex.applyValue(getLoadBalancersResult -> getLoadBalancersResult.balancers()[0].id()));
}
}
Return
A collection of values returned by getLoadBalancers.
Parameters
A collection of arguments for invoking getLoadBalancers.
Return
A collection of values returned by getLoadBalancers.
See also
Parameters
The type of IP address that the ALB instance uses to provide services.
Default to false
. Set it to true
can output more details about resource attributes.
A list of Load Balancer IDs.
Load Balancing of the Service Status. Valid Values: Abnormal
and Normal
. NOTE: Available in 1.142.0+
Load Balancing of the Service Status. Valid Values: Abnormal
and Normal
. NOTE: Field 'load_balancer_bussiness_status' has been deprecated from provider version 1.142.0.
The load balancer ids.
The name of the resource.
A regex string to filter results by Load Balancer name.
File name where to save data source results (after running pulumi preview
).
The ID of the resource group.
The The load balancer status. Valid values: Active
, Configuring
, CreateFailed
, Inactive
and Provisioning
.
The tag of the resource.
The ID of the virtual private cloud (VPC) where the ALB instance is deployed.
The vpc ids.
The ID of the zone to which the ALB instance belongs.
Return
A collection of values returned by getLoadBalancers.
See also
Parameters
Builder for com.pulumi.alicloud.alb.kotlin.inputs.GetLoadBalancersPlainArgs.