volcengine.clb.ServerGroupServer
Explore with Pulumi AI
Provides a resource to manage server group server
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using 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 = "acc0Demo",
LoadBalancerName = "acc-test-create",
EipBillingConfig = new Volcengine.Clb.Inputs.ClbEipBillingConfigArgs
{
Isp = "BGP",
EipBillingType = "PostPaidByBandwidth",
Bandwidth = 1,
},
});
var fooServerGroup = new Volcengine.Clb.ServerGroup("fooServerGroup", new()
{
LoadBalancerId = fooClb.Id,
ServerGroupName = "acc-test-create",
Description = "hello demo11",
});
var fooSecurityGroup = new Volcengine.Vpc.SecurityGroup("fooSecurityGroup", new()
{
VpcId = fooVpc.Id,
SecurityGroupName = "acc-test-security-group",
});
var fooInstance = new Volcengine.Ecs.Instance("fooInstance", new()
{
ImageId = "image-ycjwwciuzy5pkh54xx8f",
InstanceType = "ecs.c3i.large",
InstanceName = "acc-test-ecs-name",
Password = "93f0cb0614Aab12",
InstanceChargeType = "PostPaid",
SystemVolumeType = "ESSD_PL0",
SystemVolumeSize = 40,
SubnetId = fooSubnet.Id,
SecurityGroupIds = new[]
{
fooSecurityGroup.Id,
},
});
var fooServerGroupServer = new Volcengine.Clb.ServerGroupServer("fooServerGroupServer", new()
{
ServerGroupId = fooServerGroup.Id,
InstanceId = fooInstance.Id,
Type = "ecs",
Weight = 100,
Port = 80,
Description = "This is a acc test server",
});
});
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/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
}
fooClb, err := clb.NewClb(ctx, "fooClb", &clb.ClbArgs{
Type: pulumi.String("public"),
SubnetId: fooSubnet.ID(),
LoadBalancerSpec: pulumi.String("small_1"),
Description: pulumi.String("acc0Demo"),
LoadBalancerName: pulumi.String("acc-test-create"),
EipBillingConfig: &clb.ClbEipBillingConfigArgs{
Isp: pulumi.String("BGP"),
EipBillingType: pulumi.String("PostPaidByBandwidth"),
Bandwidth: pulumi.Int(1),
},
})
if err != nil {
return err
}
fooServerGroup, err := clb.NewServerGroup(ctx, "fooServerGroup", &clb.ServerGroupArgs{
LoadBalancerId: fooClb.ID(),
ServerGroupName: pulumi.String("acc-test-create"),
Description: pulumi.String("hello demo11"),
})
if err != nil {
return err
}
fooSecurityGroup, err := vpc.NewSecurityGroup(ctx, "fooSecurityGroup", &vpc.SecurityGroupArgs{
VpcId: fooVpc.ID(),
SecurityGroupName: pulumi.String("acc-test-security-group"),
})
if err != nil {
return err
}
fooInstance, err := ecs.NewInstance(ctx, "fooInstance", &ecs.InstanceArgs{
ImageId: pulumi.String("image-ycjwwciuzy5pkh54xx8f"),
InstanceType: pulumi.String("ecs.c3i.large"),
InstanceName: pulumi.String("acc-test-ecs-name"),
Password: pulumi.String("93f0cb0614Aab12"),
InstanceChargeType: pulumi.String("PostPaid"),
SystemVolumeType: pulumi.String("ESSD_PL0"),
SystemVolumeSize: pulumi.Int(40),
SubnetId: fooSubnet.ID(),
SecurityGroupIds: pulumi.StringArray{
fooSecurityGroup.ID(),
},
})
if err != nil {
return err
}
_, err = clb.NewServerGroupServer(ctx, "fooServerGroupServer", &clb.ServerGroupServerArgs{
ServerGroupId: fooServerGroup.ID(),
InstanceId: fooInstance.ID(),
Type: pulumi.String("ecs"),
Weight: pulumi.Int(100),
Port: pulumi.Int(80),
Description: pulumi.String("This is a acc test server"),
})
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.ServerGroup;
import com.pulumi.volcengine.clb.ServerGroupArgs;
import com.pulumi.volcengine.vpc.SecurityGroup;
import com.pulumi.volcengine.vpc.SecurityGroupArgs;
import com.pulumi.volcengine.ecs.Instance;
import com.pulumi.volcengine.ecs.InstanceArgs;
import com.pulumi.volcengine.clb.ServerGroupServer;
import com.pulumi.volcengine.clb.ServerGroupServerArgs;
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("acc0Demo")
.loadBalancerName("acc-test-create")
.eipBillingConfig(ClbEipBillingConfigArgs.builder()
.isp("BGP")
.eipBillingType("PostPaidByBandwidth")
.bandwidth(1)
.build())
.build());
var fooServerGroup = new ServerGroup("fooServerGroup", ServerGroupArgs.builder()
.loadBalancerId(fooClb.id())
.serverGroupName("acc-test-create")
.description("hello demo11")
.build());
var fooSecurityGroup = new SecurityGroup("fooSecurityGroup", SecurityGroupArgs.builder()
.vpcId(fooVpc.id())
.securityGroupName("acc-test-security-group")
.build());
var fooInstance = new Instance("fooInstance", InstanceArgs.builder()
.imageId("image-ycjwwciuzy5pkh54xx8f")
.instanceType("ecs.c3i.large")
.instanceName("acc-test-ecs-name")
.password("93f0cb0614Aab12")
.instanceChargeType("PostPaid")
.systemVolumeType("ESSD_PL0")
.systemVolumeSize(40)
.subnetId(fooSubnet.id())
.securityGroupIds(fooSecurityGroup.id())
.build());
var fooServerGroupServer = new ServerGroupServer("fooServerGroupServer", ServerGroupServerArgs.builder()
.serverGroupId(fooServerGroup.id())
.instanceId(fooInstance.id())
.type("ecs")
.weight(100)
.port(80)
.description("This is a acc test server")
.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="acc0Demo",
load_balancer_name="acc-test-create",
eip_billing_config=volcengine.clb.ClbEipBillingConfigArgs(
isp="BGP",
eip_billing_type="PostPaidByBandwidth",
bandwidth=1,
))
foo_server_group = volcengine.clb.ServerGroup("fooServerGroup",
load_balancer_id=foo_clb.id,
server_group_name="acc-test-create",
description="hello demo11")
foo_security_group = volcengine.vpc.SecurityGroup("fooSecurityGroup",
vpc_id=foo_vpc.id,
security_group_name="acc-test-security-group")
foo_instance = volcengine.ecs.Instance("fooInstance",
image_id="image-ycjwwciuzy5pkh54xx8f",
instance_type="ecs.c3i.large",
instance_name="acc-test-ecs-name",
password="93f0cb0614Aab12",
instance_charge_type="PostPaid",
system_volume_type="ESSD_PL0",
system_volume_size=40,
subnet_id=foo_subnet.id,
security_group_ids=[foo_security_group.id])
foo_server_group_server = volcengine.clb.ServerGroupServer("fooServerGroupServer",
server_group_id=foo_server_group.id,
instance_id=foo_instance.id,
type="ecs",
weight=100,
port=80,
description="This is a acc test server")
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: "acc0Demo",
loadBalancerName: "acc-test-create",
eipBillingConfig: {
isp: "BGP",
eipBillingType: "PostPaidByBandwidth",
bandwidth: 1,
},
});
const fooServerGroup = new volcengine.clb.ServerGroup("fooServerGroup", {
loadBalancerId: fooClb.id,
serverGroupName: "acc-test-create",
description: "hello demo11",
});
const fooSecurityGroup = new volcengine.vpc.SecurityGroup("fooSecurityGroup", {
vpcId: fooVpc.id,
securityGroupName: "acc-test-security-group",
});
const fooInstance = new volcengine.ecs.Instance("fooInstance", {
imageId: "image-ycjwwciuzy5pkh54xx8f",
instanceType: "ecs.c3i.large",
instanceName: "acc-test-ecs-name",
password: "93f0cb0614Aab12",
instanceChargeType: "PostPaid",
systemVolumeType: "ESSD_PL0",
systemVolumeSize: 40,
subnetId: fooSubnet.id,
securityGroupIds: [fooSecurityGroup.id],
});
const fooServerGroupServer = new volcengine.clb.ServerGroupServer("fooServerGroupServer", {
serverGroupId: fooServerGroup.id,
instanceId: fooInstance.id,
type: "ecs",
weight: 100,
port: 80,
description: "This is a acc test server",
});
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: acc0Demo
loadBalancerName: acc-test-create
eipBillingConfig:
isp: BGP
eipBillingType: PostPaidByBandwidth
bandwidth: 1
fooServerGroup:
type: volcengine:clb:ServerGroup
properties:
loadBalancerId: ${fooClb.id}
serverGroupName: acc-test-create
description: hello demo11
fooSecurityGroup:
type: volcengine:vpc:SecurityGroup
properties:
vpcId: ${fooVpc.id}
securityGroupName: acc-test-security-group
fooInstance:
type: volcengine:ecs:Instance
properties:
imageId: image-ycjwwciuzy5pkh54xx8f
instanceType: ecs.c3i.large
instanceName: acc-test-ecs-name
password: 93f0cb0614Aab12
instanceChargeType: PostPaid
systemVolumeType: ESSD_PL0
systemVolumeSize: 40
subnetId: ${fooSubnet.id}
securityGroupIds:
- ${fooSecurityGroup.id}
fooServerGroupServer:
type: volcengine:clb:ServerGroupServer
properties:
serverGroupId: ${fooServerGroup.id}
instanceId: ${fooInstance.id}
type: ecs
weight: 100
port: 80
description: This is a acc test server
variables:
fooZones:
fn::invoke:
Function: volcengine:ecs:Zones
Arguments: {}
Create ServerGroupServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerGroupServer(name: string, args: ServerGroupServerArgs, opts?: CustomResourceOptions);
@overload
def ServerGroupServer(resource_name: str,
args: ServerGroupServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerGroupServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
port: Optional[int] = None,
server_group_id: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
ip: Optional[str] = None,
weight: Optional[int] = None)
func NewServerGroupServer(ctx *Context, name string, args ServerGroupServerArgs, opts ...ResourceOption) (*ServerGroupServer, error)
public ServerGroupServer(string name, ServerGroupServerArgs args, CustomResourceOptions? opts = null)
public ServerGroupServer(String name, ServerGroupServerArgs args)
public ServerGroupServer(String name, ServerGroupServerArgs args, CustomResourceOptions options)
type: volcengine:clb:ServerGroupServer
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 ServerGroupServerArgs
- 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 ServerGroupServerArgs
- 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 ServerGroupServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerGroupServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerGroupServerArgs
- 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 volcengineServerGroupServerResource = new Volcengine.Clb.ServerGroupServer("volcengineServerGroupServerResource", new()
{
InstanceId = "string",
Port = 0,
ServerGroupId = "string",
Type = "string",
Description = "string",
Ip = "string",
Weight = 0,
});
example, err := clb.NewServerGroupServer(ctx, "volcengineServerGroupServerResource", &clb.ServerGroupServerArgs{
InstanceId: pulumi.String("string"),
Port: pulumi.Int(0),
ServerGroupId: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
Ip: pulumi.String("string"),
Weight: pulumi.Int(0),
})
var volcengineServerGroupServerResource = new ServerGroupServer("volcengineServerGroupServerResource", ServerGroupServerArgs.builder()
.instanceId("string")
.port(0)
.serverGroupId("string")
.type("string")
.description("string")
.ip("string")
.weight(0)
.build());
volcengine_server_group_server_resource = volcengine.clb.ServerGroupServer("volcengineServerGroupServerResource",
instance_id="string",
port=0,
server_group_id="string",
type="string",
description="string",
ip="string",
weight=0)
const volcengineServerGroupServerResource = new volcengine.clb.ServerGroupServer("volcengineServerGroupServerResource", {
instanceId: "string",
port: 0,
serverGroupId: "string",
type: "string",
description: "string",
ip: "string",
weight: 0,
});
type: volcengine:clb:ServerGroupServer
properties:
description: string
instanceId: string
ip: string
port: 0
serverGroupId: string
type: string
weight: 0
ServerGroupServer 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 ServerGroupServer resource accepts the following input properties:
- Instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- Port int
- The port receiving request.
- Server
Group stringId - The ID of the ServerGroup.
- Type string
- The type of instance. Optional choice contains
ecs
,eni
. - Description string
- The description of the instance.
- Ip string
- The private ip of the instance.
- Weight int
- The weight of the instance, range in 0~100.
- Instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- Port int
- The port receiving request.
- Server
Group stringId - The ID of the ServerGroup.
- Type string
- The type of instance. Optional choice contains
ecs
,eni
. - Description string
- The description of the instance.
- Ip string
- The private ip of the instance.
- Weight int
- The weight of the instance, range in 0~100.
- instance
Id String - The ID of ecs instance or the network card bound to ecs instance.
- port Integer
- The port receiving request.
- server
Group StringId - The ID of the ServerGroup.
- type String
- The type of instance. Optional choice contains
ecs
,eni
. - description String
- The description of the instance.
- ip String
- The private ip of the instance.
- weight Integer
- The weight of the instance, range in 0~100.
- instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- port number
- The port receiving request.
- server
Group stringId - The ID of the ServerGroup.
- type string
- The type of instance. Optional choice contains
ecs
,eni
. - description string
- The description of the instance.
- ip string
- The private ip of the instance.
- weight number
- The weight of the instance, range in 0~100.
- instance_
id str - The ID of ecs instance or the network card bound to ecs instance.
- port int
- The port receiving request.
- server_
group_ strid - The ID of the ServerGroup.
- type str
- The type of instance. Optional choice contains
ecs
,eni
. - description str
- The description of the instance.
- ip str
- The private ip of the instance.
- weight int
- The weight of the instance, range in 0~100.
- instance
Id String - The ID of ecs instance or the network card bound to ecs instance.
- port Number
- The port receiving request.
- server
Group StringId - The ID of the ServerGroup.
- type String
- The type of instance. Optional choice contains
ecs
,eni
. - description String
- The description of the instance.
- ip String
- The private ip of the instance.
- weight Number
- The weight of the instance, range in 0~100.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroupServer resource produces the following output properties:
Look up Existing ServerGroupServer Resource
Get an existing ServerGroupServer 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?: ServerGroupServerState, opts?: CustomResourceOptions): ServerGroupServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
instance_id: Optional[str] = None,
ip: Optional[str] = None,
port: Optional[int] = None,
server_group_id: Optional[str] = None,
server_id: Optional[str] = None,
type: Optional[str] = None,
weight: Optional[int] = None) -> ServerGroupServer
func GetServerGroupServer(ctx *Context, name string, id IDInput, state *ServerGroupServerState, opts ...ResourceOption) (*ServerGroupServer, error)
public static ServerGroupServer Get(string name, Input<string> id, ServerGroupServerState? state, CustomResourceOptions? opts = null)
public static ServerGroupServer get(String name, Output<String> id, ServerGroupServerState 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 instance.
- Instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- Ip string
- The private ip of the instance.
- Port int
- The port receiving request.
- Server
Group stringId - The ID of the ServerGroup.
- Server
Id string - The server id of instance in ServerGroup.
- Type string
- The type of instance. Optional choice contains
ecs
,eni
. - Weight int
- The weight of the instance, range in 0~100.
- Description string
- The description of the instance.
- Instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- Ip string
- The private ip of the instance.
- Port int
- The port receiving request.
- Server
Group stringId - The ID of the ServerGroup.
- Server
Id string - The server id of instance in ServerGroup.
- Type string
- The type of instance. Optional choice contains
ecs
,eni
. - Weight int
- The weight of the instance, range in 0~100.
- description String
- The description of the instance.
- instance
Id String - The ID of ecs instance or the network card bound to ecs instance.
- ip String
- The private ip of the instance.
- port Integer
- The port receiving request.
- server
Group StringId - The ID of the ServerGroup.
- server
Id String - The server id of instance in ServerGroup.
- type String
- The type of instance. Optional choice contains
ecs
,eni
. - weight Integer
- The weight of the instance, range in 0~100.
- description string
- The description of the instance.
- instance
Id string - The ID of ecs instance or the network card bound to ecs instance.
- ip string
- The private ip of the instance.
- port number
- The port receiving request.
- server
Group stringId - The ID of the ServerGroup.
- server
Id string - The server id of instance in ServerGroup.
- type string
- The type of instance. Optional choice contains
ecs
,eni
. - weight number
- The weight of the instance, range in 0~100.
- description str
- The description of the instance.
- instance_
id str - The ID of ecs instance or the network card bound to ecs instance.
- ip str
- The private ip of the instance.
- port int
- The port receiving request.
- server_
group_ strid - The ID of the ServerGroup.
- server_
id str - The server id of instance in ServerGroup.
- type str
- The type of instance. Optional choice contains
ecs
,eni
. - weight int
- The weight of the instance, range in 0~100.
- description String
- The description of the instance.
- instance
Id String - The ID of ecs instance or the network card bound to ecs instance.
- ip String
- The private ip of the instance.
- port Number
- The port receiving request.
- server
Group StringId - The ID of the ServerGroup.
- server
Id String - The server id of instance in ServerGroup.
- type String
- The type of instance. Optional choice contains
ecs
,eni
. - weight Number
- The weight of the instance, range in 0~100.
Import
ServerGroupServer can be imported using the id, e.g.
$ pulumi import volcengine:clb/serverGroupServer:ServerGroupServer default rsp-274xltv2*****8tlv3q3s:rs-3ciynux6i1x4w****rszh49sj
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.