1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getLbLoadbalancerV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.getLbLoadbalancerV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for ELBv3 loadbalancer you can get at documentation portal

    Use this data source to get the info about an existing ELBv3 load balancer.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const loadbalancer1 = opentelekomcloud.getLbLoadbalancerV3({
        id: _var.lb_id,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    loadbalancer1 = opentelekomcloud.get_lb_loadbalancer_v3(id=var["lb_id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.LookupLbLoadbalancerV3(ctx, &opentelekomcloud.LookupLbLoadbalancerV3Args{
    			Id: pulumi.StringRef(_var.Lb_id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var loadbalancer1 = Opentelekomcloud.GetLbLoadbalancerV3.Invoke(new()
        {
            Id = @var.Lb_id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetLbLoadbalancerV3Args;
    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 loadbalancer1 = OpentelekomcloudFunctions.getLbLoadbalancerV3(GetLbLoadbalancerV3Args.builder()
                .id(var_.lb_id())
                .build());
    
        }
    }
    
    variables:
      loadbalancer1:
        fn::invoke:
          function: opentelekomcloud:getLbLoadbalancerV3
          arguments:
            id: ${var.lb_id}
    

    Using getLbLoadbalancerV3

    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 getLbLoadbalancerV3(args: GetLbLoadbalancerV3Args, opts?: InvokeOptions): Promise<GetLbLoadbalancerV3Result>
    function getLbLoadbalancerV3Output(args: GetLbLoadbalancerV3OutputArgs, opts?: InvokeOptions): Output<GetLbLoadbalancerV3Result>
    def get_lb_loadbalancer_v3(id: Optional[str] = None,
                               l4_flavor: Optional[str] = None,
                               l7_flavor: Optional[str] = None,
                               name: Optional[str] = None,
                               router_id: Optional[str] = None,
                               subnet_id: Optional[str] = None,
                               vip_address: Optional[str] = None,
                               vip_port_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetLbLoadbalancerV3Result
    def get_lb_loadbalancer_v3_output(id: Optional[pulumi.Input[str]] = None,
                               l4_flavor: Optional[pulumi.Input[str]] = None,
                               l7_flavor: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               router_id: Optional[pulumi.Input[str]] = None,
                               subnet_id: Optional[pulumi.Input[str]] = None,
                               vip_address: Optional[pulumi.Input[str]] = None,
                               vip_port_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetLbLoadbalancerV3Result]
    func LookupLbLoadbalancerV3(ctx *Context, args *LookupLbLoadbalancerV3Args, opts ...InvokeOption) (*LookupLbLoadbalancerV3Result, error)
    func LookupLbLoadbalancerV3Output(ctx *Context, args *LookupLbLoadbalancerV3OutputArgs, opts ...InvokeOption) LookupLbLoadbalancerV3ResultOutput

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

    public static class GetLbLoadbalancerV3 
    {
        public static Task<GetLbLoadbalancerV3Result> InvokeAsync(GetLbLoadbalancerV3Args args, InvokeOptions? opts = null)
        public static Output<GetLbLoadbalancerV3Result> Invoke(GetLbLoadbalancerV3InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLbLoadbalancerV3Result> getLbLoadbalancerV3(GetLbLoadbalancerV3Args args, InvokeOptions options)
    public static Output<GetLbLoadbalancerV3Result> getLbLoadbalancerV3(GetLbLoadbalancerV3Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getLbLoadbalancerV3:getLbLoadbalancerV3
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Specifies the LoadBalancer ID.
    L4Flavor string
    L7Flavor string
    Name string
    Specifies the LoadBalancer name.
    RouterId string
    The ID of the router (or VPC) this LoadBalancer belongs.
    SubnetId string
    The ID of the subnet to which the LoadBalancer belongs.
    VipAddress string
    The IP address of the LoadBalancer.
    VipPortId string
    The Port ID of the Load Balancer IP.
    Id string
    Specifies the LoadBalancer ID.
    L4Flavor string
    L7Flavor string
    Name string
    Specifies the LoadBalancer name.
    RouterId string
    The ID of the router (or VPC) this LoadBalancer belongs.
    SubnetId string
    The ID of the subnet to which the LoadBalancer belongs.
    VipAddress string
    The IP address of the LoadBalancer.
    VipPortId string
    The Port ID of the Load Balancer IP.
    id String
    Specifies the LoadBalancer ID.
    l4Flavor String
    l7Flavor String
    name String
    Specifies the LoadBalancer name.
    routerId String
    The ID of the router (or VPC) this LoadBalancer belongs.
    subnetId String
    The ID of the subnet to which the LoadBalancer belongs.
    vipAddress String
    The IP address of the LoadBalancer.
    vipPortId String
    The Port ID of the Load Balancer IP.
    id string
    Specifies the LoadBalancer ID.
    l4Flavor string
    l7Flavor string
    name string
    Specifies the LoadBalancer name.
    routerId string
    The ID of the router (or VPC) this LoadBalancer belongs.
    subnetId string
    The ID of the subnet to which the LoadBalancer belongs.
    vipAddress string
    The IP address of the LoadBalancer.
    vipPortId string
    The Port ID of the Load Balancer IP.
    id str
    Specifies the LoadBalancer ID.
    l4_flavor str
    l7_flavor str
    name str
    Specifies the LoadBalancer name.
    router_id str
    The ID of the router (or VPC) this LoadBalancer belongs.
    subnet_id str
    The ID of the subnet to which the LoadBalancer belongs.
    vip_address str
    The IP address of the LoadBalancer.
    vip_port_id str
    The Port ID of the Load Balancer IP.
    id String
    Specifies the LoadBalancer ID.
    l4Flavor String
    l7Flavor String
    name String
    Specifies the LoadBalancer name.
    routerId String
    The ID of the router (or VPC) this LoadBalancer belongs.
    subnetId String
    The ID of the subnet to which the LoadBalancer belongs.
    vipAddress String
    The IP address of the LoadBalancer.
    vipPortId String
    The Port ID of the Load Balancer IP.

    getLbLoadbalancerV3 Result

    The following output properties are available:

    AdminStateUp bool
    The administrative state of the LoadBalancer.
    AvailabilityZones List<string>
    Specifies the availability zones where the LoadBalancer will be located.
    CreatedAt string
    The time the LoadBalancer was created.
    DeletionProtection bool
    Specifies whether to enable deletion protection for the load balancer.
    Description string
    Specifies supplementary information about the load balancer.
    Id string
    Elastic IP ID.
    IpTargetEnable bool
    The value can be true (enabled) or false (disabled).
    L4Flavor string
    L7Flavor string
    Name string
    NetworkIds List<string>
    Specifies the subnet Network ID.
    PublicIps List<GetLbLoadbalancerV3PublicIp>
    The elastic IP address of the instance.
    RouterId string
    SubnetId string
    Tags Dictionary<string, string>
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipAddress string
    VipPortId string
    AdminStateUp bool
    The administrative state of the LoadBalancer.
    AvailabilityZones []string
    Specifies the availability zones where the LoadBalancer will be located.
    CreatedAt string
    The time the LoadBalancer was created.
    DeletionProtection bool
    Specifies whether to enable deletion protection for the load balancer.
    Description string
    Specifies supplementary information about the load balancer.
    Id string
    Elastic IP ID.
    IpTargetEnable bool
    The value can be true (enabled) or false (disabled).
    L4Flavor string
    L7Flavor string
    Name string
    NetworkIds []string
    Specifies the subnet Network ID.
    PublicIps []GetLbLoadbalancerV3PublicIp
    The elastic IP address of the instance.
    RouterId string
    SubnetId string
    Tags map[string]string
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipAddress string
    VipPortId string
    adminStateUp Boolean
    The administrative state of the LoadBalancer.
    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located.
    createdAt String
    The time the LoadBalancer was created.
    deletionProtection Boolean
    Specifies whether to enable deletion protection for the load balancer.
    description String
    Specifies supplementary information about the load balancer.
    id String
    Elastic IP ID.
    ipTargetEnable Boolean
    The value can be true (enabled) or false (disabled).
    l4Flavor String
    l7Flavor String
    name String
    networkIds List<String>
    Specifies the subnet Network ID.
    publicIps List<GetLbLoadbalancerV3PublicIp>
    The elastic IP address of the instance.
    routerId String
    subnetId String
    tags Map<String,String>
    updatedAt String
    The time the LoadBalancer was last updated.
    vipAddress String
    vipPortId String
    adminStateUp boolean
    The administrative state of the LoadBalancer.
    availabilityZones string[]
    Specifies the availability zones where the LoadBalancer will be located.
    createdAt string
    The time the LoadBalancer was created.
    deletionProtection boolean
    Specifies whether to enable deletion protection for the load balancer.
    description string
    Specifies supplementary information about the load balancer.
    id string
    Elastic IP ID.
    ipTargetEnable boolean
    The value can be true (enabled) or false (disabled).
    l4Flavor string
    l7Flavor string
    name string
    networkIds string[]
    Specifies the subnet Network ID.
    publicIps GetLbLoadbalancerV3PublicIp[]
    The elastic IP address of the instance.
    routerId string
    subnetId string
    tags {[key: string]: string}
    updatedAt string
    The time the LoadBalancer was last updated.
    vipAddress string
    vipPortId string
    admin_state_up bool
    The administrative state of the LoadBalancer.
    availability_zones Sequence[str]
    Specifies the availability zones where the LoadBalancer will be located.
    created_at str
    The time the LoadBalancer was created.
    deletion_protection bool
    Specifies whether to enable deletion protection for the load balancer.
    description str
    Specifies supplementary information about the load balancer.
    id str
    Elastic IP ID.
    ip_target_enable bool
    The value can be true (enabled) or false (disabled).
    l4_flavor str
    l7_flavor str
    name str
    network_ids Sequence[str]
    Specifies the subnet Network ID.
    public_ips Sequence[GetLbLoadbalancerV3PublicIp]
    The elastic IP address of the instance.
    router_id str
    subnet_id str
    tags Mapping[str, str]
    updated_at str
    The time the LoadBalancer was last updated.
    vip_address str
    vip_port_id str
    adminStateUp Boolean
    The administrative state of the LoadBalancer.
    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located.
    createdAt String
    The time the LoadBalancer was created.
    deletionProtection Boolean
    Specifies whether to enable deletion protection for the load balancer.
    description String
    Specifies supplementary information about the load balancer.
    id String
    Elastic IP ID.
    ipTargetEnable Boolean
    The value can be true (enabled) or false (disabled).
    l4Flavor String
    l7Flavor String
    name String
    networkIds List<String>
    Specifies the subnet Network ID.
    publicIps List<Property Map>
    The elastic IP address of the instance.
    routerId String
    subnetId String
    tags Map<String>
    updatedAt String
    The time the LoadBalancer was last updated.
    vipAddress String
    vipPortId String

    Supporting Types

    GetLbLoadbalancerV3PublicIp

    Address string
    Elastic IP address.
    BandwidthChargeMode string
    Bandwidth billing type.
    BandwidthName string
    Bandwidth name.
    BandwidthShareType string
    Bandwidth sharing type.
    BandwidthSize double
    Bandwidth size.
    Id string
    Specifies the LoadBalancer ID.
    IpType string
    Elastic IP type.
    Address string
    Elastic IP address.
    BandwidthChargeMode string
    Bandwidth billing type.
    BandwidthName string
    Bandwidth name.
    BandwidthShareType string
    Bandwidth sharing type.
    BandwidthSize float64
    Bandwidth size.
    Id string
    Specifies the LoadBalancer ID.
    IpType string
    Elastic IP type.
    address String
    Elastic IP address.
    bandwidthChargeMode String
    Bandwidth billing type.
    bandwidthName String
    Bandwidth name.
    bandwidthShareType String
    Bandwidth sharing type.
    bandwidthSize Double
    Bandwidth size.
    id String
    Specifies the LoadBalancer ID.
    ipType String
    Elastic IP type.
    address string
    Elastic IP address.
    bandwidthChargeMode string
    Bandwidth billing type.
    bandwidthName string
    Bandwidth name.
    bandwidthShareType string
    Bandwidth sharing type.
    bandwidthSize number
    Bandwidth size.
    id string
    Specifies the LoadBalancer ID.
    ipType string
    Elastic IP type.
    address str
    Elastic IP address.
    bandwidth_charge_mode str
    Bandwidth billing type.
    bandwidth_name str
    Bandwidth name.
    bandwidth_share_type str
    Bandwidth sharing type.
    bandwidth_size float
    Bandwidth size.
    id str
    Specifies the LoadBalancer ID.
    ip_type str
    Elastic IP type.
    address String
    Elastic IP address.
    bandwidthChargeMode String
    Bandwidth billing type.
    bandwidthName String
    Bandwidth name.
    bandwidthShareType String
    Bandwidth sharing type.
    bandwidthSize Number
    Bandwidth size.
    id String
    Specifies the LoadBalancer ID.
    ipType String
    Elastic IP type.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud