1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getElbLoadbalancers
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getElbLoadbalancers

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the list of ELB load blancers.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const loadbalancerName = config.requireObject("loadbalancerName");
    const test = flexibleengine.getElbLoadbalancers({
        name: loadbalancerName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    loadbalancer_name = config.require_object("loadbalancerName")
    test = flexibleengine.get_elb_loadbalancers(name=loadbalancer_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		loadbalancerName := cfg.RequireObject("loadbalancerName")
    		_, err := flexibleengine.GetElbLoadbalancers(ctx, &flexibleengine.GetElbLoadbalancersArgs{
    			Name: pulumi.StringRef(loadbalancerName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var loadbalancerName = config.RequireObject<dynamic>("loadbalancerName");
        var test = Flexibleengine.GetElbLoadbalancers.Invoke(new()
        {
            Name = loadbalancerName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetElbLoadbalancersArgs;
    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 config = ctx.config();
            final var loadbalancerName = config.get("loadbalancerName");
            final var test = FlexibleengineFunctions.getElbLoadbalancers(GetElbLoadbalancersArgs.builder()
                .name(loadbalancerName)
                .build());
    
        }
    }
    
    configuration:
      loadbalancerName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getElbLoadbalancers
          arguments:
            name: ${loadbalancerName}
    

    Using getElbLoadbalancers

    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 getElbLoadbalancers(args: GetElbLoadbalancersArgs, opts?: InvokeOptions): Promise<GetElbLoadbalancersResult>
    function getElbLoadbalancersOutput(args: GetElbLoadbalancersOutputArgs, opts?: InvokeOptions): Output<GetElbLoadbalancersResult>
    def get_elb_loadbalancers(description: Optional[str] = None,
                              id: Optional[str] = None,
                              ipv4_subnet_id: Optional[str] = None,
                              ipv6_network_id: Optional[str] = None,
                              l4_flavor_id: Optional[str] = None,
                              l7_flavor_id: Optional[str] = None,
                              loadbalancer_id: Optional[str] = None,
                              name: Optional[str] = None,
                              region: Optional[str] = None,
                              type: Optional[str] = None,
                              vpc_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetElbLoadbalancersResult
    def get_elb_loadbalancers_output(description: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              ipv4_subnet_id: Optional[pulumi.Input[str]] = None,
                              ipv6_network_id: Optional[pulumi.Input[str]] = None,
                              l4_flavor_id: Optional[pulumi.Input[str]] = None,
                              l7_flavor_id: Optional[pulumi.Input[str]] = None,
                              loadbalancer_id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              region: Optional[pulumi.Input[str]] = None,
                              type: Optional[pulumi.Input[str]] = None,
                              vpc_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetElbLoadbalancersResult]
    func GetElbLoadbalancers(ctx *Context, args *GetElbLoadbalancersArgs, opts ...InvokeOption) (*GetElbLoadbalancersResult, error)
    func GetElbLoadbalancersOutput(ctx *Context, args *GetElbLoadbalancersOutputArgs, opts ...InvokeOption) GetElbLoadbalancersResultOutput

    > Note: This function is named GetElbLoadbalancers in the Go SDK.

    public static class GetElbLoadbalancers 
    {
        public static Task<GetElbLoadbalancersResult> InvokeAsync(GetElbLoadbalancersArgs args, InvokeOptions? opts = null)
        public static Output<GetElbLoadbalancersResult> Invoke(GetElbLoadbalancersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetElbLoadbalancersResult> getElbLoadbalancers(GetElbLoadbalancersArgs args, InvokeOptions options)
    public static Output<GetElbLoadbalancersResult> getElbLoadbalancers(GetElbLoadbalancersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getElbLoadbalancers:getElbLoadbalancers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Description string
    Specifies the description of the ELB load balancer.
    Id string
    The load balancer ID.
    Ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    Ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    L4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    L7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    LoadbalancerId string
    Specifies the ID of the ELB load balancer.
    Name string
    Specifies the name of the ELB load balancer.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    Type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    VpcId string
    Specifies the ID of the VPC where the load balancer resides.
    Description string
    Specifies the description of the ELB load balancer.
    Id string
    The load balancer ID.
    Ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    Ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    L4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    L7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    LoadbalancerId string
    Specifies the ID of the ELB load balancer.
    Name string
    Specifies the name of the ELB load balancer.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    Type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    VpcId string
    Specifies the ID of the VPC where the load balancer resides.
    description String
    Specifies the description of the ELB load balancer.
    id String
    The load balancer ID.
    ipv4SubnetId String
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId String
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId String
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId String
    Specifies the ID of a flavor at Layer 7.
    loadbalancerId String
    Specifies the ID of the ELB load balancer.
    name String
    Specifies the name of the ELB load balancer.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    type String
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId String
    Specifies the ID of the VPC where the load balancer resides.
    description string
    Specifies the description of the ELB load balancer.
    id string
    The load balancer ID.
    ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    loadbalancerId string
    Specifies the ID of the ELB load balancer.
    name string
    Specifies the name of the ELB load balancer.
    region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId string
    Specifies the ID of the VPC where the load balancer resides.
    description str
    Specifies the description of the ELB load balancer.
    id str
    The load balancer ID.
    ipv4_subnet_id str
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6_network_id str
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4_flavor_id str
    Specifies the ID of a flavor at Layer 4.
    l7_flavor_id str
    Specifies the ID of a flavor at Layer 7.
    loadbalancer_id str
    Specifies the ID of the ELB load balancer.
    name str
    Specifies the name of the ELB load balancer.
    region str
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    type str
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpc_id str
    Specifies the ID of the VPC where the load balancer resides.
    description String
    Specifies the description of the ELB load balancer.
    id String
    The load balancer ID.
    ipv4SubnetId String
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId String
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId String
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId String
    Specifies the ID of a flavor at Layer 7.
    loadbalancerId String
    Specifies the ID of the ELB load balancer.
    name String
    Specifies the name of the ELB load balancer.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    type String
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId String
    Specifies the ID of the VPC where the load balancer resides.

    getElbLoadbalancers Result

    The following output properties are available:

    Id string
    The load balancer ID.
    Loadbalancers List<GetElbLoadbalancersLoadbalancer>
    Lists the loadalancers. The loadbalancers structure is documented below.
    Region string
    Description string
    The description of load balancer.
    Ipv4SubnetId string
    The ID of the IPv4 subnet where the load balancer resides.
    Ipv6NetworkId string
    The ID of the IPv6 subnet where the load balancer resides.
    L4FlavorId string
    The ID of a flavor at Layer 4.
    L7FlavorId string
    The ID of a flavor at Layer 7
    LoadbalancerId string
    Name string
    The load balancer name.
    Type string
    Whether the load balancer is a dedicated load balancer.
    VpcId string
    The ID of the VPC where the load balancer resides.
    Id string
    The load balancer ID.
    Loadbalancers []GetElbLoadbalancersLoadbalancer
    Lists the loadalancers. The loadbalancers structure is documented below.
    Region string
    Description string
    The description of load balancer.
    Ipv4SubnetId string
    The ID of the IPv4 subnet where the load balancer resides.
    Ipv6NetworkId string
    The ID of the IPv6 subnet where the load balancer resides.
    L4FlavorId string
    The ID of a flavor at Layer 4.
    L7FlavorId string
    The ID of a flavor at Layer 7
    LoadbalancerId string
    Name string
    The load balancer name.
    Type string
    Whether the load balancer is a dedicated load balancer.
    VpcId string
    The ID of the VPC where the load balancer resides.
    id String
    The load balancer ID.
    loadbalancers List<GetElbLoadbalancersLoadbalancer>
    Lists the loadalancers. The loadbalancers structure is documented below.
    region String
    description String
    The description of load balancer.
    ipv4SubnetId String
    The ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId String
    The ID of the IPv6 subnet where the load balancer resides.
    l4FlavorId String
    The ID of a flavor at Layer 4.
    l7FlavorId String
    The ID of a flavor at Layer 7
    loadbalancerId String
    name String
    The load balancer name.
    type String
    Whether the load balancer is a dedicated load balancer.
    vpcId String
    The ID of the VPC where the load balancer resides.
    id string
    The load balancer ID.
    loadbalancers GetElbLoadbalancersLoadbalancer[]
    Lists the loadalancers. The loadbalancers structure is documented below.
    region string
    description string
    The description of load balancer.
    ipv4SubnetId string
    The ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId string
    The ID of the IPv6 subnet where the load balancer resides.
    l4FlavorId string
    The ID of a flavor at Layer 4.
    l7FlavorId string
    The ID of a flavor at Layer 7
    loadbalancerId string
    name string
    The load balancer name.
    type string
    Whether the load balancer is a dedicated load balancer.
    vpcId string
    The ID of the VPC where the load balancer resides.
    id str
    The load balancer ID.
    loadbalancers Sequence[GetElbLoadbalancersLoadbalancer]
    Lists the loadalancers. The loadbalancers structure is documented below.
    region str
    description str
    The description of load balancer.
    ipv4_subnet_id str
    The ID of the IPv4 subnet where the load balancer resides.
    ipv6_network_id str
    The ID of the IPv6 subnet where the load balancer resides.
    l4_flavor_id str
    The ID of a flavor at Layer 4.
    l7_flavor_id str
    The ID of a flavor at Layer 7
    loadbalancer_id str
    name str
    The load balancer name.
    type str
    Whether the load balancer is a dedicated load balancer.
    vpc_id str
    The ID of the VPC where the load balancer resides.
    id String
    The load balancer ID.
    loadbalancers List<Property Map>
    Lists the loadalancers. The loadbalancers structure is documented below.
    region String
    description String
    The description of load balancer.
    ipv4SubnetId String
    The ID of the IPv4 subnet where the load balancer resides.
    ipv6NetworkId String
    The ID of the IPv6 subnet where the load balancer resides.
    l4FlavorId String
    The ID of a flavor at Layer 4.
    l7FlavorId String
    The ID of a flavor at Layer 7
    loadbalancerId String
    name String
    The load balancer name.
    type String
    Whether the load balancer is a dedicated load balancer.
    vpcId String
    The ID of the VPC where the load balancer resides.

    Supporting Types

    GetElbLoadbalancersLoadbalancer

    AutoscalingEnabled bool
    Whether the current load balancer enables elastic expansion.
    AvailabilityZones List<string>
    The list of AZs where the load balancer is created.
    BackendSubnets List<string>
    Lists the IDs of subnets on the downstream plane.
    CrossVpcBackend bool
    Whether to enable IP as a Backend Server.
    Description string
    Specifies the description of the ELB load balancer.
    EnterpriseProjectId string
    Specifies the enterprise project ID.
    Id string
    The load balancer ID.
    Ipv4Address string
    The private IPv4 address bound to the load balancer.
    Ipv4PortId string
    The ID of the port bound to the private IPv4 address of the load balancer.
    Ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    Ipv6Address string
    The IPv6 address bound to the load balancer.
    Ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    L4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    L7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    MinL7FlavorId string
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    Name string
    Specifies the name of the ELB load balancer.
    ProtectionReason string
    The reason for update protection.
    ProtectionStatus string
    The protection status for update.
    Type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    VpcId string
    Specifies the ID of the VPC where the load balancer resides.
    AutoscalingEnabled bool
    Whether the current load balancer enables elastic expansion.
    AvailabilityZones []string
    The list of AZs where the load balancer is created.
    BackendSubnets []string
    Lists the IDs of subnets on the downstream plane.
    CrossVpcBackend bool
    Whether to enable IP as a Backend Server.
    Description string
    Specifies the description of the ELB load balancer.
    EnterpriseProjectId string
    Specifies the enterprise project ID.
    Id string
    The load balancer ID.
    Ipv4Address string
    The private IPv4 address bound to the load balancer.
    Ipv4PortId string
    The ID of the port bound to the private IPv4 address of the load balancer.
    Ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    Ipv6Address string
    The IPv6 address bound to the load balancer.
    Ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    L4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    L7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    MinL7FlavorId string
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    Name string
    Specifies the name of the ELB load balancer.
    ProtectionReason string
    The reason for update protection.
    ProtectionStatus string
    The protection status for update.
    Type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    VpcId string
    Specifies the ID of the VPC where the load balancer resides.
    autoscalingEnabled Boolean
    Whether the current load balancer enables elastic expansion.
    availabilityZones List<String>
    The list of AZs where the load balancer is created.
    backendSubnets List<String>
    Lists the IDs of subnets on the downstream plane.
    crossVpcBackend Boolean
    Whether to enable IP as a Backend Server.
    description String
    Specifies the description of the ELB load balancer.
    enterpriseProjectId String
    Specifies the enterprise project ID.
    id String
    The load balancer ID.
    ipv4Address String
    The private IPv4 address bound to the load balancer.
    ipv4PortId String
    The ID of the port bound to the private IPv4 address of the load balancer.
    ipv4SubnetId String
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6Address String
    The IPv6 address bound to the load balancer.
    ipv6NetworkId String
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId String
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId String
    Specifies the ID of a flavor at Layer 7.
    minL7FlavorId String
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    name String
    Specifies the name of the ELB load balancer.
    protectionReason String
    The reason for update protection.
    protectionStatus String
    The protection status for update.
    type String
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId String
    Specifies the ID of the VPC where the load balancer resides.
    autoscalingEnabled boolean
    Whether the current load balancer enables elastic expansion.
    availabilityZones string[]
    The list of AZs where the load balancer is created.
    backendSubnets string[]
    Lists the IDs of subnets on the downstream plane.
    crossVpcBackend boolean
    Whether to enable IP as a Backend Server.
    description string
    Specifies the description of the ELB load balancer.
    enterpriseProjectId string
    Specifies the enterprise project ID.
    id string
    The load balancer ID.
    ipv4Address string
    The private IPv4 address bound to the load balancer.
    ipv4PortId string
    The ID of the port bound to the private IPv4 address of the load balancer.
    ipv4SubnetId string
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6Address string
    The IPv6 address bound to the load balancer.
    ipv6NetworkId string
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId string
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId string
    Specifies the ID of a flavor at Layer 7.
    minL7FlavorId string
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    name string
    Specifies the name of the ELB load balancer.
    protectionReason string
    The reason for update protection.
    protectionStatus string
    The protection status for update.
    type string
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId string
    Specifies the ID of the VPC where the load balancer resides.
    autoscaling_enabled bool
    Whether the current load balancer enables elastic expansion.
    availability_zones Sequence[str]
    The list of AZs where the load balancer is created.
    backend_subnets Sequence[str]
    Lists the IDs of subnets on the downstream plane.
    cross_vpc_backend bool
    Whether to enable IP as a Backend Server.
    description str
    Specifies the description of the ELB load balancer.
    enterprise_project_id str
    Specifies the enterprise project ID.
    id str
    The load balancer ID.
    ipv4_address str
    The private IPv4 address bound to the load balancer.
    ipv4_port_id str
    The ID of the port bound to the private IPv4 address of the load balancer.
    ipv4_subnet_id str
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6_address str
    The IPv6 address bound to the load balancer.
    ipv6_network_id str
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4_flavor_id str
    Specifies the ID of a flavor at Layer 4.
    l7_flavor_id str
    Specifies the ID of a flavor at Layer 7.
    min_l7_flavor_id str
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    name str
    Specifies the name of the ELB load balancer.
    protection_reason str
    The reason for update protection.
    protection_status str
    The protection status for update.
    type str
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpc_id str
    Specifies the ID of the VPC where the load balancer resides.
    autoscalingEnabled Boolean
    Whether the current load balancer enables elastic expansion.
    availabilityZones List<String>
    The list of AZs where the load balancer is created.
    backendSubnets List<String>
    Lists the IDs of subnets on the downstream plane.
    crossVpcBackend Boolean
    Whether to enable IP as a Backend Server.
    description String
    Specifies the description of the ELB load balancer.
    enterpriseProjectId String
    Specifies the enterprise project ID.
    id String
    The load balancer ID.
    ipv4Address String
    The private IPv4 address bound to the load balancer.
    ipv4PortId String
    The ID of the port bound to the private IPv4 address of the load balancer.
    ipv4SubnetId String
    Specifies the ID of the IPv4 subnet where the load balancer resides.
    ipv6Address String
    The IPv6 address bound to the load balancer.
    ipv6NetworkId String
    Specifies the ID of the port bound to the IPv6 address of the load balancer.
    l4FlavorId String
    Specifies the ID of a flavor at Layer 4.
    l7FlavorId String
    Specifies the ID of a flavor at Layer 7.
    minL7FlavorId String
    The minimum seven-layer specification ID (specification type L7_elastic) for elastic expansion and contraction
    name String
    Specifies the name of the ELB load balancer.
    protectionReason String
    The reason for update protection.
    protectionStatus String
    The protection status for update.
    type String
    Specifies whether the load balancer is a dedicated load balancer, Value options: dedicated, share.
    vpcId String
    Specifies the ID of the VPC where the load balancer resides.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud