alicloud.slb.ServerGroup
Explore with Pulumi AI
Provides a Load Balancer Virtual Backend Server Group resource.
For information about Load Balancer Virtual Backend Server Group and how to use it, see What is Virtual Backend Server Group.
NOTE: Available since v1.6.0.
NOTE: One ECS instance can be added into multiple virtual server groups.
NOTE: One virtual server group can be attached with multiple listeners in one load balancer.
NOTE: One Classic and Internet load balancer, its virtual server group can add Classic and VPC ECS instances.
NOTE: One Classic and Intranet load balancer, its virtual server group can only add Classic ECS instances.
NOTE: One VPC load balancer, its virtual server group can only add the same VPC ECS instances.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/16",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchName: name,
});
const defaultApplicationLoadBalancer = new alicloud.slb.ApplicationLoadBalancer("default", {
loadBalancerName: name,
vswitchId: defaultSwitch.id,
loadBalancerSpec: "slb.s2.small",
});
const defaultServerGroup = new alicloud.slb.ServerGroup("default", {
loadBalancerId: defaultApplicationLoadBalancer.id,
name: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/16",
zone_id=default.zones[0].id,
vswitch_name=name)
default_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("default",
load_balancer_name=name,
vswitch_id=default_switch.id,
load_balancer_spec="slb.s2.small")
default_server_group = alicloud.slb.ServerGroup("default",
load_balancer_id=default_application_load_balancer.id,
name=name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/16"),
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultApplicationLoadBalancer, err := slb.NewApplicationLoadBalancer(ctx, "default", &slb.ApplicationLoadBalancerArgs{
LoadBalancerName: pulumi.String(name),
VswitchId: defaultSwitch.ID(),
LoadBalancerSpec: pulumi.String("slb.s2.small"),
})
if err != nil {
return err
}
_, err = slb.NewServerGroup(ctx, "default", &slb.ServerGroupArgs{
LoadBalancerId: defaultApplicationLoadBalancer.ID(),
Name: pulumi.String(name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/16",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchName = name,
});
var defaultApplicationLoadBalancer = new AliCloud.Slb.ApplicationLoadBalancer("default", new()
{
LoadBalancerName = name,
VswitchId = defaultSwitch.Id,
LoadBalancerSpec = "slb.s2.small",
});
var defaultServerGroup = new AliCloud.Slb.ServerGroup("default", new()
{
LoadBalancerId = defaultApplicationLoadBalancer.Id,
Name = name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.slb.ApplicationLoadBalancer;
import com.pulumi.alicloud.slb.ApplicationLoadBalancerArgs;
import com.pulumi.alicloud.slb.ServerGroup;
import com.pulumi.alicloud.slb.ServerGroupArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/16")
.zoneId(default_.zones()[0].id())
.vswitchName(name)
.build());
var defaultApplicationLoadBalancer = new ApplicationLoadBalancer("defaultApplicationLoadBalancer", ApplicationLoadBalancerArgs.builder()
.loadBalancerName(name)
.vswitchId(defaultSwitch.id())
.loadBalancerSpec("slb.s2.small")
.build());
var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
.loadBalancerId(defaultApplicationLoadBalancer.id())
.name(name)
.build());
}
}
configuration:
name:
type: string
default: tf-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/16
zoneId: ${default.zones[0].id}
vswitchName: ${name}
defaultApplicationLoadBalancer:
type: alicloud:slb:ApplicationLoadBalancer
name: default
properties:
loadBalancerName: ${name}
vswitchId: ${defaultSwitch.id}
loadBalancerSpec: slb.s2.small
defaultServerGroup:
type: alicloud:slb:ServerGroup
name: default
properties:
loadBalancerId: ${defaultApplicationLoadBalancer.id}
name: ${name}
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
Create ServerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServerGroup(name: string, args: ServerGroupArgs, opts?: CustomResourceOptions);
@overload
def ServerGroup(resource_name: str,
args: ServerGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
delete_protection_validation: Optional[bool] = None,
name: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewServerGroup(ctx *Context, name string, args ServerGroupArgs, opts ...ResourceOption) (*ServerGroup, error)
public ServerGroup(string name, ServerGroupArgs args, CustomResourceOptions? opts = null)
public ServerGroup(String name, ServerGroupArgs args)
public ServerGroup(String name, ServerGroupArgs args, CustomResourceOptions options)
type: alicloud:slb:ServerGroup
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 ServerGroupArgs
- 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 ServerGroupArgs
- 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 ServerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerGroupArgs
- 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 exampleserverGroupResourceResourceFromSlbserverGroup = new AliCloud.Slb.ServerGroup("exampleserverGroupResourceResourceFromSlbserverGroup", new()
{
LoadBalancerId = "string",
DeleteProtectionValidation = false,
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := slb.NewServerGroup(ctx, "exampleserverGroupResourceResourceFromSlbserverGroup", &slb.ServerGroupArgs{
LoadBalancerId: pulumi.String("string"),
DeleteProtectionValidation: pulumi.Bool(false),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleserverGroupResourceResourceFromSlbserverGroup = new ServerGroup("exampleserverGroupResourceResourceFromSlbserverGroup", ServerGroupArgs.builder()
.loadBalancerId("string")
.deleteProtectionValidation(false)
.name("string")
.tags(Map.of("string", "string"))
.build());
exampleserver_group_resource_resource_from_slbserver_group = alicloud.slb.ServerGroup("exampleserverGroupResourceResourceFromSlbserverGroup",
load_balancer_id="string",
delete_protection_validation=False,
name="string",
tags={
"string": "string",
})
const exampleserverGroupResourceResourceFromSlbserverGroup = new alicloud.slb.ServerGroup("exampleserverGroupResourceResourceFromSlbserverGroup", {
loadBalancerId: "string",
deleteProtectionValidation: false,
name: "string",
tags: {
string: "string",
},
});
type: alicloud:slb:ServerGroup
properties:
deleteProtectionValidation: false
loadBalancerId: string
name: string
tags:
string: string
ServerGroup 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 ServerGroup resource accepts the following input properties:
- Load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- Delete
Protection boolValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - Name string
- The name of the vServer group. Default value:
tf-server-group
. - Servers
List<Pulumi.
Ali Cloud. Slb. Inputs. Server Group Server> The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- Delete
Protection boolValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - Name string
- The name of the vServer group. Default value:
tf-server-group
. - Servers
[]Server
Group Server Args The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- map[string]string
- A mapping of tags to assign to the resource.
- load
Balancer StringId - The ID of the Server Load Balancer (SLB) instance.
- delete
Protection BooleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - name String
- The name of the vServer group. Default value:
tf-server-group
. - servers
List<Server
Group Server> The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Map<String,String>
- A mapping of tags to assign to the resource.
- load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- delete
Protection booleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - name string
- The name of the vServer group. Default value:
tf-server-group
. - servers
Server
Group Server[] The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- {[key: string]: string}
- A mapping of tags to assign to the resource.
- load_
balancer_ strid - The ID of the Server Load Balancer (SLB) instance.
- delete_
protection_ boolvalidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - name str
- The name of the vServer group. Default value:
tf-server-group
. - servers
Sequence[Server
Group Server Args] The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Mapping[str, str]
- A mapping of tags to assign to the resource.
- load
Balancer StringId - The ID of the Server Load Balancer (SLB) instance.
- delete
Protection BooleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - name String
- The name of the vServer group. Default value:
tf-server-group
. - servers List<Property Map>
The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServerGroup Resource
Get an existing ServerGroup 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?: ServerGroupState, opts?: CustomResourceOptions): ServerGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
delete_protection_validation: Optional[bool] = None,
load_balancer_id: Optional[str] = None,
name: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
tags: Optional[Mapping[str, str]] = None) -> ServerGroup
func GetServerGroup(ctx *Context, name string, id IDInput, state *ServerGroupState, opts ...ResourceOption) (*ServerGroup, error)
public static ServerGroup Get(string name, Input<string> id, ServerGroupState? state, CustomResourceOptions? opts = null)
public static ServerGroup get(String name, Output<String> id, ServerGroupState 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.
- Delete
Protection boolValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - Load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- Name string
- The name of the vServer group. Default value:
tf-server-group
. - Servers
List<Pulumi.
Ali Cloud. Slb. Inputs. Server Group Server> The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Delete
Protection boolValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - Load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- Name string
- The name of the vServer group. Default value:
tf-server-group
. - Servers
[]Server
Group Server Args The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- map[string]string
- A mapping of tags to assign to the resource.
- delete
Protection BooleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - load
Balancer StringId - The ID of the Server Load Balancer (SLB) instance.
- name String
- The name of the vServer group. Default value:
tf-server-group
. - servers
List<Server
Group Server> The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Map<String,String>
- A mapping of tags to assign to the resource.
- delete
Protection booleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - load
Balancer stringId - The ID of the Server Load Balancer (SLB) instance.
- name string
- The name of the vServer group. Default value:
tf-server-group
. - servers
Server
Group Server[] The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- {[key: string]: string}
- A mapping of tags to assign to the resource.
- delete_
protection_ boolvalidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - load_
balancer_ strid - The ID of the Server Load Balancer (SLB) instance.
- name str
- The name of the vServer group. Default value:
tf-server-group
. - servers
Sequence[Server
Group Server Args] The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Mapping[str, str]
- A mapping of tags to assign to the resource.
- delete
Protection BooleanValidation - Checking DeleteProtection of SLB instance before deleting. Default value:
false
. Ifdelete_protection_validation
is set totrue
, this resource will not be deleted when its SLB instance enabled DeleteProtection. - load
Balancer StringId - The ID of the Server Load Balancer (SLB) instance.
- name String
- The name of the vServer group. Default value:
tf-server-group
. - servers List<Property Map>
The list of backend servers to be added. See
servers
below.NOTE: Field
servers
has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resourcealicloud.slb.ServerGroupServerAttachment
.- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
ServerGroupServer, ServerGroupServerArgs
- Port int
- The port used by the backend server. Valid values:
1
to65535
. - Server
Ids List<string> - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- Type string
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - Weight int
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
- Port int
- The port used by the backend server. Valid values:
1
to65535
. - Server
Ids []string - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- Type string
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - Weight int
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
- port Integer
- The port used by the backend server. Valid values:
1
to65535
. - server
Ids List<String> - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- type String
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - weight Integer
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
- port number
- The port used by the backend server. Valid values:
1
to65535
. - server
Ids string[] - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- type string
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - weight number
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
- port int
- The port used by the backend server. Valid values:
1
to65535
. - server_
ids Sequence[str] - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- type str
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - weight int
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
- port Number
- The port used by the backend server. Valid values:
1
to65535
. - server
Ids List<String> - The list of Elastic Compute Service (ECS) Ids or Elastic Network Interface (ENI) Ids.
- type String
- Specify the type of the backend server. Default value:
ecs
. Valid values:ecs
,eni
. - weight Number
- Weight of the backend server. Default value:
100
. Valid values:0
to100
.
Import
Load Balancer Virtual Backend Server Group can be imported using the id, e.g.
$ pulumi import alicloud:slb/serverGroup:ServerGroup example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.