volcengine.clb.Clb
Explore with Pulumi AI
Import
CLB can be imported using the id, e.g.
$ pulumi import volcengine:clb/clb:Clb default clb-273y2ok6ets007fap8txvf6us
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
using Volcengine = Volcengine.Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooZones = Volcengine.Ecs.Zones.Invoke();
var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
{
VpcName = "acc-test-vpc",
CidrBlock = "172.16.0.0/16",
});
var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
{
SubnetName = "acc-test-subnet",
CidrBlock = "172.16.0.0/24",
ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
VpcId = fooVpc.Id,
});
var fooClb = new Volcengine.Clb.Clb("fooClb", new()
{
Type = "public",
SubnetId = fooSubnet.Id,
LoadBalancerSpec = "small_1",
Description = "acc-test-demo",
LoadBalancerName = "acc-test-clb",
LoadBalancerBillingType = "PostPaid",
EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
{
Isp = "BGP",
EipBillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
Tags = new[]
{
new Volcengine.Clb.Inputs.ClbTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var publicClb = new Volcengine.Clb.Clb("publicClb", new()
{
Type = "public",
SubnetId = fooSubnet.Id,
LoadBalancerName = "acc-test-clb-public",
LoadBalancerSpec = "small_1",
Description = "acc-test-demo",
ProjectName = "default",
EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
{
Isp = "BGP",
EipBillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
Tags = new[]
{
new Volcengine.Clb.Inputs.ClbTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var privateClb = new Volcengine.Clb.Clb("privateClb", new()
{
Type = "private",
SubnetId = fooSubnet.Id,
LoadBalancerName = "acc-test-clb-private",
LoadBalancerSpec = "small_1",
Description = "acc-test-demo",
ProjectName = "default",
});
var eip = new Volcengine.Eip.Address("eip", new()
{
BillingType = "PostPaidByBandwidth",
Bandwidth = 1,
Isp = "BGP",
Description = "tf-test",
ProjectName = "default",
});
var associate = new Volcengine.Eip.Associate("associate", new()
{
AllocationId = eip.Id,
InstanceId = privateClb.Id,
InstanceType = "ClbInstance",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/eip"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooZones, err := ecs.Zones(ctx, nil, nil)
if err != nil {
return err
}
fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
VpcName: pulumi.String("acc-test-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
SubnetName: pulumi.String("acc-test-subnet"),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: *pulumi.String(fooZones.Zones[0].Id),
VpcId: fooVpc.ID(),
})
if err != nil {
return err
}
_, err = clb.NewClb(ctx, "fooClb", &clb.ClbArgs{
Type: pulumi.String("public"),
SubnetId: fooSubnet.ID(),
LoadBalancerSpec: pulumi.String("small_1"),
Description: pulumi.String("acc-test-demo"),
LoadBalancerName: pulumi.String("acc-test-clb"),
LoadBalancerBillingType: pulumi.String("PostPaid"),
EipBillingConfig: &clb.ClbEipBillingConfigArgs{
Isp: pulumi.String("BGP"),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
Tags: clb.ClbTagArray{
&clb.ClbTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
_, err = clb.NewClb(ctx, "publicClb", &clb.ClbArgs{
Type: pulumi.String("public"),
SubnetId: fooSubnet.ID(),
LoadBalancerName: pulumi.String("acc-test-clb-public"),
LoadBalancerSpec: pulumi.String("small_1"),
Description: pulumi.String("acc-test-demo"),
ProjectName: pulumi.String("default"),
EipBillingConfig: &clb.ClbEipBillingConfigArgs{
Isp: pulumi.String("BGP"),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
Tags: clb.ClbTagArray{
&clb.ClbTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
privateClb, err := clb.NewClb(ctx, "privateClb", &clb.ClbArgs{
Type: pulumi.String("private"),
SubnetId: fooSubnet.ID(),
LoadBalancerName: pulumi.String("acc-test-clb-private"),
LoadBalancerSpec: pulumi.String("small_1"),
Description: pulumi.String("acc-test-demo"),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
eip, err := eip.NewAddress(ctx, "eip", &eip.AddressArgs{
BillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
Isp: pulumi.String("BGP"),
Description: pulumi.String("tf-test"),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
_, err = eip.NewAssociate(ctx, "associate", &eip.AssociateArgs{
AllocationId: eip.ID(),
InstanceId: privateClb.ID(),
InstanceType: pulumi.String("ClbInstance"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.clb.Clb;
import com.pulumi.volcengine.clb.ClbArgs;
import com.pulumi.volcengine.clb.inputs.ClbEipBillingConfigArgs;
import com.pulumi.volcengine.clb.inputs.ClbTagArgs;
import com.pulumi.volcengine.eip.Address;
import com.pulumi.volcengine.eip.AddressArgs;
import com.pulumi.volcengine.eip.Associate;
import com.pulumi.volcengine.eip.AssociateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var fooZones = EcsFunctions.Zones();
var fooVpc = new Vpc("fooVpc", VpcArgs.builder()
.vpcName("acc-test-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()
.subnetName("acc-test-subnet")
.cidrBlock("172.16.0.0/24")
.zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
.vpcId(fooVpc.id())
.build());
var fooClb = new Clb("fooClb", ClbArgs.builder()
.type("public")
.subnetId(fooSubnet.id())
.loadBalancerSpec("small_1")
.description("acc-test-demo")
.loadBalancerName("acc-test-clb")
.loadBalancerBillingType("PostPaid")
.eipBillingConfig(ClbEipBillingConfigArgs.builder()
.isp("BGP")
.eipBillingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.tags(ClbTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var publicClb = new Clb("publicClb", ClbArgs.builder()
.type("public")
.subnetId(fooSubnet.id())
.loadBalancerName("acc-test-clb-public")
.loadBalancerSpec("small_1")
.description("acc-test-demo")
.projectName("default")
.eipBillingConfig(ClbEipBillingConfigArgs.builder()
.isp("BGP")
.eipBillingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.tags(ClbTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var privateClb = new Clb("privateClb", ClbArgs.builder()
.type("private")
.subnetId(fooSubnet.id())
.loadBalancerName("acc-test-clb-private")
.loadBalancerSpec("small_1")
.description("acc-test-demo")
.projectName("default")
.build());
var eip = new Address("eip", AddressArgs.builder()
.billingType("PostPaidByBandwidth")
.bandwidth(1)
.isp("BGP")
.description("tf-test")
.projectName("default")
.build());
var associate = new Associate("associate", AssociateArgs.builder()
.allocationId(eip.id())
.instanceId(privateClb.id())
.instanceType("ClbInstance")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
vpc_name="acc-test-vpc",
cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
subnet_name="acc-test-subnet",
cidr_block="172.16.0.0/24",
zone_id=foo_zones.zones[0].id,
vpc_id=foo_vpc.id)
foo_clb = volcengine.clb.Clb("fooClb",
type="public",
subnet_id=foo_subnet.id,
load_balancer_spec="small_1",
description="acc-test-demo",
load_balancer_name="acc-test-clb",
load_balancer_billing_type="PostPaid",
eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
isp="BGP",
eip_billing_type="PostPaidByBandwidth",
bandwidth=1,
),
tags=[volcengine.clb.ClbTagArgs(
key="k1",
value="v1",
)])
public_clb = volcengine.clb.Clb("publicClb",
type="public",
subnet_id=foo_subnet.id,
load_balancer_name="acc-test-clb-public",
load_balancer_spec="small_1",
description="acc-test-demo",
project_name="default",
eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
isp="BGP",
eip_billing_type="PostPaidByBandwidth",
bandwidth=1,
),
tags=[volcengine.clb.ClbTagArgs(
key="k1",
value="v1",
)])
private_clb = volcengine.clb.Clb("privateClb",
type="private",
subnet_id=foo_subnet.id,
load_balancer_name="acc-test-clb-private",
load_balancer_spec="small_1",
description="acc-test-demo",
project_name="default")
eip = volcengine.eip.Address("eip",
billing_type="PostPaidByBandwidth",
bandwidth=1,
isp="BGP",
description="tf-test",
project_name="default")
associate = volcengine.eip.Associate("associate",
allocation_id=eip.id,
instance_id=private_clb.id,
instance_type="ClbInstance")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
vpcName: "acc-test-vpc",
cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
subnetName: "acc-test-subnet",
cidrBlock: "172.16.0.0/24",
zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
vpcId: fooVpc.id,
});
const fooClb = new volcengine.clb.Clb("fooClb", {
type: "public",
subnetId: fooSubnet.id,
loadBalancerSpec: "small_1",
description: "acc-test-demo",
loadBalancerName: "acc-test-clb",
loadBalancerBillingType: "PostPaid",
eipBillingConfig: {
isp: "BGP",
eipBillingType: "PostPaidByBandwidth",
bandwidth: 1,
},
tags: [{
key: "k1",
value: "v1",
}],
});
const publicClb = new volcengine.clb.Clb("publicClb", {
type: "public",
subnetId: fooSubnet.id,
loadBalancerName: "acc-test-clb-public",
loadBalancerSpec: "small_1",
description: "acc-test-demo",
projectName: "default",
eipBillingConfig: {
isp: "BGP",
eipBillingType: "PostPaidByBandwidth",
bandwidth: 1,
},
tags: [{
key: "k1",
value: "v1",
}],
});
const privateClb = new volcengine.clb.Clb("privateClb", {
type: "private",
subnetId: fooSubnet.id,
loadBalancerName: "acc-test-clb-private",
loadBalancerSpec: "small_1",
description: "acc-test-demo",
projectName: "default",
});
const eip = new volcengine.eip.Address("eip", {
billingType: "PostPaidByBandwidth",
bandwidth: 1,
isp: "BGP",
description: "tf-test",
projectName: "default",
});
const associate = new volcengine.eip.Associate("associate", {
allocationId: eip.id,
instanceId: privateClb.id,
instanceType: "ClbInstance",
});
resources:
fooVpc:
type: volcengine:vpc:Vpc
properties:
vpcName: acc-test-vpc
cidrBlock: 172.16.0.0/16
fooSubnet:
type: volcengine:vpc:Subnet
properties:
subnetName: acc-test-subnet
cidrBlock: 172.16.0.0/24
zoneId: ${fooZones.zones[0].id}
vpcId: ${fooVpc.id}
fooClb:
type: volcengine:clb:Clb
properties:
type: public
subnetId: ${fooSubnet.id}
loadBalancerSpec: small_1
description: acc-test-demo
loadBalancerName: acc-test-clb
loadBalancerBillingType: PostPaid
eipBillingConfig:
isp: BGP
eipBillingType: PostPaidByBandwidth
bandwidth: 1
tags:
- key: k1
value: v1
publicClb:
type: volcengine:clb:Clb
properties:
type: public
subnetId: ${fooSubnet.id}
loadBalancerName: acc-test-clb-public
loadBalancerSpec: small_1
description: acc-test-demo
projectName: default
eipBillingConfig:
isp: BGP
eipBillingType: PostPaidByBandwidth
bandwidth: 1
tags:
- key: k1
value: v1
privateClb:
type: volcengine:clb:Clb
properties:
type: private
subnetId: ${fooSubnet.id}
loadBalancerName: acc-test-clb-private
loadBalancerSpec: small_1
description: acc-test-demo
projectName: default
eip:
type: volcengine:eip:Address
properties:
billingType: PostPaidByBandwidth
bandwidth: 1
isp: BGP
description: tf-test
projectName: default
associate:
type: volcengine:eip:Associate
properties:
allocationId: ${eip.id}
instanceId: ${privateClb.id}
instanceType: ClbInstance
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:Zones
Arguments: {}
Create Clb Resource
new Clb(name: string, args: ClbArgs, opts?: CustomResourceOptions);
@overload
def Clb(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
eip_billing_config: Optional[ClbEipBillingConfigArgs] = None,
eni_address: Optional[str] = None,
load_balancer_billing_type: Optional[str] = None,
load_balancer_name: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
master_zone_id: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
period: Optional[int] = None,
project_name: Optional[str] = None,
region_id: Optional[str] = None,
slave_zone_id: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[ClbTagArgs]] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None)
@overload
def Clb(resource_name: str,
args: ClbArgs,
opts: Optional[ResourceOptions] = None)
func NewClb(ctx *Context, name string, args ClbArgs, opts ...ResourceOption) (*Clb, error)
public Clb(string name, ClbArgs args, CustomResourceOptions? opts = null)
type: volcengine:clb:Clb
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbArgs
- 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 ClbArgs
- 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 ClbArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Clb Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Clb resource accepts the following input properties:
- Load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- Subnet
Id string The id of the Subnet.
- Type string
The type of the CLB. And optional choice contains
public
orprivate
.- Description string
The description of the CLB.
- Eip
Billing Volcengine.Config Clb Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- Eni
Address string The eni address of the CLB.
- Load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- Load
Balancer stringName The name of the CLB.
- Master
Zone stringId The master zone ID of the CLB.
- Modification
Protection stringReason The reason of the console modification protection.
- Modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- Period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- Project
Name string The ProjectName of the CLB.
- Region
Id string The region of the request.
- Slave
Zone stringId The slave zone ID of the CLB.
- List<Volcengine.
Clb Tag> Tags.
- Vpc
Id string The id of the VPC.
- Load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- Subnet
Id string The id of the Subnet.
- Type string
The type of the CLB. And optional choice contains
public
orprivate
.- Description string
The description of the CLB.
- Eip
Billing ClbConfig Eip Billing Config Args The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- Eni
Address string The eni address of the CLB.
- Load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- Load
Balancer stringName The name of the CLB.
- Master
Zone stringId The master zone ID of the CLB.
- Modification
Protection stringReason The reason of the console modification protection.
- Modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- Period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- Project
Name string The ProjectName of the CLB.
- Region
Id string The region of the request.
- Slave
Zone stringId The slave zone ID of the CLB.
- []Clb
Tag Args Tags.
- Vpc
Id string The id of the VPC.
- load
Balancer StringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- subnet
Id String The id of the Subnet.
- type String
The type of the CLB. And optional choice contains
public
orprivate
.- description String
The description of the CLB.
- eip
Billing ClbConfig Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eni
Address String The eni address of the CLB.
- load
Balancer StringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer StringName The name of the CLB.
- master
Zone StringId The master zone ID of the CLB.
- modification
Protection StringReason The reason of the console modification protection.
- modification
Protection StringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period Integer
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name String The ProjectName of the CLB.
- region
Id String The region of the request.
- slave
Zone StringId The slave zone ID of the CLB.
- List<Clb
Tag> Tags.
- vpc
Id String The id of the VPC.
- load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- subnet
Id string The id of the Subnet.
- type string
The type of the CLB. And optional choice contains
public
orprivate
.- description string
The description of the CLB.
- eip
Billing ClbConfig Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eni
Address string The eni address of the CLB.
- load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer stringName The name of the CLB.
- master
Zone stringId The master zone ID of the CLB.
- modification
Protection stringReason The reason of the console modification protection.
- modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period number
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name string The ProjectName of the CLB.
- region
Id string The region of the request.
- slave
Zone stringId The slave zone ID of the CLB.
- Clb
Tag[] Tags.
- vpc
Id string The id of the VPC.
- load_
balancer_ strspec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- subnet_
id str The id of the Subnet.
- type str
The type of the CLB. And optional choice contains
public
orprivate
.- description str
The description of the CLB.
- eip_
billing_ Clbconfig Eip Billing Config Args The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eni_
address str The eni address of the CLB.
- load_
balancer_ strbilling_ type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load_
balancer_ strname The name of the CLB.
- master_
zone_ strid The master zone ID of the CLB.
- modification_
protection_ strreason The reason of the console modification protection.
- modification_
protection_ strstatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project_
name str The ProjectName of the CLB.
- region_
id str The region of the request.
- slave_
zone_ strid The slave zone ID of the CLB.
- Sequence[Clb
Tag Args] Tags.
- vpc_
id str The id of the VPC.
- load
Balancer StringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- subnet
Id String The id of the Subnet.
- type String
The type of the CLB. And optional choice contains
public
orprivate
.- description String
The description of the CLB.
- eip
Billing Property MapConfig The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eni
Address String The eni address of the CLB.
- load
Balancer StringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer StringName The name of the CLB.
- master
Zone StringId The master zone ID of the CLB.
- modification
Protection StringReason The reason of the console modification protection.
- modification
Protection StringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period Number
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name String The ProjectName of the CLB.
- region
Id String The region of the request.
- slave
Zone StringId The slave zone ID of the CLB.
- List<Property Map>
Tags.
- vpc
Id String The id of the VPC.
Outputs
All input properties are implicitly available as output properties. Additionally, the Clb resource produces the following output properties:
- Eip
Address string The Eip address of the Clb.
- Eip
Id string The Eip ID of the Clb.
- Id string
The provider-assigned unique ID for this managed resource.
- Renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
- Eip
Address string The Eip address of the Clb.
- Eip
Id string The Eip ID of the Clb.
- Id string
The provider-assigned unique ID for this managed resource.
- Renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
- eip
Address String The Eip address of the Clb.
- eip
Id String The Eip ID of the Clb.
- id String
The provider-assigned unique ID for this managed resource.
- renew
Type String The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
- eip
Address string The Eip address of the Clb.
- eip
Id string The Eip ID of the Clb.
- id string
The provider-assigned unique ID for this managed resource.
- renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
- eip_
address str The Eip address of the Clb.
- eip_
id str The Eip ID of the Clb.
- id str
The provider-assigned unique ID for this managed resource.
- renew_
type str The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
- eip
Address String The Eip address of the Clb.
- eip
Id String The Eip ID of the Clb.
- id String
The provider-assigned unique ID for this managed resource.
- renew
Type String The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.
Look up Existing Clb Resource
Get an existing Clb 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?: ClbState, opts?: CustomResourceOptions): Clb
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
eip_address: Optional[str] = None,
eip_billing_config: Optional[ClbEipBillingConfigArgs] = None,
eip_id: Optional[str] = None,
eni_address: Optional[str] = None,
load_balancer_billing_type: Optional[str] = None,
load_balancer_name: Optional[str] = None,
load_balancer_spec: Optional[str] = None,
master_zone_id: Optional[str] = None,
modification_protection_reason: Optional[str] = None,
modification_protection_status: Optional[str] = None,
period: Optional[int] = None,
project_name: Optional[str] = None,
region_id: Optional[str] = None,
renew_type: Optional[str] = None,
slave_zone_id: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Sequence[ClbTagArgs]] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None) -> Clb
func GetClb(ctx *Context, name string, id IDInput, state *ClbState, opts ...ResourceOption) (*Clb, error)
public static Clb Get(string name, Input<string> id, ClbState? state, CustomResourceOptions? opts = null)
public static Clb get(String name, Output<String> id, ClbState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
The description of the CLB.
- Eip
Address string The Eip address of the Clb.
- Eip
Billing Volcengine.Config Clb Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- Eip
Id string The Eip ID of the Clb.
- Eni
Address string The eni address of the CLB.
- Load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- Load
Balancer stringName The name of the CLB.
- Load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- Master
Zone stringId The master zone ID of the CLB.
- Modification
Protection stringReason The reason of the console modification protection.
- Modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- Period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- Project
Name string The ProjectName of the CLB.
- Region
Id string The region of the request.
- Renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- Slave
Zone stringId The slave zone ID of the CLB.
- Subnet
Id string The id of the Subnet.
- List<Volcengine.
Clb Tag> Tags.
- Type string
The type of the CLB. And optional choice contains
public
orprivate
.- Vpc
Id string The id of the VPC.
- Description string
The description of the CLB.
- Eip
Address string The Eip address of the Clb.
- Eip
Billing ClbConfig Eip Billing Config Args The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- Eip
Id string The Eip ID of the Clb.
- Eni
Address string The eni address of the CLB.
- Load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- Load
Balancer stringName The name of the CLB.
- Load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- Master
Zone stringId The master zone ID of the CLB.
- Modification
Protection stringReason The reason of the console modification protection.
- Modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- Period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- Project
Name string The ProjectName of the CLB.
- Region
Id string The region of the request.
- Renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- Slave
Zone stringId The slave zone ID of the CLB.
- Subnet
Id string The id of the Subnet.
- []Clb
Tag Args Tags.
- Type string
The type of the CLB. And optional choice contains
public
orprivate
.- Vpc
Id string The id of the VPC.
- description String
The description of the CLB.
- eip
Address String The Eip address of the Clb.
- eip
Billing ClbConfig Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eip
Id String The Eip ID of the Clb.
- eni
Address String The eni address of the CLB.
- load
Balancer StringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer StringName The name of the CLB.
- load
Balancer StringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- master
Zone StringId The master zone ID of the CLB.
- modification
Protection StringReason The reason of the console modification protection.
- modification
Protection StringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period Integer
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name String The ProjectName of the CLB.
- region
Id String The region of the request.
- renew
Type String The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- slave
Zone StringId The slave zone ID of the CLB.
- subnet
Id String The id of the Subnet.
- List<Clb
Tag> Tags.
- type String
The type of the CLB. And optional choice contains
public
orprivate
.- vpc
Id String The id of the VPC.
- description string
The description of the CLB.
- eip
Address string The Eip address of the Clb.
- eip
Billing ClbConfig Eip Billing Config The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eip
Id string The Eip ID of the Clb.
- eni
Address string The eni address of the CLB.
- load
Balancer stringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer stringName The name of the CLB.
- load
Balancer stringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- master
Zone stringId The master zone ID of the CLB.
- modification
Protection stringReason The reason of the console modification protection.
- modification
Protection stringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period number
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name string The ProjectName of the CLB.
- region
Id string The region of the request.
- renew
Type string The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- slave
Zone stringId The slave zone ID of the CLB.
- subnet
Id string The id of the Subnet.
- Clb
Tag[] Tags.
- type string
The type of the CLB. And optional choice contains
public
orprivate
.- vpc
Id string The id of the VPC.
- description str
The description of the CLB.
- eip_
address str The Eip address of the Clb.
- eip_
billing_ Clbconfig Eip Billing Config Args The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eip_
id str The Eip ID of the Clb.
- eni_
address str The eni address of the CLB.
- load_
balancer_ strbilling_ type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load_
balancer_ strname The name of the CLB.
- load_
balancer_ strspec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- master_
zone_ strid The master zone ID of the CLB.
- modification_
protection_ strreason The reason of the console modification protection.
- modification_
protection_ strstatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period int
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project_
name str The ProjectName of the CLB.
- region_
id str The region of the request.
- renew_
type str The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- slave_
zone_ strid The slave zone ID of the CLB.
- subnet_
id str The id of the Subnet.
- Sequence[Clb
Tag Args] Tags.
- type str
The type of the CLB. And optional choice contains
public
orprivate
.- vpc_
id str The id of the VPC.
- description String
The description of the CLB.
- eip
Address String The Eip address of the Clb.
- eip
Billing Property MapConfig The billing configuration of the EIP which automatically associated to CLB. This field is valid when the type of CLB is
public
.When the type of the CLB isprivate
, suggest using a combination of resourcevolcengine.eip.Address
andvolcengine.eip.Associate
to achieve public network access function.- eip
Id String The Eip ID of the Clb.
- eni
Address String The eni address of the CLB.
- load
Balancer StringBilling Type The billing type of the CLB, the value can be
PostPaid
orPrePaid
.- load
Balancer StringName The name of the CLB.
- load
Balancer StringSpec The specification of the CLB, the value can be
small_1
,small_2
,medium_1
,medium_2
,large_1
,large_2
.- master
Zone StringId The master zone ID of the CLB.
- modification
Protection StringReason The reason of the console modification protection.
- modification
Protection StringStatus The status of the console modification protection, the value can be
NonProtection
orConsoleProtection
.- period Number
The period of the NatGateway, the valid value range in 1~9 or 12 or 24 or 36. Default value is 12. The period unit defaults to
Month
.This field is only effective when creating a PrePaid NatGateway. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.- project
Name String The ProjectName of the CLB.
- region
Id String The region of the request.
- renew
Type String The renew type of the CLB. When the value of the load_balancer_billing_type is
PrePaid
, the query returns this field.- slave
Zone StringId The slave zone ID of the CLB.
- subnet
Id String The id of the Subnet.
- List<Property Map>
Tags.
- type String
The type of the CLB. And optional choice contains
public
orprivate
.- vpc
Id String The id of the VPC.
Supporting Types
ClbEipBillingConfig, ClbEipBillingConfigArgs
- Eip
Billing stringType The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- Isp string
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- Bandwidth int
The peek bandwidth of the EIP which automatically assigned to CLB.
- Eip
Billing stringType The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- Isp string
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- Bandwidth int
The peek bandwidth of the EIP which automatically assigned to CLB.
- eip
Billing StringType The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- isp String
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- bandwidth Integer
The peek bandwidth of the EIP which automatically assigned to CLB.
- eip
Billing stringType The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- isp string
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- bandwidth number
The peek bandwidth of the EIP which automatically assigned to CLB.
- eip_
billing_ strtype The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- isp str
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- bandwidth int
The peek bandwidth of the EIP which automatically assigned to CLB.
- eip
Billing StringType The billing type of the EIP which automatically assigned to CLB. And optional choice contains
PostPaidByBandwidth
orPostPaidByTraffic
orPrePaid
.When creating aPrePaid
public CLB, this field must be specified asPrePaid
simultaneously.When the LoadBalancerBillingType changes fromPostPaid
toPrePaid
, please manually modify the value of this field toPrePaid
simultaneously.- isp String
The ISP of the EIP which automatically associated to CLB, the value can be
BGP
.- bandwidth Number
The peek bandwidth of the EIP which automatically assigned to CLB.
ClbTag, ClbTagArgs
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
volcengine
Terraform Provider.