alicloud.alb.ServerGroup
Provides a ALB Server Group resource.
For information about ALB Server Group and how to use it, see What is Server Group.
NOTE: Available in v1.131.0+.
Example Usage
Basic Usage
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") ?? "example_value";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
CpuCoreCount = 1,
MemorySize = 2,
});
var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_18.*64",
MostRecent = true,
Owners = "system",
});
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/16",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
{
VpcId = defaultNetwork.Id,
});
var defaultInstance = new AliCloud.Ecs.Instance("defaultInstance", new()
{
ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
InstanceName = name,
SecurityGroups = new[]
{
defaultSecurityGroup,
}.Select(__item => __item.Id).ToList(),
InternetChargeType = "PayByTraffic",
InternetMaxBandwidthOut = 10,
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
InstanceChargeType = "PostPaid",
SystemDiskCategory = "cloud_efficiency",
VswitchId = defaultSwitch.Id,
});
var defaultResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultServerGroup = new AliCloud.Alb.ServerGroup("defaultServerGroup", new()
{
Protocol = "HTTP",
VpcId = defaultNetwork.Id,
ServerGroupName = name,
ResourceGroupId = defaultResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
HealthCheckConfig = new AliCloud.Alb.Inputs.ServerGroupHealthCheckConfigArgs
{
HealthCheckConnectPort = 46325,
HealthCheckEnabled = true,
HealthCheckHost = "tf-testAcc.com",
HealthCheckCodes = new[]
{
"http_2xx",
"http_3xx",
"http_4xx",
},
HealthCheckHttpVersion = "HTTP1.1",
HealthCheckInterval = 2,
HealthCheckMethod = "HEAD",
HealthCheckPath = "/tf-testAcc",
HealthCheckProtocol = "HTTP",
HealthCheckTimeout = 5,
HealthyThreshold = 3,
UnhealthyThreshold = 3,
},
StickySessionConfig = new AliCloud.Alb.Inputs.ServerGroupStickySessionConfigArgs
{
StickySessionEnabled = true,
Cookie = "tf-testAcc",
StickySessionType = "Server",
},
Tags =
{
{ "Created", "TF" },
},
Servers = new[]
{
new AliCloud.Alb.Inputs.ServerGroupServerArgs
{
Description = name,
Port = 80,
ServerId = defaultInstance.Id,
ServerIp = defaultInstance.PrivateIp,
ServerType = "Ecs",
Weight = 10,
},
},
});
});
Coming soon!
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.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
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.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.Instance;
import com.pulumi.alicloud.ecs.InstanceArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.alb.ServerGroup;
import com.pulumi.alicloud.alb.ServerGroupArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupHealthCheckConfigArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupStickySessionConfigArgs;
import com.pulumi.alicloud.alb.inputs.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 config = ctx.config();
final var name = config.get("name").orElse("example_value");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.cpuCoreCount(1)
.memorySize(2)
.build());
final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_18.*64")
.mostRecent(true)
.owners("system")
.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(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.vpcId(defaultNetwork.id())
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.instanceName(name)
.securityGroups(defaultSecurityGroup.stream().map(element -> element.id()).collect(toList()))
.internetChargeType("PayByTraffic")
.internetMaxBandwidthOut("10")
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.instanceChargeType("PostPaid")
.systemDiskCategory("cloud_efficiency")
.vswitchId(defaultSwitch.id())
.build());
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
.protocol("HTTP")
.vpcId(defaultNetwork.id())
.serverGroupName(name)
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.healthCheckConfig(ServerGroupHealthCheckConfigArgs.builder()
.healthCheckConnectPort("46325")
.healthCheckEnabled(true)
.healthCheckHost("tf-testAcc.com")
.healthCheckCodes(
"http_2xx",
"http_3xx",
"http_4xx")
.healthCheckHttpVersion("HTTP1.1")
.healthCheckInterval("2")
.healthCheckMethod("HEAD")
.healthCheckPath("/tf-testAcc")
.healthCheckProtocol("HTTP")
.healthCheckTimeout(5)
.healthyThreshold(3)
.unhealthyThreshold(3)
.build())
.stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
.stickySessionEnabled(true)
.cookie("tf-testAcc")
.stickySessionType("Server")
.build())
.tags(Map.of("Created", "TF"))
.servers(ServerGroupServerArgs.builder()
.description(name)
.port(80)
.serverId(defaultInstance.id())
.serverIp(defaultInstance.privateIp())
.serverType("Ecs")
.weight(10)
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "example_value"
default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
cpu_core_count=1,
memory_size=2)
default_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
most_recent=True,
owners="system")
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("defaultSwitch",
vpc_id=default_network.id,
cidr_block="172.16.0.0/16",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_network.id)
default_instance = alicloud.ecs.Instance("defaultInstance",
image_id=default_images.images[0].id,
instance_type=default_instance_types.instance_types[0].id,
instance_name=name,
security_groups=[__item.id for __item in [default_security_group]],
internet_charge_type="PayByTraffic",
internet_max_bandwidth_out=10,
availability_zone=default_zones.zones[0].id,
instance_charge_type="PostPaid",
system_disk_category="cloud_efficiency",
vswitch_id=default_switch.id)
default_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_server_group = alicloud.alb.ServerGroup("defaultServerGroup",
protocol="HTTP",
vpc_id=default_network.id,
server_group_name=name,
resource_group_id=default_resource_groups.groups[0].id,
health_check_config=alicloud.alb.ServerGroupHealthCheckConfigArgs(
health_check_connect_port=46325,
health_check_enabled=True,
health_check_host="tf-testAcc.com",
health_check_codes=[
"http_2xx",
"http_3xx",
"http_4xx",
],
health_check_http_version="HTTP1.1",
health_check_interval=2,
health_check_method="HEAD",
health_check_path="/tf-testAcc",
health_check_protocol="HTTP",
health_check_timeout=5,
healthy_threshold=3,
unhealthy_threshold=3,
),
sticky_session_config=alicloud.alb.ServerGroupStickySessionConfigArgs(
sticky_session_enabled=True,
cookie="tf-testAcc",
sticky_session_type="Server",
),
tags={
"Created": "TF",
},
servers=[alicloud.alb.ServerGroupServerArgs(
description=name,
port=80,
server_id=default_instance.id,
server_ip=default_instance.private_ip,
server_type="Ecs",
weight=10,
)])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "example_value";
const defaultZones = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
availabilityZone: defaultZones.zones?.[0]?.id,
cpuCoreCount: 1,
memorySize: 2,
}));
const defaultImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_18.*64",
mostRecent: true,
owners: "system",
});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/16",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetwork.id});
const defaultInstance = new alicloud.ecs.Instance("defaultInstance", {
imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.id),
instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id),
instanceName: name,
securityGroups: [defaultSecurityGroup].map(__item => __item.id),
internetChargeType: "PayByTraffic",
internetMaxBandwidthOut: 10,
availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
instanceChargeType: "PostPaid",
systemDiskCategory: "cloud_efficiency",
vswitchId: defaultSwitch.id,
});
const defaultResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultServerGroup = new alicloud.alb.ServerGroup("defaultServerGroup", {
protocol: "HTTP",
vpcId: defaultNetwork.id,
serverGroupName: name,
resourceGroupId: defaultResourceGroups.then(defaultResourceGroups => defaultResourceGroups.groups?.[0]?.id),
healthCheckConfig: {
healthCheckConnectPort: 46325,
healthCheckEnabled: true,
healthCheckHost: "tf-testAcc.com",
healthCheckCodes: [
"http_2xx",
"http_3xx",
"http_4xx",
],
healthCheckHttpVersion: "HTTP1.1",
healthCheckInterval: 2,
healthCheckMethod: "HEAD",
healthCheckPath: "/tf-testAcc",
healthCheckProtocol: "HTTP",
healthCheckTimeout: 5,
healthyThreshold: 3,
unhealthyThreshold: 3,
},
stickySessionConfig: {
stickySessionEnabled: true,
cookie: "tf-testAcc",
stickySessionType: "Server",
},
tags: {
Created: "TF",
},
servers: [{
description: name,
port: 80,
serverId: defaultInstance.id,
serverIp: defaultInstance.privateIp,
serverType: "Ecs",
weight: 10,
}],
});
Coming soon!
Create ServerGroup Resource
new ServerGroup(name: string, args?: ServerGroupArgs, opts?: CustomResourceOptions);
@overload
def ServerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
health_check_config: Optional[ServerGroupHealthCheckConfigArgs] = None,
protocol: Optional[str] = None,
resource_group_id: Optional[str] = None,
scheduler: Optional[str] = None,
server_group_name: Optional[str] = None,
server_group_type: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
tags: Optional[Mapping[str, Any]] = None,
vpc_id: Optional[str] = None)
@overload
def ServerGroup(resource_name: str,
args: Optional[ServerGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewServerGroup(ctx *Context, name string, args *ServerGroupArgs, opts ...ResourceOption) (*ServerGroup, error)
public ServerGroup(string name, ServerGroupArgs? args = null, CustomResourceOptions? opts = null)
public ServerGroup(String name, ServerGroupArgs args)
public ServerGroup(String name, ServerGroupArgs args, CustomResourceOptions options)
type: alicloud:alb:ServerGroup
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
The ServerGroup resource accepts the following input properties:
- Dry
Run bool The dry run.
- Health
Check Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Health Check Config Args The configuration of health checks.
- Protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- Resource
Group stringId The ID of the resource group.
- Scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- Server
Group stringName The name of the resource.
- Server
Group stringType The type of the server group. Valid values:
- Servers
List<Pulumi.
Ali Cloud. Alb. Inputs. Server Group Server Args> The backend server.
- Sticky
Session Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Sticky Session Config Args The configuration of the sticky session.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The ID of the VPC that you want to access.
- Dry
Run bool The dry run.
- Health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- Protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- Resource
Group stringId The ID of the resource group.
- Scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- Server
Group stringName The name of the resource.
- Server
Group stringType The type of the server group. Valid values:
- Servers
[]Server
Group Server Args The backend server.
- Sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The ID of the VPC that you want to access.
- dry
Run Boolean The dry run.
- health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- protocol String
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group StringId The ID of the resource group.
- scheduler String
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group StringName The name of the resource.
- server
Group StringType The type of the server group. Valid values:
- servers
List<Server
Group Server Args> The backend server.
- sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- Map<String,Object>
A mapping of tags to assign to the resource.
- vpc
Id String The ID of the VPC that you want to access.
- dry
Run boolean The dry run.
- health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group stringId The ID of the resource group.
- scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group stringName The name of the resource.
- server
Group stringType The type of the server group. Valid values:
- servers
Server
Group Server Args[] The backend server.
- sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The ID of the VPC that you want to access.
- dry_
run bool The dry run.
- health_
check_ Serverconfig Group Health Check Config Args The configuration of health checks.
- protocol str
The server protocol. Valid values:
HTTPS
,HTTP
.- resource_
group_ strid The ID of the resource group.
- scheduler str
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server_
group_ strname The name of the resource.
- server_
group_ strtype The type of the server group. Valid values:
- servers
Sequence[Server
Group Server Args] The backend server.
- sticky_
session_ Serverconfig Group Sticky Session Config Args The configuration of the sticky session.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The ID of the VPC that you want to access.
- dry
Run Boolean The dry run.
- health
Check Property MapConfig The configuration of health checks.
- protocol String
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group StringId The ID of the resource group.
- scheduler String
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group StringName The name of the resource.
- server
Group StringType The type of the server group. Valid values:
- servers List<Property Map>
The backend server.
- sticky
Session Property MapConfig The configuration of the sticky session.
- Map<Any>
A mapping of tags to assign to the resource.
- vpc
Id String The ID of the VPC that you want to access.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroup resource produces the following output properties:
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,
dry_run: Optional[bool] = None,
health_check_config: Optional[ServerGroupHealthCheckConfigArgs] = None,
protocol: Optional[str] = None,
resource_group_id: Optional[str] = None,
scheduler: Optional[str] = None,
server_group_name: Optional[str] = None,
server_group_type: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
status: Optional[str] = None,
sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
tags: Optional[Mapping[str, Any]] = None,
vpc_id: Optional[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.
- Dry
Run bool The dry run.
- Health
Check Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Health Check Config Args The configuration of health checks.
- Protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- Resource
Group stringId The ID of the resource group.
- Scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- Server
Group stringName The name of the resource.
- Server
Group stringType The type of the server group. Valid values:
- Servers
List<Pulumi.
Ali Cloud. Alb. Inputs. Server Group Server Args> The backend server.
- Status string
The status of the resource.
- Sticky
Session Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Sticky Session Config Args The configuration of the sticky session.
- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Vpc
Id string The ID of the VPC that you want to access.
- Dry
Run bool The dry run.
- Health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- Protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- Resource
Group stringId The ID of the resource group.
- Scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- Server
Group stringName The name of the resource.
- Server
Group stringType The type of the server group. Valid values:
- Servers
[]Server
Group Server Args The backend server.
- Status string
The status of the resource.
- Sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- map[string]interface{}
A mapping of tags to assign to the resource.
- Vpc
Id string The ID of the VPC that you want to access.
- dry
Run Boolean The dry run.
- health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- protocol String
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group StringId The ID of the resource group.
- scheduler String
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group StringName The name of the resource.
- server
Group StringType The type of the server group. Valid values:
- servers
List<Server
Group Server Args> The backend server.
- status String
The status of the resource.
- sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- Map<String,Object>
A mapping of tags to assign to the resource.
- vpc
Id String The ID of the VPC that you want to access.
- dry
Run boolean The dry run.
- health
Check ServerConfig Group Health Check Config Args The configuration of health checks.
- protocol string
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group stringId The ID of the resource group.
- scheduler string
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group stringName The name of the resource.
- server
Group stringType The type of the server group. Valid values:
- servers
Server
Group Server Args[] The backend server.
- status string
The status of the resource.
- sticky
Session ServerConfig Group Sticky Session Config Args The configuration of the sticky session.
- {[key: string]: any}
A mapping of tags to assign to the resource.
- vpc
Id string The ID of the VPC that you want to access.
- dry_
run bool The dry run.
- health_
check_ Serverconfig Group Health Check Config Args The configuration of health checks.
- protocol str
The server protocol. Valid values:
HTTPS
,HTTP
.- resource_
group_ strid The ID of the resource group.
- scheduler str
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server_
group_ strname The name of the resource.
- server_
group_ strtype The type of the server group. Valid values:
- servers
Sequence[Server
Group Server Args] The backend server.
- status str
The status of the resource.
- sticky_
session_ Serverconfig Group Sticky Session Config Args The configuration of the sticky session.
- Mapping[str, Any]
A mapping of tags to assign to the resource.
- vpc_
id str The ID of the VPC that you want to access.
- dry
Run Boolean The dry run.
- health
Check Property MapConfig The configuration of health checks.
- protocol String
The server protocol. Valid values:
HTTPS
,HTTP
.- resource
Group StringId The ID of the resource group.
- scheduler String
The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
.- server
Group StringName The name of the resource.
- server
Group StringType The type of the server group. Valid values:
- servers List<Property Map>
The backend server.
- status String
The status of the resource.
- sticky
Session Property MapConfig The configuration of the sticky session.
- Map<Any>
A mapping of tags to assign to the resource.
- vpc
Id String The ID of the VPC that you want to access.
Supporting Types
ServerGroupHealthCheckConfig
- Health
Check List<string>Codes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check intConnect Port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- Health
Check boolEnabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- Health
Check stringHost The domain name that is used for health checks.
- Health
Check stringHttp Version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check intInterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- Health
Check stringMethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check stringPath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- Health
Check stringProtocol Health check protocol. Valid values:
HTTP
andTCP
.- Health
Check intTimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- Healthy
Threshold int The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- Unhealthy
Threshold int The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- Health
Check []stringCodes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check intConnect Port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- Health
Check boolEnabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- Health
Check stringHost The domain name that is used for health checks.
- Health
Check stringHttp Version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check intInterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- Health
Check stringMethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- Health
Check stringPath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- Health
Check stringProtocol Health check protocol. Valid values:
HTTP
andTCP
.- Health
Check intTimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- Healthy
Threshold int The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- Unhealthy
Threshold int The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check List<String>Codes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check IntegerConnect Port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- health
Check BooleanEnabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- health
Check StringHost The domain name that is used for health checks.
- health
Check StringHttp Version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check IntegerInterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- health
Check StringMethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check StringPath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- health
Check StringProtocol Health check protocol. Valid values:
HTTP
andTCP
.- health
Check IntegerTimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- healthy
Threshold Integer The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- unhealthy
Threshold Integer The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check string[]Codes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check numberConnect Port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- health
Check booleanEnabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- health
Check stringHost The domain name that is used for health checks.
- health
Check stringHttp Version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check numberInterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- health
Check stringMethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check stringPath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- health
Check stringProtocol Health check protocol. Valid values:
HTTP
andTCP
.- health
Check numberTimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- healthy
Threshold number The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- unhealthy
Threshold number The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health_
check_ Sequence[str]codes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health_
check_ intconnect_ port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- health_
check_ boolenabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- health_
check_ strhost The domain name that is used for health checks.
- health_
check_ strhttp_ version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health_
check_ intinterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- health_
check_ strmethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health_
check_ strpath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- health_
check_ strprotocol Health check protocol. Valid values:
HTTP
andTCP
.- health_
check_ inttimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- healthy_
threshold int The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- unhealthy_
threshold int The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check List<String>Codes The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check NumberConnect Port The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of 0 indicates that a backend server port is used for health checks.- health
Check BooleanEnabled Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
.- health
Check StringHost The domain name that is used for health checks.
- health
Check StringHttp Version HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check NumberInterval The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
.- health
Check StringMethod Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
.- health
Check StringPath The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
.- health
Check StringProtocol Health check protocol. Valid values:
HTTP
andTCP
.- health
Check NumberTimeout The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values: 1 to 300. Default value: 5. NOTE: If the value of the
HealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period.- healthy
Threshold Number The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values: 2 to 10. Default value: 3.
- unhealthy
Threshold Number The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
ServerGroupServer
- Server
Id string The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- Server
Type string The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- Description string
The description of the server.
- Port int
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- Remote
Ip boolEnabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- Server
Ip string The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- Status string
The status of the resource.
- Weight int
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
- Server
Id string The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- Server
Type string The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- Description string
The description of the server.
- Port int
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- Remote
Ip boolEnabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- Server
Ip string The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- Status string
The status of the resource.
- Weight int
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
- server
Id String The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- server
Type String The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- description String
The description of the server.
- port Integer
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- remote
Ip BooleanEnabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- server
Ip String The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- status String
The status of the resource.
- weight Integer
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
- server
Id string The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- server
Type string The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- description string
The description of the server.
- port number
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- remote
Ip booleanEnabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- server
Ip string The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- status string
The status of the resource.
- weight number
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
- server_
id str The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- server_
type str The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- description str
The description of the server.
- port int
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- remote_
ip_ boolenabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- server_
ip str The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- status str
The status of the resource.
- weight int
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
- server
Id String The ID of the backend server.
- If
server_group_type
is set toInstance
, set the parameter to the ID of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. These backend servers are specified by Ecs, Eni, or Eci. - If
server_group_type
is set toIp
, set the parameter to an IP address specified in the server group. - If
server_group_type
is set toFc
, set the parameter to the Alibaba Cloud Resource Name (ARN) of a function specified in the server group.
- If
- server
Type String The type of the server. The type of the server. Valid values:
- Ecs: an ECS instance.
- Eni: an ENI.
- Eci: an elastic container instance.
- Ip(Available in v1.194.0+): an IP address.
- fc(Available in v1.194.0+): a function.
- description String
The description of the server.
- port Number
The port that is used by the server. Valid values:
1
to65535
. Note: This parameter is required if theserver_type
parameter is set toEcs
,Eni
,Eci
, orIp
. You do not need to configure this parameter if you setserver_type
toFc
.- remote
Ip BooleanEnabled Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If
server_type
is set toIp
, this parameter is available.- server
Ip String The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If
server_group_type
is set toFc
, you do not need to configure parameters, otherwise this attribute is required. Ifserver_group_type
is set toIp
, the value of this property is the same as theserver_id
value.- status String
The status of the resource.
- weight Number
The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server. Note: You do not need to set this parameter if you setserver_type
toFc
.
ServerGroupStickySessionConfig
- string
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- int
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- Sticky
Session boolEnabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- Sticky
Session stringType The method that is used to handle a cookie. Values:
Server
andInsert
.
- string
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- int
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- Sticky
Session boolEnabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- Sticky
Session stringType The method that is used to handle a cookie. Values:
Server
andInsert
.
- String
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- Integer
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- sticky
Session BooleanEnabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- sticky
Session StringType The method that is used to handle a cookie. Values:
Server
andInsert
.
- string
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- number
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- sticky
Session booleanEnabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- sticky
Session stringType The method that is used to handle a cookie. Values:
Server
andInsert
.
- str
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- int
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- sticky_
session_ boolenabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- sticky_
session_ strtype The method that is used to handle a cookie. Values:
Server
andInsert
.
- String
the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
.- Number
The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
.- sticky
Session BooleanEnabled Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
.- sticky
Session StringType The method that is used to handle a cookie. Values:
Server
andInsert
.
Import
ALB Server Group can be imported using the id, e.g.
$ pulumi import alicloud:alb/serverGroup:ServerGroup example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.