opentelekomcloud.LbLoadbalancerV3
Explore with Pulumi AI
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:
- Availability
Zones List<string> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- Network
Ids List<string> - Specifies the subnet Network ID.
- Admin
State boolUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - Deletion
Protection bool - Description string
- Provides supplementary information about the load balancer.
- Ip
Target boolEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- Lb
Loadbalancer stringV3Id - Name string
- The LoadBalancer name.
- Public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- Router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- Subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Dictionary<string, string>
- Vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.
- Availability
Zones []string - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- Network
Ids []string - Specifies the subnet Network ID.
- Admin
State boolUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - Deletion
Protection bool - Description string
- Provides supplementary information about the load balancer.
- Ip
Target boolEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- Lb
Loadbalancer stringV3Id - Name string
- The LoadBalancer name.
- Public
Ip LbLoadbalancer V3Public Ip Args The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- Router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- Subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- map[string]string
- Vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.
- availability
Zones List<String> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- network
Ids List<String> - Specifies the subnet Network ID.
- admin
State BooleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - deletion
Protection Boolean - description String
- Provides supplementary information about the load balancer.
- ip
Target BooleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer StringV3Id - name String
- The LoadBalancer name.
- public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id String - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id String The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Map<String,String>
- vip
Address String The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.
- availability
Zones string[] - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- network
Ids string[] - Specifies the subnet Network ID.
- admin
State booleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - deletion
Protection boolean - description string
- Provides supplementary information about the load balancer.
- ip
Target booleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer stringV3Id - name string
- The LoadBalancer name.
- public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- {[key: string]: string}
- vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_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_ boolup - 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_ boolenable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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_ strv3_ id - name str
- The LoadBalancer name.
- public_
ip LbLoadbalancer V3Public Ip Args The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_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
andsubnet_id
cannot be left blank at the same time.- Mapping[str, str]
- vip_
address str The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.
- availability
Zones List<String> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- network
Ids List<String> - Specifies the subnet Network ID.
- admin
State BooleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - deletion
Protection Boolean - description String
- Provides supplementary information about the load balancer.
- ip
Target BooleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer StringV3Id - name String
- The LoadBalancer name.
- public
Ip 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 eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id String - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id String The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Map<String>
- vip
Address String The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_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:
- 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_ strid - 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.
- Admin
State boolUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - Availability
Zones List<string> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- Created
At string - The time the LoadBalancer was created.
- Deletion
Protection bool - Description string
- Provides supplementary information about the load balancer.
- Ip
Target boolEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- Lb
Loadbalancer stringV3Id - Name string
- The LoadBalancer name.
- Network
Ids List<string> - Specifies the subnet Network ID.
- Public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- Router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- Subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Dictionary<string, string>
- Updated
At string - The time the LoadBalancer was last updated.
- Vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.- Vip
Port stringId - The Port ID of the Load Balancer IP.
- Admin
State boolUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - Availability
Zones []string - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- Created
At string - The time the LoadBalancer was created.
- Deletion
Protection bool - Description string
- Provides supplementary information about the load balancer.
- Ip
Target boolEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- Lb
Loadbalancer stringV3Id - Name string
- The LoadBalancer name.
- Network
Ids []string - Specifies the subnet Network ID.
- Public
Ip LbLoadbalancer V3Public Ip Args The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- Router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- Subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- map[string]string
- Updated
At string - The time the LoadBalancer was last updated.
- Vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.- Vip
Port stringId - The Port ID of the Load Balancer IP.
- admin
State BooleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - availability
Zones List<String> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- created
At String - The time the LoadBalancer was created.
- deletion
Protection Boolean - description String
- Provides supplementary information about the load balancer.
- ip
Target BooleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer StringV3Id - name String
- The LoadBalancer name.
- network
Ids List<String> - Specifies the subnet Network ID.
- public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id String - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id String The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Map<String,String>
- updated
At String - The time the LoadBalancer was last updated.
- vip
Address String The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.- vip
Port StringId - The Port ID of the Load Balancer IP.
- admin
State booleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - availability
Zones string[] - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- created
At string - The time the LoadBalancer was created.
- deletion
Protection boolean - description string
- Provides supplementary information about the load balancer.
- ip
Target booleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer stringV3Id - name string
- The LoadBalancer name.
- network
Ids string[] - Specifies the subnet Network ID.
- public
Ip LbLoadbalancer V3Public Ip The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id string - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id string The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- {[key: string]: string}
- updated
At string - The time the LoadBalancer was last updated.
- vip
Address string The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.- vip
Port stringId - The Port ID of the Load Balancer IP.
- admin_
state_ boolup - 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_ boolenable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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_ strv3_ id - name str
- The LoadBalancer name.
- network_
ids Sequence[str] - Specifies the subnet Network ID.
- public_
ip LbLoadbalancer V3Public Ip Args The elastic IP address of the instance. The
public_ip
structure is described below. Changing this creates a new LoadBalancer.Specify
public_ip
and eitherrouter_id
orsubnet_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
andsubnet_id
cannot be left blank at the same time.- 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
andvip_address
if you want to bind a private IPv4 address to the load balancer.- vip_
port_ strid - The Port ID of the Load Balancer IP.
- admin
State BooleanUp - The administrative state of the LoadBalancer. A valid value is only
true
(UP). - availability
Zones List<String> - Specifies the availability zones where the LoadBalancer will be located. Changing this creates a new LoadBalancer.
- created
At String - The time the LoadBalancer was created.
- deletion
Protection Boolean - description String
- Provides supplementary information about the load balancer.
- ip
Target BooleanEnable The value can be
true
(enabled) orfalse
(disabled).If both
l4_flavor
andl7_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.
- lb
Loadbalancer StringV3Id - name String
- The LoadBalancer name.
- network
Ids List<String> - Specifies the subnet Network ID.
- public
Ip 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 eitherrouter_id
orsubnet_id
if you want to bind a new IPv4 EIP to the load balancer.- router
Id String - ID of the router (or VPC) this LoadBalancer belongs to. Changing this creates a new LoadBalancer.
- subnet
Id String The ID of the subnet to which the LoadBalancer belongs. Required when using
vip_address
.router_id
andsubnet_id
cannot be left blank at the same time.- Map<String>
- updated
At String - The time the LoadBalancer was last updated.
- vip
Address String The ip address of the LoadBalancer. Changing this creates a new LoadBalancer.
Specify both
subnet_id
andvip_address
if you want to bind a private IPv4 address to the load balancer.- vip
Port StringId - The Port ID of the Load Balancer IP.
Supporting Types
LbLoadbalancerV3PublicIp, LbLoadbalancerV3PublicIpArgs
- Address string
- Bandwidth
Charge stringMode - Bandwidth billing type. Possible value is
traffic
. - Bandwidth
Name string - Bandwidth name. Required when creating a new EIP.
- string
- Bandwidth sharing type. Possible values are:
PER
,WHOLE
. Required when creating a new EIP. - Bandwidth
Size double - Bandwidth size. Required when creating a new EIP.
- Id string
- ID of an existing elastic IP. Required when using existing EIP.
- Ip
Type string Elastic IP type. The value can be
5_bgp
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_bgp
.- _
managed bool
- Address string
- Bandwidth
Charge stringMode - Bandwidth billing type. Possible value is
traffic
. - Bandwidth
Name string - Bandwidth name. Required when creating a new EIP.
- string
- Bandwidth sharing type. Possible values are:
PER
,WHOLE
. Required when creating a new EIP. - Bandwidth
Size float64 - Bandwidth size. Required when creating a new EIP.
- Id string
- ID of an existing elastic IP. Required when using existing EIP.
- Ip
Type string Elastic IP type. The value can be
5_bgp
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_bgp
.- _
managed bool
- _
managed Boolean - address String
- bandwidth
Charge StringMode - Bandwidth billing type. Possible value is
traffic
. - bandwidth
Name String - Bandwidth name. Required when creating a new EIP.
- String
- Bandwidth sharing type. Possible values are:
PER
,WHOLE
. Required when creating a new EIP. - bandwidth
Size Double - Bandwidth size. Required when creating a new EIP.
- id String
- ID of an existing elastic IP. Required when using existing EIP.
- ip
Type String Elastic IP type. The value can be
5_bgp
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_bgp
.
- _
managed boolean - address string
- bandwidth
Charge stringMode - Bandwidth billing type. Possible value is
traffic
. - bandwidth
Name string - Bandwidth name. Required when creating a new EIP.
- string
- Bandwidth sharing type. Possible values are:
PER
,WHOLE
. Required when creating a new EIP. - bandwidth
Size number - Bandwidth size. Required when creating a new EIP.
- id string
- ID of an existing elastic IP. Required when using existing EIP.
- ip
Type string Elastic IP type. The value can be
5_bgp
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_bgp
.
- _
managed bool - address str
- bandwidth_
charge_ strmode - Bandwidth billing type. Possible value is
traffic
. - bandwidth_
name str - Bandwidth name. Required when creating a new EIP.
- 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
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_bgp
.
- _
managed Boolean - address String
- bandwidth
Charge StringMode - Bandwidth billing type. Possible value is
traffic
. - bandwidth
Name String - Bandwidth name. Required when creating a new EIP.
- String
- Bandwidth sharing type. Possible values are:
PER
,WHOLE
. Required when creating a new EIP. - bandwidth
Size Number - Bandwidth size. Required when creating a new EIP.
- id String
- ID of an existing elastic IP. Required when using existing EIP.
- ip
Type String Elastic IP type. The value can be
5_bgp
or5_mailbgp
. Required when creating a new EIP.-> In
eu-de
region the value can be5_bgp
or5_mailbgp
. Ineu-nl
region the value can only be5_bgp
and5_mailbgp
. Ineu-ch2
region the value can only be5_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.