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

opentelekomcloud.LbLoadbalancerV3

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 DLB load balancer you can get at documentation portal

    Manages a Dedicated loadbalancer resource within OpenTelekomCloud.

    Example Usage

    Basic usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const lb1 = new opentelekomcloud.LbLoadbalancerV3("lb1", {
        routerId: _var.router_id,
        networkIds: [_var.network_id],
        availabilityZones: [_var.az],
        tags: {
            muh: "kuh",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    lb1 = opentelekomcloud.LbLoadbalancerV3("lb1",
        router_id=var["router_id"],
        network_ids=[var["network_id"]],
        availability_zones=[var["az"]],
        tags={
            "muh": "kuh",
        })
    
    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.NewLbLoadbalancerV3(ctx, "lb1", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(_var.Router_id),
    			NetworkIds: pulumi.StringArray{
    				_var.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				_var.Az,
    			},
    			Tags: pulumi.StringMap{
    				"muh": pulumi.String("kuh"),
    			},
    		})
    		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 lb1 = new Opentelekomcloud.LbLoadbalancerV3("lb1", new()
        {
            RouterId = @var.Router_id,
            NetworkIds = new[]
            {
                @var.Network_id,
            },
            AvailabilityZones = new[]
            {
                @var.Az,
            },
            Tags = 
            {
                { "muh", "kuh" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    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) {
            var lb1 = new LbLoadbalancerV3("lb1", LbLoadbalancerV3Args.builder()
                .routerId(var_.router_id())
                .networkIds(var_.network_id())
                .availabilityZones(var_.az())
                .tags(Map.of("muh", "kuh"))
                .build());
    
        }
    }
    
    resources:
      lb1:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${var.router_id}
          networkIds:
            - ${var.network_id}
          availabilityZones:
            - ${var.az}
          tags:
            muh: kuh
    

    Newly created

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const lb1 = new opentelekomcloud.LbLoadbalancerV3("lb1", {
        subnetId: _var.subnet_id,
        networkIds: [_var.network_id],
        availabilityZones: [_var.az],
        publicIp: {
            bandwidthName: "lb-bandwidth",
            ipType: "5_bgp",
            bandwidthSize: 10,
            bandwidthShareType: "PER",
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    lb1 = opentelekomcloud.LbLoadbalancerV3("lb1",
        subnet_id=var["subnet_id"],
        network_ids=[var["network_id"]],
        availability_zones=[var["az"]],
        public_ip={
            "bandwidth_name": "lb-bandwidth",
            "ip_type": "5_bgp",
            "bandwidth_size": 10,
            "bandwidth_share_type": "PER",
        })
    
    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.NewLbLoadbalancerV3(ctx, "lb1", &opentelekomcloud.LbLoadbalancerV3Args{
    			SubnetId: pulumi.Any(_var.Subnet_id),
    			NetworkIds: pulumi.StringArray{
    				_var.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				_var.Az,
    			},
    			PublicIp: &opentelekomcloud.LbLoadbalancerV3PublicIpArgs{
    				BandwidthName:      pulumi.String("lb-bandwidth"),
    				IpType:             pulumi.String("5_bgp"),
    				BandwidthSize:      pulumi.Float64(10),
    				BandwidthShareType: pulumi.String("PER"),
    			},
    		})
    		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 lb1 = new Opentelekomcloud.LbLoadbalancerV3("lb1", new()
        {
            SubnetId = @var.Subnet_id,
            NetworkIds = new[]
            {
                @var.Network_id,
            },
            AvailabilityZones = new[]
            {
                @var.Az,
            },
            PublicIp = new Opentelekomcloud.Inputs.LbLoadbalancerV3PublicIpArgs
            {
                BandwidthName = "lb-bandwidth",
                IpType = "5_bgp",
                BandwidthSize = 10,
                BandwidthShareType = "PER",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbLoadbalancerV3PublicIpArgs;
    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) {
            var lb1 = new LbLoadbalancerV3("lb1", LbLoadbalancerV3Args.builder()
                .subnetId(var_.subnet_id())
                .networkIds(var_.network_id())
                .availabilityZones(var_.az())
                .publicIp(LbLoadbalancerV3PublicIpArgs.builder()
                    .bandwidthName("lb-bandwidth")
                    .ipType("5_bgp")
                    .bandwidthSize(10)
                    .bandwidthShareType("PER")
                    .build())
                .build());
    
        }
    }
    
    resources:
      lb1:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          subnetId: ${var.subnet_id}
          networkIds:
            - ${var.network_id}
          availabilityZones:
            - ${var.az}
          publicIp:
            bandwidthName: lb-bandwidth
            ipType: 5_bgp
            bandwidthSize: 10
            bandwidthShareType: PER
    

    Already existing opentelekomcloud.NetworkingFloatingipV2

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const fip1 = new opentelekomcloud.NetworkingFloatingipV2("fip1", {});
    const loadbalancer1 = new opentelekomcloud.LbLoadbalancerV3("loadbalancer1", {
        routerId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id,
        networkIds: [data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id],
        availabilityZones: ["eu-de-01"],
        publicIp: {
            id: fip1.networkingFloatingipV2Id,
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    fip1 = opentelekomcloud.NetworkingFloatingipV2("fip1")
    loadbalancer1 = opentelekomcloud.LbLoadbalancerV3("loadbalancer1",
        router_id=data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["vpc_id"],
        network_ids=[data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["network_id"]],
        availability_zones=["eu-de-01"],
        public_ip={
            "id": fip1.networking_floatingip_v2_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 {
    		fip1, err := opentelekomcloud.NewNetworkingFloatingipV2(ctx, "fip1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbLoadbalancerV3(ctx, "loadbalancer1", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id),
    			NetworkIds: pulumi.StringArray{
    				data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				pulumi.String("eu-de-01"),
    			},
    			PublicIp: &opentelekomcloud.LbLoadbalancerV3PublicIpArgs{
    				Id: fip1.NetworkingFloatingipV2Id,
    			},
    		})
    		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 fip1 = new Opentelekomcloud.NetworkingFloatingipV2("fip1");
    
        var loadbalancer1 = new Opentelekomcloud.LbLoadbalancerV3("loadbalancer1", new()
        {
            RouterId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id,
            NetworkIds = new[]
            {
                data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id,
            },
            AvailabilityZones = new[]
            {
                "eu-de-01",
            },
            PublicIp = new Opentelekomcloud.Inputs.LbLoadbalancerV3PublicIpArgs
            {
                Id = fip1.NetworkingFloatingipV2Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.NetworkingFloatingipV2;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbLoadbalancerV3PublicIpArgs;
    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) {
            var fip1 = new NetworkingFloatingipV2("fip1");
    
            var loadbalancer1 = new LbLoadbalancerV3("loadbalancer1", LbLoadbalancerV3Args.builder()
                .routerId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().vpc_id())
                .networkIds(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().network_id())
                .availabilityZones("eu-de-01")
                .publicIp(LbLoadbalancerV3PublicIpArgs.builder()
                    .id(fip1.networkingFloatingipV2Id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      loadbalancer1:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id}
          networkIds:
            - ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id}
          availabilityZones:
            - eu-de-01
          publicIp:
            id: ${fip1.networkingFloatingipV2Id}
      fip1:
        type: opentelekomcloud:NetworkingFloatingipV2
    

    Or opentelekomcloud.VpcEipV1

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const fip1 = new opentelekomcloud.VpcEipV1("fip1", {
        bandwidth: {
            chargeMode: "traffic",
            name: "eip",
            shareType: "PER",
            size: 100,
        },
        publicip: {
            type: "5_bgp",
        },
    });
    const loadbalancer1 = new opentelekomcloud.LbLoadbalancerV3("loadbalancer1", {
        routerId: opentelekomcloud_vpc_subnet_v1["this"].vpc_id,
        networkIds: [opentelekomcloud_vpc_subnet_v1["this"].network_id],
        availabilityZones: ["eu-de-01"],
        publicIp: {
            id: fip1.vpcEipV1Id,
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    fip1 = opentelekomcloud.VpcEipV1("fip1",
        bandwidth={
            "charge_mode": "traffic",
            "name": "eip",
            "share_type": "PER",
            "size": 100,
        },
        publicip={
            "type": "5_bgp",
        })
    loadbalancer1 = opentelekomcloud.LbLoadbalancerV3("loadbalancer1",
        router_id=opentelekomcloud_vpc_subnet_v1["this"]["vpc_id"],
        network_ids=[opentelekomcloud_vpc_subnet_v1["this"]["network_id"]],
        availability_zones=["eu-de-01"],
        public_ip={
            "id": fip1.vpc_eip_v1_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 {
    		fip1, err := opentelekomcloud.NewVpcEipV1(ctx, "fip1", &opentelekomcloud.VpcEipV1Args{
    			Bandwidth: &opentelekomcloud.VpcEipV1BandwidthArgs{
    				ChargeMode: pulumi.String("traffic"),
    				Name:       pulumi.String("eip"),
    				ShareType:  pulumi.String("PER"),
    				Size:       pulumi.Float64(100),
    			},
    			Publicip: &opentelekomcloud.VpcEipV1PublicipArgs{
    				Type: pulumi.String("5_bgp"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewLbLoadbalancerV3(ctx, "loadbalancer1", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(opentelekomcloud_vpc_subnet_v1.This.Vpc_id),
    			NetworkIds: pulumi.StringArray{
    				opentelekomcloud_vpc_subnet_v1.This.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				pulumi.String("eu-de-01"),
    			},
    			PublicIp: &opentelekomcloud.LbLoadbalancerV3PublicIpArgs{
    				Id: fip1.VpcEipV1Id,
    			},
    		})
    		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 fip1 = new Opentelekomcloud.VpcEipV1("fip1", new()
        {
            Bandwidth = new Opentelekomcloud.Inputs.VpcEipV1BandwidthArgs
            {
                ChargeMode = "traffic",
                Name = "eip",
                ShareType = "PER",
                Size = 100,
            },
            Publicip = new Opentelekomcloud.Inputs.VpcEipV1PublicipArgs
            {
                Type = "5_bgp",
            },
        });
    
        var loadbalancer1 = new Opentelekomcloud.LbLoadbalancerV3("loadbalancer1", new()
        {
            RouterId = opentelekomcloud_vpc_subnet_v1.This.Vpc_id,
            NetworkIds = new[]
            {
                opentelekomcloud_vpc_subnet_v1.This.Network_id,
            },
            AvailabilityZones = new[]
            {
                "eu-de-01",
            },
            PublicIp = new Opentelekomcloud.Inputs.LbLoadbalancerV3PublicIpArgs
            {
                Id = fip1.VpcEipV1Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.VpcEipV1;
    import com.pulumi.opentelekomcloud.VpcEipV1Args;
    import com.pulumi.opentelekomcloud.inputs.VpcEipV1BandwidthArgs;
    import com.pulumi.opentelekomcloud.inputs.VpcEipV1PublicipArgs;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbLoadbalancerV3PublicIpArgs;
    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) {
            var fip1 = new VpcEipV1("fip1", VpcEipV1Args.builder()
                .bandwidth(VpcEipV1BandwidthArgs.builder()
                    .chargeMode("traffic")
                    .name("eip")
                    .shareType("PER")
                    .size(100)
                    .build())
                .publicip(VpcEipV1PublicipArgs.builder()
                    .type("5_bgp")
                    .build())
                .build());
    
            var loadbalancer1 = new LbLoadbalancerV3("loadbalancer1", LbLoadbalancerV3Args.builder()
                .routerId(opentelekomcloud_vpc_subnet_v1.this().vpc_id())
                .networkIds(opentelekomcloud_vpc_subnet_v1.this().network_id())
                .availabilityZones("eu-de-01")
                .publicIp(LbLoadbalancerV3PublicIpArgs.builder()
                    .id(fip1.vpcEipV1Id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      loadbalancer1:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${opentelekomcloud_vpc_subnet_v1.this.vpc_id}
          networkIds:
            - ${opentelekomcloud_vpc_subnet_v1.this.network_id}
          availabilityZones:
            - eu-de-01
          publicIp:
            id: ${fip1.vpcEipV1Id}
      fip1:
        type: opentelekomcloud:VpcEipV1
        properties:
          bandwidth:
            chargeMode: traffic
            name: eip
            shareType: PER
            size: 100
          publicip:
            type: 5_bgp
    

    Assign new bandwidth to EIP without recreating

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const loadbalancer1 = new opentelekomcloud.LbLoadbalancerV3("loadbalancer1", {
        routerId: data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id,
        networkIds: [data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id],
        availabilityZones: ["eu-de-01"],
        publicIp: {
            ipType: "5_bgp",
            bandwidthName: "lb_band",
            bandwidthSize: 10,
            bandwidthShareType: "PER",
        },
        tags: {
            muh: "value-create",
            kuh: "value-create",
        },
    });
    const bw = new opentelekomcloud.VpcBandwidthV2("bw", {size: 20});
    const associate = new opentelekomcloud.VpcBandwidthAssociateV2("associate", {
        bandwidth: bw.vpcBandwidthV2Id,
        floatingIps: [loadbalancer1.publicIp.apply(publicIp => publicIp?.id)],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    loadbalancer1 = opentelekomcloud.LbLoadbalancerV3("loadbalancer1",
        router_id=data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["vpc_id"],
        network_ids=[data["opentelekomcloud_vpc_subnet_v1"]["shared_subnet"]["network_id"]],
        availability_zones=["eu-de-01"],
        public_ip={
            "ip_type": "5_bgp",
            "bandwidth_name": "lb_band",
            "bandwidth_size": 10,
            "bandwidth_share_type": "PER",
        },
        tags={
            "muh": "value-create",
            "kuh": "value-create",
        })
    bw = opentelekomcloud.VpcBandwidthV2("bw", size=20)
    associate = opentelekomcloud.VpcBandwidthAssociateV2("associate",
        bandwidth=bw.vpc_bandwidth_v2_id,
        floating_ips=[loadbalancer1.public_ip.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 {
    		loadbalancer1, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "loadbalancer1", &opentelekomcloud.LbLoadbalancerV3Args{
    			RouterId: pulumi.Any(data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id),
    			NetworkIds: pulumi.StringArray{
    				data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id,
    			},
    			AvailabilityZones: pulumi.StringArray{
    				pulumi.String("eu-de-01"),
    			},
    			PublicIp: &opentelekomcloud.LbLoadbalancerV3PublicIpArgs{
    				IpType:             pulumi.String("5_bgp"),
    				BandwidthName:      pulumi.String("lb_band"),
    				BandwidthSize:      pulumi.Float64(10),
    				BandwidthShareType: pulumi.String("PER"),
    			},
    			Tags: pulumi.StringMap{
    				"muh": pulumi.String("value-create"),
    				"kuh": pulumi.String("value-create"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		bw, err := opentelekomcloud.NewVpcBandwidthV2(ctx, "bw", &opentelekomcloud.VpcBandwidthV2Args{
    			Size: pulumi.Float64(20),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewVpcBandwidthAssociateV2(ctx, "associate", &opentelekomcloud.VpcBandwidthAssociateV2Args{
    			Bandwidth: bw.VpcBandwidthV2Id,
    			FloatingIps: pulumi.StringArray{
    				pulumi.String(loadbalancer1.PublicIp.ApplyT(func(publicIp opentelekomcloud.LbLoadbalancerV3PublicIp) (*string, error) {
    					return &publicIp.Id, nil
    				}).(pulumi.StringPtrOutput)),
    			},
    		})
    		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 = new Opentelekomcloud.LbLoadbalancerV3("loadbalancer1", new()
        {
            RouterId = data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Vpc_id,
            NetworkIds = new[]
            {
                data.Opentelekomcloud_vpc_subnet_v1.Shared_subnet.Network_id,
            },
            AvailabilityZones = new[]
            {
                "eu-de-01",
            },
            PublicIp = new Opentelekomcloud.Inputs.LbLoadbalancerV3PublicIpArgs
            {
                IpType = "5_bgp",
                BandwidthName = "lb_band",
                BandwidthSize = 10,
                BandwidthShareType = "PER",
            },
            Tags = 
            {
                { "muh", "value-create" },
                { "kuh", "value-create" },
            },
        });
    
        var bw = new Opentelekomcloud.VpcBandwidthV2("bw", new()
        {
            Size = 20,
        });
    
        var associate = new Opentelekomcloud.VpcBandwidthAssociateV2("associate", new()
        {
            Bandwidth = bw.VpcBandwidthV2Id,
            FloatingIps = new[]
            {
                loadbalancer1.PublicIp.Apply(publicIp => publicIp?.Id),
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3;
    import com.pulumi.opentelekomcloud.LbLoadbalancerV3Args;
    import com.pulumi.opentelekomcloud.inputs.LbLoadbalancerV3PublicIpArgs;
    import com.pulumi.opentelekomcloud.VpcBandwidthV2;
    import com.pulumi.opentelekomcloud.VpcBandwidthV2Args;
    import com.pulumi.opentelekomcloud.VpcBandwidthAssociateV2;
    import com.pulumi.opentelekomcloud.VpcBandwidthAssociateV2Args;
    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) {
            var loadbalancer1 = new LbLoadbalancerV3("loadbalancer1", LbLoadbalancerV3Args.builder()
                .routerId(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().vpc_id())
                .networkIds(data.opentelekomcloud_vpc_subnet_v1().shared_subnet().network_id())
                .availabilityZones("eu-de-01")
                .publicIp(LbLoadbalancerV3PublicIpArgs.builder()
                    .ipType("5_bgp")
                    .bandwidthName("lb_band")
                    .bandwidthSize(10)
                    .bandwidthShareType("PER")
                    .build())
                .tags(Map.ofEntries(
                    Map.entry("muh", "value-create"),
                    Map.entry("kuh", "value-create")
                ))
                .build());
    
            var bw = new VpcBandwidthV2("bw", VpcBandwidthV2Args.builder()
                .size(20)
                .build());
    
            var associate = new VpcBandwidthAssociateV2("associate", VpcBandwidthAssociateV2Args.builder()
                .bandwidth(bw.vpcBandwidthV2Id())
                .floatingIps(loadbalancer1.publicIp().applyValue(publicIp -> publicIp.id()))
                .build());
    
        }
    }
    
    resources:
      loadbalancer1:
        type: opentelekomcloud:LbLoadbalancerV3
        properties:
          routerId: ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.vpc_id}
          networkIds:
            - ${data.opentelekomcloud_vpc_subnet_v1.shared_subnet.network_id}
          availabilityZones:
            - eu-de-01
          publicIp:
            ipType: 5_bgp
            bandwidthName: lb_band
            bandwidthSize: 10
            bandwidthShareType: PER
          tags:
            muh: value-create
            kuh: value-create
      bw:
        type: opentelekomcloud:VpcBandwidthV2
        properties:
          size: 20
      associate:
        type: opentelekomcloud:VpcBandwidthAssociateV2
        properties:
          bandwidth: ${bw.vpcBandwidthV2Id}
          floatingIps:
            - ${loadbalancer1.publicIp.id}
    

    Create LbLoadbalancerV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LbLoadbalancerV3(name: string, args: LbLoadbalancerV3Args, opts?: CustomResourceOptions);
    @overload
    def LbLoadbalancerV3(resource_name: str,
                         args: LbLoadbalancerV3Args,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbLoadbalancerV3(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         network_ids: Optional[Sequence[str]] = None,
                         availability_zones: Optional[Sequence[str]] = None,
                         description: Optional[str] = None,
                         admin_state_up: Optional[bool] = None,
                         ip_target_enable: Optional[bool] = None,
                         l4_flavor: Optional[str] = None,
                         l7_flavor: Optional[str] = None,
                         lb_loadbalancer_v3_id: Optional[str] = None,
                         name: Optional[str] = None,
                         deletion_protection: Optional[bool] = None,
                         public_ip: Optional[LbLoadbalancerV3PublicIpArgs] = None,
                         router_id: Optional[str] = None,
                         subnet_id: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         vip_address: Optional[str] = None)
    func NewLbLoadbalancerV3(ctx *Context, name string, args LbLoadbalancerV3Args, opts ...ResourceOption) (*LbLoadbalancerV3, error)
    public LbLoadbalancerV3(string name, LbLoadbalancerV3Args args, CustomResourceOptions? opts = null)
    public LbLoadbalancerV3(String name, LbLoadbalancerV3Args args)
    public LbLoadbalancerV3(String name, LbLoadbalancerV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LbLoadbalancerV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LbLoadbalancerV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LbLoadbalancerV3Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LbLoadbalancerV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbLoadbalancerV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbLoadbalancerV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var lbLoadbalancerV3Resource = new Opentelekomcloud.LbLoadbalancerV3("lbLoadbalancerV3Resource", new()
    {
        NetworkIds = new[]
        {
            "string",
        },
        AvailabilityZones = new[]
        {
            "string",
        },
        Description = "string",
        AdminStateUp = false,
        IpTargetEnable = false,
        L4Flavor = "string",
        L7Flavor = "string",
        LbLoadbalancerV3Id = "string",
        Name = "string",
        DeletionProtection = false,
        PublicIp = new Opentelekomcloud.Inputs.LbLoadbalancerV3PublicIpArgs
        {
            _managed = false,
            Address = "string",
            BandwidthChargeMode = "string",
            BandwidthName = "string",
            BandwidthShareType = "string",
            BandwidthSize = 0,
            Id = "string",
            IpType = "string",
        },
        RouterId = "string",
        SubnetId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        VipAddress = "string",
    });
    
    example, err := opentelekomcloud.NewLbLoadbalancerV3(ctx, "lbLoadbalancerV3Resource", &opentelekomcloud.LbLoadbalancerV3Args{
    	NetworkIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AvailabilityZones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:        pulumi.String("string"),
    	AdminStateUp:       pulumi.Bool(false),
    	IpTargetEnable:     pulumi.Bool(false),
    	L4Flavor:           pulumi.String("string"),
    	L7Flavor:           pulumi.String("string"),
    	LbLoadbalancerV3Id: pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	DeletionProtection: pulumi.Bool(false),
    	PublicIp: &opentelekomcloud.LbLoadbalancerV3PublicIpArgs{
    		_managed:            pulumi.Bool(false),
    		Address:             pulumi.String("string"),
    		BandwidthChargeMode: pulumi.String("string"),
    		BandwidthName:       pulumi.String("string"),
    		BandwidthShareType:  pulumi.String("string"),
    		BandwidthSize:       pulumi.Float64(0),
    		Id:                  pulumi.String("string"),
    		IpType:              pulumi.String("string"),
    	},
    	RouterId: pulumi.String("string"),
    	SubnetId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	VipAddress: pulumi.String("string"),
    })
    
    var lbLoadbalancerV3Resource = new LbLoadbalancerV3("lbLoadbalancerV3Resource", LbLoadbalancerV3Args.builder()
        .networkIds("string")
        .availabilityZones("string")
        .description("string")
        .adminStateUp(false)
        .ipTargetEnable(false)
        .l4Flavor("string")
        .l7Flavor("string")
        .lbLoadbalancerV3Id("string")
        .name("string")
        .deletionProtection(false)
        .publicIp(LbLoadbalancerV3PublicIpArgs.builder()
            ._managed(false)
            .address("string")
            .bandwidthChargeMode("string")
            .bandwidthName("string")
            .bandwidthShareType("string")
            .bandwidthSize(0)
            .id("string")
            .ipType("string")
            .build())
        .routerId("string")
        .subnetId("string")
        .tags(Map.of("string", "string"))
        .vipAddress("string")
        .build());
    
    lb_loadbalancer_v3_resource = opentelekomcloud.LbLoadbalancerV3("lbLoadbalancerV3Resource",
        network_ids=["string"],
        availability_zones=["string"],
        description="string",
        admin_state_up=False,
        ip_target_enable=False,
        l4_flavor="string",
        l7_flavor="string",
        lb_loadbalancer_v3_id="string",
        name="string",
        deletion_protection=False,
        public_ip={
            "_managed": False,
            "address": "string",
            "bandwidth_charge_mode": "string",
            "bandwidth_name": "string",
            "bandwidth_share_type": "string",
            "bandwidth_size": 0,
            "id": "string",
            "ip_type": "string",
        },
        router_id="string",
        subnet_id="string",
        tags={
            "string": "string",
        },
        vip_address="string")
    
    const lbLoadbalancerV3Resource = new opentelekomcloud.LbLoadbalancerV3("lbLoadbalancerV3Resource", {
        networkIds: ["string"],
        availabilityZones: ["string"],
        description: "string",
        adminStateUp: false,
        ipTargetEnable: false,
        l4Flavor: "string",
        l7Flavor: "string",
        lbLoadbalancerV3Id: "string",
        name: "string",
        deletionProtection: false,
        publicIp: {
            _managed: false,
            address: "string",
            bandwidthChargeMode: "string",
            bandwidthName: "string",
            bandwidthShareType: "string",
            bandwidthSize: 0,
            id: "string",
            ipType: "string",
        },
        routerId: "string",
        subnetId: "string",
        tags: {
            string: "string",
        },
        vipAddress: "string",
    });
    
    type: opentelekomcloud:LbLoadbalancerV3
    properties:
        adminStateUp: false
        availabilityZones:
            - string
        deletionProtection: false
        description: string
        ipTargetEnable: false
        l4Flavor: string
        l7Flavor: string
        lbLoadbalancerV3Id: string
        name: string
        networkIds:
            - string
        publicIp:
            _managed: false
            address: string
            bandwidthChargeMode: string
            bandwidthName: string
            bandwidthShareType: string
            bandwidthSize: 0
            id: string
            ipType: string
        routerId: string
        subnetId: string
        tags:
            string: string
        vipAddress: string
    

    LbLoadbalancerV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LbLoadbalancerV3 resource accepts the following input properties:

    AvailabilityZones List<string>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    NetworkIds List<string>
    Specifies the subnet Network ID.
    AdminStateUp bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    DeletionProtection bool
    Description string
    Provides supplementary information about the load balancer.
    IpTargetEnable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    L4Flavor string
    The ID of the Layer-4 flavor.
    L7Flavor string
    The ID of the Layer-7 flavor.
    LbLoadbalancerV3Id string
    Name string
    The LoadBalancer name.
    PublicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    RouterId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    SubnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    Tags Dictionary<string, string>
    VipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    AvailabilityZones []string
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    NetworkIds []string
    Specifies the subnet Network ID.
    AdminStateUp bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    DeletionProtection bool
    Description string
    Provides supplementary information about the load balancer.
    IpTargetEnable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    L4Flavor string
    The ID of the Layer-4 flavor.
    L7Flavor string
    The ID of the Layer-7 flavor.
    LbLoadbalancerV3Id string
    Name string
    The LoadBalancer name.
    PublicIp LbLoadbalancerV3PublicIpArgs

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    RouterId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    SubnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    Tags map[string]string
    VipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    networkIds List<String>
    Specifies the subnet Network ID.
    adminStateUp Boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    deletionProtection Boolean
    description String
    Provides supplementary information about the load balancer.
    ipTargetEnable Boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor String
    The ID of the Layer-4 flavor.
    l7Flavor String
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id String
    name String
    The LoadBalancer name.
    publicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId String
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId String

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Map<String,String>
    vipAddress String

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    availabilityZones string[]
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    networkIds string[]
    Specifies the subnet Network ID.
    adminStateUp boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    deletionProtection boolean
    description string
    Provides supplementary information about the load balancer.
    ipTargetEnable boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor string
    The ID of the Layer-4 flavor.
    l7Flavor string
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id string
    name string
    The LoadBalancer name.
    publicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags {[key: string]: string}
    vipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    availability_zones Sequence[str]
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    network_ids Sequence[str]
    Specifies the subnet Network ID.
    admin_state_up bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    deletion_protection bool
    description str
    Provides supplementary information about the load balancer.
    ip_target_enable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4_flavor str
    The ID of the Layer-4 flavor.
    l7_flavor str
    The ID of the Layer-7 flavor.
    lb_loadbalancer_v3_id str
    name str
    The LoadBalancer name.
    public_ip LbLoadbalancerV3PublicIpArgs

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    router_id str
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnet_id str

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Mapping[str, str]
    vip_address str

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    networkIds List<String>
    Specifies the subnet Network ID.
    adminStateUp Boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    deletionProtection Boolean
    description String
    Provides supplementary information about the load balancer.
    ipTargetEnable Boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor String
    The ID of the Layer-4 flavor.
    l7Flavor String
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id String
    name String
    The LoadBalancer name.
    publicIp Property Map

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId String
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId String

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Map<String>
    vipAddress String

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LbLoadbalancerV3 resource produces the following output properties:

    CreatedAt string
    The time the LoadBalancer was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipPortId string
    The Port ID of the Load Balancer IP.
    CreatedAt string
    The time the LoadBalancer was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipPortId string
    The Port ID of the Load Balancer IP.
    createdAt String
    The time the LoadBalancer was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time the LoadBalancer was last updated.
    vipPortId String
    The Port ID of the Load Balancer IP.
    createdAt string
    The time the LoadBalancer was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The time the LoadBalancer was last updated.
    vipPortId string
    The Port ID of the Load Balancer IP.
    created_at str
    The time the LoadBalancer was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The time the LoadBalancer was last updated.
    vip_port_id str
    The Port ID of the Load Balancer IP.
    createdAt String
    The time the LoadBalancer was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The time the LoadBalancer was last updated.
    vipPortId String
    The Port ID of the Load Balancer IP.

    Look up Existing LbLoadbalancerV3 Resource

    Get an existing LbLoadbalancerV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LbLoadbalancerV3State, opts?: CustomResourceOptions): LbLoadbalancerV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_state_up: Optional[bool] = None,
            availability_zones: Optional[Sequence[str]] = None,
            created_at: Optional[str] = None,
            deletion_protection: Optional[bool] = None,
            description: Optional[str] = None,
            ip_target_enable: Optional[bool] = None,
            l4_flavor: Optional[str] = None,
            l7_flavor: Optional[str] = None,
            lb_loadbalancer_v3_id: Optional[str] = None,
            name: Optional[str] = None,
            network_ids: Optional[Sequence[str]] = None,
            public_ip: Optional[LbLoadbalancerV3PublicIpArgs] = None,
            router_id: Optional[str] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            updated_at: Optional[str] = None,
            vip_address: Optional[str] = None,
            vip_port_id: Optional[str] = None) -> LbLoadbalancerV3
    func GetLbLoadbalancerV3(ctx *Context, name string, id IDInput, state *LbLoadbalancerV3State, opts ...ResourceOption) (*LbLoadbalancerV3, error)
    public static LbLoadbalancerV3 Get(string name, Input<string> id, LbLoadbalancerV3State? state, CustomResourceOptions? opts = null)
    public static LbLoadbalancerV3 get(String name, Output<String> id, LbLoadbalancerV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LbLoadbalancerV3    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AdminStateUp bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    AvailabilityZones List<string>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    CreatedAt string
    The time the LoadBalancer was created.
    DeletionProtection bool
    Description string
    Provides supplementary information about the load balancer.
    IpTargetEnable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    L4Flavor string
    The ID of the Layer-4 flavor.
    L7Flavor string
    The ID of the Layer-7 flavor.
    LbLoadbalancerV3Id string
    Name string
    The LoadBalancer name.
    NetworkIds List<string>
    Specifies the subnet Network ID.
    PublicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    RouterId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    SubnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    Tags Dictionary<string, string>
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    VipPortId string
    The Port ID of the Load Balancer IP.
    AdminStateUp bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    AvailabilityZones []string
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    CreatedAt string
    The time the LoadBalancer was created.
    DeletionProtection bool
    Description string
    Provides supplementary information about the load balancer.
    IpTargetEnable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    L4Flavor string
    The ID of the Layer-4 flavor.
    L7Flavor string
    The ID of the Layer-7 flavor.
    LbLoadbalancerV3Id string
    Name string
    The LoadBalancer name.
    NetworkIds []string
    Specifies the subnet Network ID.
    PublicIp LbLoadbalancerV3PublicIpArgs

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    RouterId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    SubnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    Tags map[string]string
    UpdatedAt string
    The time the LoadBalancer was last updated.
    VipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    VipPortId string
    The Port ID of the Load Balancer IP.
    adminStateUp Boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    createdAt String
    The time the LoadBalancer was created.
    deletionProtection Boolean
    description String
    Provides supplementary information about the load balancer.
    ipTargetEnable Boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor String
    The ID of the Layer-4 flavor.
    l7Flavor String
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id String
    name String
    The LoadBalancer name.
    networkIds List<String>
    Specifies the subnet Network ID.
    publicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId String
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId String

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Map<String,String>
    updatedAt String
    The time the LoadBalancer was last updated.
    vipAddress String

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    vipPortId String
    The Port ID of the Load Balancer IP.
    adminStateUp boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    availabilityZones string[]
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    createdAt string
    The time the LoadBalancer was created.
    deletionProtection boolean
    description string
    Provides supplementary information about the load balancer.
    ipTargetEnable boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor string
    The ID of the Layer-4 flavor.
    l7Flavor string
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id string
    name string
    The LoadBalancer name.
    networkIds string[]
    Specifies the subnet Network ID.
    publicIp LbLoadbalancerV3PublicIp

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId string
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId string

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags {[key: string]: string}
    updatedAt string
    The time the LoadBalancer was last updated.
    vipAddress string

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    vipPortId string
    The Port ID of the Load Balancer IP.
    admin_state_up bool
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    availability_zones Sequence[str]
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    created_at str
    The time the LoadBalancer was created.
    deletion_protection bool
    description str
    Provides supplementary information about the load balancer.
    ip_target_enable bool

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4_flavor str
    The ID of the Layer-4 flavor.
    l7_flavor str
    The ID of the Layer-7 flavor.
    lb_loadbalancer_v3_id str
    name str
    The LoadBalancer name.
    network_ids Sequence[str]
    Specifies the subnet Network ID.
    public_ip LbLoadbalancerV3PublicIpArgs

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    router_id str
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnet_id str

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Mapping[str, str]
    updated_at str
    The time the LoadBalancer was last updated.
    vip_address str

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    vip_port_id str
    The Port ID of the Load Balancer IP.
    adminStateUp Boolean
    The administrative state of the LoadBalancer. A valid value is only true (UP).
    availabilityZones List<String>
    Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
    createdAt String
    The time the LoadBalancer was created.
    deletionProtection Boolean
    description String
    Provides supplementary information about the load balancer.
    ipTargetEnable Boolean

    The value can be true (enabled) or false (disabled).

    If both l4_flavor and l7_flavor is empty, both ALB and NLB will be attached to the load balancer with the default flavor. It is advisable to specify one of them, unless your intention is to associate both flavors with the default setting.

    l4Flavor String
    The ID of the Layer-4 flavor.
    l7Flavor String
    The ID of the Layer-7 flavor.
    lbLoadbalancerV3Id String
    name String
    The LoadBalancer name.
    networkIds List<String>
    Specifies the subnet Network ID.
    publicIp Property Map

    The elastic IP address of the instance. The public_ip structure is described below. Changing this creates a new LoadBalancer.

    Specify public_ip and either router_id or subnet_id if you want to bind a new IPv4 EIP to the load balancer.

    routerId String
    ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
    subnetId String

    The ID of the subnet to which the LoadBalancer belongs. Required when using vip_address.

    router_id and subnet_id cannot be left blank at the same time.

    tags Map<String>
    updatedAt String
    The time the LoadBalancer was last updated.
    vipAddress String

    The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.

    Specify both subnet_id and vip_address if you want to bind a private IPv4 address to the load balancer.

    vipPortId String
    The Port ID of the Load Balancer IP.

    Supporting Types

    LbLoadbalancerV3PublicIp, LbLoadbalancerV3PublicIpArgs

    Address string
    BandwidthChargeMode string
    Bandwidth billing type. Possible value is traffic.
    BandwidthName string
    Bandwidth name. Required when creating a new EIP.
    BandwidthShareType string
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    BandwidthSize double
    Bandwidth size. Required when creating a new EIP.
    Id string
    ID of an existing elastic IP. Required when using existing EIP.
    IpType string

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    _managed bool
    Address string
    BandwidthChargeMode string
    Bandwidth billing type. Possible value is traffic.
    BandwidthName string
    Bandwidth name. Required when creating a new EIP.
    BandwidthShareType string
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    BandwidthSize float64
    Bandwidth size. Required when creating a new EIP.
    Id string
    ID of an existing elastic IP. Required when using existing EIP.
    IpType string

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    _managed bool
    _managed Boolean
    address String
    bandwidthChargeMode String
    Bandwidth billing type. Possible value is traffic.
    bandwidthName String
    Bandwidth name. Required when creating a new EIP.
    bandwidthShareType String
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    bandwidthSize Double
    Bandwidth size. Required when creating a new EIP.
    id String
    ID of an existing elastic IP. Required when using existing EIP.
    ipType String

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    _managed boolean
    address string
    bandwidthChargeMode string
    Bandwidth billing type. Possible value is traffic.
    bandwidthName string
    Bandwidth name. Required when creating a new EIP.
    bandwidthShareType string
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    bandwidthSize number
    Bandwidth size. Required when creating a new EIP.
    id string
    ID of an existing elastic IP. Required when using existing EIP.
    ipType string

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    _managed bool
    address str
    bandwidth_charge_mode str
    Bandwidth billing type. Possible value is traffic.
    bandwidth_name str
    Bandwidth name. Required when creating a new EIP.
    bandwidth_share_type str
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    bandwidth_size float
    Bandwidth size. Required when creating a new EIP.
    id str
    ID of an existing elastic IP. Required when using existing EIP.
    ip_type str

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    _managed Boolean
    address String
    bandwidthChargeMode String
    Bandwidth billing type. Possible value is traffic.
    bandwidthName String
    Bandwidth name. Required when creating a new EIP.
    bandwidthShareType String
    Bandwidth sharing type. Possible values are: PER, WHOLE. Required when creating a new EIP.
    bandwidthSize Number
    Bandwidth size. Required when creating a new EIP.
    id String
    ID of an existing elastic IP. Required when using existing EIP.
    ipType String

    Elastic IP type. The value can be 5_bgp or 5_mailbgp. Required when creating a new EIP.

    -> In eu-de region the value can be 5_bgp or 5_mailbgp. In eu-nl region the value can only be 5_bgp and 5_mailbgp. In eu-ch2 region the value can only be 5_bgp.

    Import

    Loadbalancers can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/lbLoadbalancerV3:LbLoadbalancerV3 lb_1 7b80e108-1636-44e5-aece-986b0052b7dd
    

    To learn more about importing existing cloud resources, see Importing resources.

    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