alicloud.alb.ServerGroup
Explore with Pulumi AI
Provides an ALB Server Group resource.
For information about ALB Server Group and how to use it, see What is Server Group.
NOTE: Available since v1.131.0.
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") || "terraform-example";
const example = alicloud.resourcemanager.getResourceGroups({});
const exampleGetZones = alicloud.getZones({
availableResourceCreation: "Instance",
});
const exampleGetInstanceTypes = exampleGetZones.then(exampleGetZones => alicloud.ecs.getInstanceTypes({
availabilityZone: exampleGetZones.zones?.[0]?.id,
cpuCoreCount: 1,
memorySize: 2,
}));
const exampleGetImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_18.*64",
owners: "system",
});
const exampleNetwork = new alicloud.vpc.Network("example", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const exampleSwitch = new alicloud.vpc.Switch("example", {
vswitchName: name,
cidrBlock: "10.4.0.0/16",
vpcId: exampleNetwork.id,
zoneId: exampleGetZones.then(exampleGetZones => exampleGetZones.zones?.[0]?.id),
});
const exampleSecurityGroup = new alicloud.ecs.SecurityGroup("example", {
name: name,
description: name,
vpcId: exampleNetwork.id,
});
const exampleInstance = new alicloud.ecs.Instance("example", {
availabilityZone: exampleGetZones.then(exampleGetZones => exampleGetZones.zones?.[0]?.id),
instanceName: name,
imageId: exampleGetImages.then(exampleGetImages => exampleGetImages.images?.[0]?.id),
instanceType: exampleGetInstanceTypes.then(exampleGetInstanceTypes => exampleGetInstanceTypes.instanceTypes?.[0]?.id),
securityGroups: [exampleSecurityGroup.id],
vswitchId: exampleSwitch.id,
});
const exampleServerGroup = new alicloud.alb.ServerGroup("example", {
protocol: "HTTP",
vpcId: exampleNetwork.id,
serverGroupName: name,
resourceGroupId: example.then(example => example.groups?.[0]?.id),
stickySessionConfig: {
stickySessionEnabled: true,
cookie: "tf-example",
stickySessionType: "Server",
},
healthCheckConfig: {
healthCheckConnectPort: 46325,
healthCheckEnabled: true,
healthCheckHost: "tf-example.com",
healthCheckCodes: [
"http_2xx",
"http_3xx",
"http_4xx",
],
healthCheckHttpVersion: "HTTP1.1",
healthCheckInterval: 2,
healthCheckMethod: "HEAD",
healthCheckPath: "/tf-example",
healthCheckProtocol: "HTTP",
healthCheckTimeout: 5,
healthyThreshold: 3,
unhealthyThreshold: 3,
},
servers: [{
description: name,
port: 80,
serverId: exampleInstance.id,
serverIp: exampleInstance.privateIp,
serverType: "Ecs",
weight: 10,
}],
tags: {
Created: "TF",
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
example = alicloud.resourcemanager.get_resource_groups()
example_get_zones = alicloud.get_zones(available_resource_creation="Instance")
example_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=example_get_zones.zones[0].id,
cpu_core_count=1,
memory_size=2)
example_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
owners="system")
example_network = alicloud.vpc.Network("example",
vpc_name=name,
cidr_block="10.4.0.0/16")
example_switch = alicloud.vpc.Switch("example",
vswitch_name=name,
cidr_block="10.4.0.0/16",
vpc_id=example_network.id,
zone_id=example_get_zones.zones[0].id)
example_security_group = alicloud.ecs.SecurityGroup("example",
name=name,
description=name,
vpc_id=example_network.id)
example_instance = alicloud.ecs.Instance("example",
availability_zone=example_get_zones.zones[0].id,
instance_name=name,
image_id=example_get_images.images[0].id,
instance_type=example_get_instance_types.instance_types[0].id,
security_groups=[example_security_group.id],
vswitch_id=example_switch.id)
example_server_group = alicloud.alb.ServerGroup("example",
protocol="HTTP",
vpc_id=example_network.id,
server_group_name=name,
resource_group_id=example.groups[0].id,
sticky_session_config={
"sticky_session_enabled": True,
"cookie": "tf-example",
"sticky_session_type": "Server",
},
health_check_config={
"health_check_connect_port": 46325,
"health_check_enabled": True,
"health_check_host": "tf-example.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-example",
"health_check_protocol": "HTTP",
"health_check_timeout": 5,
"healthy_threshold": 3,
"unhealthy_threshold": 3,
},
servers=[{
"description": name,
"port": 80,
"server_id": example_instance.id,
"server_ip": example_instance.private_ip,
"server_type": "Ecs",
"weight": 10,
}],
tags={
"Created": "TF",
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
example, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
if err != nil {
return err
}
exampleGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("Instance"),
}, nil)
if err != nil {
return err
}
exampleGetInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
AvailabilityZone: pulumi.StringRef(exampleGetZones.Zones[0].Id),
CpuCoreCount: pulumi.IntRef(1),
MemorySize: pulumi.Float64Ref(2),
}, nil)
if err != nil {
return err
}
exampleGetImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
NameRegex: pulumi.StringRef("^ubuntu_18.*64"),
Owners: pulumi.StringRef("system"),
}, nil)
if err != nil {
return err
}
exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
VpcId: exampleNetwork.ID(),
ZoneId: pulumi.String(exampleGetZones.Zones[0].Id),
})
if err != nil {
return err
}
exampleSecurityGroup, err := ecs.NewSecurityGroup(ctx, "example", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
Description: pulumi.String(name),
VpcId: exampleNetwork.ID(),
})
if err != nil {
return err
}
exampleInstance, err := ecs.NewInstance(ctx, "example", &ecs.InstanceArgs{
AvailabilityZone: pulumi.String(exampleGetZones.Zones[0].Id),
InstanceName: pulumi.String(name),
ImageId: pulumi.String(exampleGetImages.Images[0].Id),
InstanceType: pulumi.String(exampleGetInstanceTypes.InstanceTypes[0].Id),
SecurityGroups: pulumi.StringArray{
exampleSecurityGroup.ID(),
},
VswitchId: exampleSwitch.ID(),
})
if err != nil {
return err
}
_, err = alb.NewServerGroup(ctx, "example", &alb.ServerGroupArgs{
Protocol: pulumi.String("HTTP"),
VpcId: exampleNetwork.ID(),
ServerGroupName: pulumi.String(name),
ResourceGroupId: pulumi.String(example.Groups[0].Id),
StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
StickySessionEnabled: pulumi.Bool(true),
Cookie: pulumi.String("tf-example"),
StickySessionType: pulumi.String("Server"),
},
HealthCheckConfig: &alb.ServerGroupHealthCheckConfigArgs{
HealthCheckConnectPort: pulumi.Int(46325),
HealthCheckEnabled: pulumi.Bool(true),
HealthCheckHost: pulumi.String("tf-example.com"),
HealthCheckCodes: pulumi.StringArray{
pulumi.String("http_2xx"),
pulumi.String("http_3xx"),
pulumi.String("http_4xx"),
},
HealthCheckHttpVersion: pulumi.String("HTTP1.1"),
HealthCheckInterval: pulumi.Int(2),
HealthCheckMethod: pulumi.String("HEAD"),
HealthCheckPath: pulumi.String("/tf-example"),
HealthCheckProtocol: pulumi.String("HTTP"),
HealthCheckTimeout: pulumi.Int(5),
HealthyThreshold: pulumi.Int(3),
UnhealthyThreshold: pulumi.Int(3),
},
Servers: alb.ServerGroupServerArray{
&alb.ServerGroupServerArgs{
Description: pulumi.String(name),
Port: pulumi.Int(80),
ServerId: exampleInstance.ID(),
ServerIp: exampleInstance.PrivateIp,
ServerType: pulumi.String("Ecs"),
Weight: pulumi.Int(10),
},
},
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
},
})
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") ?? "terraform-example";
var example = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var exampleGetZones = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "Instance",
});
var exampleGetInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = exampleGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
CpuCoreCount = 1,
MemorySize = 2,
});
var exampleGetImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_18.*64",
Owners = "system",
});
var exampleNetwork = new AliCloud.Vpc.Network("example", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var exampleSwitch = new AliCloud.Vpc.Switch("example", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/16",
VpcId = exampleNetwork.Id,
ZoneId = exampleGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
});
var exampleSecurityGroup = new AliCloud.Ecs.SecurityGroup("example", new()
{
Name = name,
Description = name,
VpcId = exampleNetwork.Id,
});
var exampleInstance = new AliCloud.Ecs.Instance("example", new()
{
AvailabilityZone = exampleGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
InstanceName = name,
ImageId = exampleGetImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceType = exampleGetInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
SecurityGroups = new[]
{
exampleSecurityGroup.Id,
},
VswitchId = exampleSwitch.Id,
});
var exampleServerGroup = new AliCloud.Alb.ServerGroup("example", new()
{
Protocol = "HTTP",
VpcId = exampleNetwork.Id,
ServerGroupName = name,
ResourceGroupId = example.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
StickySessionConfig = new AliCloud.Alb.Inputs.ServerGroupStickySessionConfigArgs
{
StickySessionEnabled = true,
Cookie = "tf-example",
StickySessionType = "Server",
},
HealthCheckConfig = new AliCloud.Alb.Inputs.ServerGroupHealthCheckConfigArgs
{
HealthCheckConnectPort = 46325,
HealthCheckEnabled = true,
HealthCheckHost = "tf-example.com",
HealthCheckCodes = new[]
{
"http_2xx",
"http_3xx",
"http_4xx",
},
HealthCheckHttpVersion = "HTTP1.1",
HealthCheckInterval = 2,
HealthCheckMethod = "HEAD",
HealthCheckPath = "/tf-example",
HealthCheckProtocol = "HTTP",
HealthCheckTimeout = 5,
HealthyThreshold = 3,
UnhealthyThreshold = 3,
},
Servers = new[]
{
new AliCloud.Alb.Inputs.ServerGroupServerArgs
{
Description = name,
Port = 80,
ServerId = exampleInstance.Id,
ServerIp = exampleInstance.PrivateIp,
ServerType = "Ecs",
Weight = 10,
},
},
Tags =
{
{ "Created", "TF" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
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.alb.ServerGroup;
import com.pulumi.alicloud.alb.ServerGroupArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupStickySessionConfigArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupHealthCheckConfigArgs;
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("terraform-example");
final var example = ResourcemanagerFunctions.getResourceGroups();
final var exampleGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("Instance")
.build());
final var exampleGetInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(exampleGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.cpuCoreCount(1)
.memorySize(2)
.build());
final var exampleGetImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_18.*64")
.owners("system")
.build());
var exampleNetwork = new Network("exampleNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var exampleSwitch = new Switch("exampleSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/16")
.vpcId(exampleNetwork.id())
.zoneId(exampleGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var exampleSecurityGroup = new SecurityGroup("exampleSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.description(name)
.vpcId(exampleNetwork.id())
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.availabilityZone(exampleGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.instanceName(name)
.imageId(exampleGetImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceType(exampleGetInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.securityGroups(exampleSecurityGroup.id())
.vswitchId(exampleSwitch.id())
.build());
var exampleServerGroup = new ServerGroup("exampleServerGroup", ServerGroupArgs.builder()
.protocol("HTTP")
.vpcId(exampleNetwork.id())
.serverGroupName(name)
.resourceGroupId(example.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
.stickySessionEnabled(true)
.cookie("tf-example")
.stickySessionType("Server")
.build())
.healthCheckConfig(ServerGroupHealthCheckConfigArgs.builder()
.healthCheckConnectPort("46325")
.healthCheckEnabled(true)
.healthCheckHost("tf-example.com")
.healthCheckCodes(
"http_2xx",
"http_3xx",
"http_4xx")
.healthCheckHttpVersion("HTTP1.1")
.healthCheckInterval("2")
.healthCheckMethod("HEAD")
.healthCheckPath("/tf-example")
.healthCheckProtocol("HTTP")
.healthCheckTimeout(5)
.healthyThreshold(3)
.unhealthyThreshold(3)
.build())
.servers(ServerGroupServerArgs.builder()
.description(name)
.port(80)
.serverId(exampleInstance.id())
.serverIp(exampleInstance.privateIp())
.serverType("Ecs")
.weight(10)
.build())
.tags(Map.of("Created", "TF"))
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
exampleNetwork:
type: alicloud:vpc:Network
name: example
properties:
vpcName: ${name}
cidrBlock: 10.4.0.0/16
exampleSwitch:
type: alicloud:vpc:Switch
name: example
properties:
vswitchName: ${name}
cidrBlock: 10.4.0.0/16
vpcId: ${exampleNetwork.id}
zoneId: ${exampleGetZones.zones[0].id}
exampleSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: example
properties:
name: ${name}
description: ${name}
vpcId: ${exampleNetwork.id}
exampleInstance:
type: alicloud:ecs:Instance
name: example
properties:
availabilityZone: ${exampleGetZones.zones[0].id}
instanceName: ${name}
imageId: ${exampleGetImages.images[0].id}
instanceType: ${exampleGetInstanceTypes.instanceTypes[0].id}
securityGroups:
- ${exampleSecurityGroup.id}
vswitchId: ${exampleSwitch.id}
exampleServerGroup:
type: alicloud:alb:ServerGroup
name: example
properties:
protocol: HTTP
vpcId: ${exampleNetwork.id}
serverGroupName: ${name}
resourceGroupId: ${example.groups[0].id}
stickySessionConfig:
stickySessionEnabled: true
cookie: tf-example
stickySessionType: Server
healthCheckConfig:
healthCheckConnectPort: '46325'
healthCheckEnabled: true
healthCheckHost: tf-example.com
healthCheckCodes:
- http_2xx
- http_3xx
- http_4xx
healthCheckHttpVersion: HTTP1.1
healthCheckInterval: '2'
healthCheckMethod: HEAD
healthCheckPath: /tf-example
healthCheckProtocol: HTTP
healthCheckTimeout: 5
healthyThreshold: 3
unhealthyThreshold: 3
servers:
- description: ${name}
port: 80
serverId: ${exampleInstance.id}
serverIp: ${exampleInstance.privateIp}
serverType: Ecs
weight: 10
tags:
Created: TF
variables:
example:
fn::invoke:
Function: alicloud:resourcemanager:getResourceGroups
Arguments: {}
exampleGetZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: Instance
exampleGetInstanceTypes:
fn::invoke:
Function: alicloud:ecs:getInstanceTypes
Arguments:
availabilityZone: ${exampleGetZones.zones[0].id}
cpuCoreCount: 1
memorySize: 2
exampleGetImages:
fn::invoke:
Function: alicloud:ecs:getImages
Arguments:
nameRegex: ^ubuntu_18.*64
owners: system
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,
health_check_config: Optional[ServerGroupHealthCheckConfigArgs] = None,
server_group_name: Optional[str] = None,
dry_run: Optional[bool] = None,
protocol: Optional[str] = None,
resource_group_id: Optional[str] = None,
scheduler: Optional[str] = None,
server_group_type: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[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:alb: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 serverGroupResource = new AliCloud.Alb.ServerGroup("serverGroupResource", new()
{
HealthCheckConfig = new AliCloud.Alb.Inputs.ServerGroupHealthCheckConfigArgs
{
HealthCheckEnabled = false,
HealthCheckCodes = new[]
{
"string",
},
HealthCheckConnectPort = 0,
HealthCheckHost = "string",
HealthCheckHttpVersion = "string",
HealthCheckInterval = 0,
HealthCheckMethod = "string",
HealthCheckPath = "string",
HealthCheckProtocol = "string",
HealthCheckTimeout = 0,
HealthyThreshold = 0,
UnhealthyThreshold = 0,
},
ServerGroupName = "string",
DryRun = false,
Protocol = "string",
ResourceGroupId = "string",
Scheduler = "string",
ServerGroupType = "string",
Servers = new[]
{
new AliCloud.Alb.Inputs.ServerGroupServerArgs
{
ServerId = "string",
ServerType = "string",
Description = "string",
Port = 0,
RemoteIpEnabled = false,
ServerIp = "string",
Status = "string",
Weight = 0,
},
},
StickySessionConfig = new AliCloud.Alb.Inputs.ServerGroupStickySessionConfigArgs
{
Cookie = "string",
CookieTimeout = 0,
StickySessionEnabled = false,
StickySessionType = "string",
},
Tags =
{
{ "string", "string" },
},
VpcId = "string",
});
example, err := alb.NewServerGroup(ctx, "serverGroupResource", &alb.ServerGroupArgs{
HealthCheckConfig: &alb.ServerGroupHealthCheckConfigArgs{
HealthCheckEnabled: pulumi.Bool(false),
HealthCheckCodes: pulumi.StringArray{
pulumi.String("string"),
},
HealthCheckConnectPort: pulumi.Int(0),
HealthCheckHost: pulumi.String("string"),
HealthCheckHttpVersion: pulumi.String("string"),
HealthCheckInterval: pulumi.Int(0),
HealthCheckMethod: pulumi.String("string"),
HealthCheckPath: pulumi.String("string"),
HealthCheckProtocol: pulumi.String("string"),
HealthCheckTimeout: pulumi.Int(0),
HealthyThreshold: pulumi.Int(0),
UnhealthyThreshold: pulumi.Int(0),
},
ServerGroupName: pulumi.String("string"),
DryRun: pulumi.Bool(false),
Protocol: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Scheduler: pulumi.String("string"),
ServerGroupType: pulumi.String("string"),
Servers: alb.ServerGroupServerArray{
&alb.ServerGroupServerArgs{
ServerId: pulumi.String("string"),
ServerType: pulumi.String("string"),
Description: pulumi.String("string"),
Port: pulumi.Int(0),
RemoteIpEnabled: pulumi.Bool(false),
ServerIp: pulumi.String("string"),
Status: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
Cookie: pulumi.String("string"),
CookieTimeout: pulumi.Int(0),
StickySessionEnabled: pulumi.Bool(false),
StickySessionType: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpcId: pulumi.String("string"),
})
var serverGroupResource = new ServerGroup("serverGroupResource", ServerGroupArgs.builder()
.healthCheckConfig(ServerGroupHealthCheckConfigArgs.builder()
.healthCheckEnabled(false)
.healthCheckCodes("string")
.healthCheckConnectPort(0)
.healthCheckHost("string")
.healthCheckHttpVersion("string")
.healthCheckInterval(0)
.healthCheckMethod("string")
.healthCheckPath("string")
.healthCheckProtocol("string")
.healthCheckTimeout(0)
.healthyThreshold(0)
.unhealthyThreshold(0)
.build())
.serverGroupName("string")
.dryRun(false)
.protocol("string")
.resourceGroupId("string")
.scheduler("string")
.serverGroupType("string")
.servers(ServerGroupServerArgs.builder()
.serverId("string")
.serverType("string")
.description("string")
.port(0)
.remoteIpEnabled(false)
.serverIp("string")
.status("string")
.weight(0)
.build())
.stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
.cookie("string")
.cookieTimeout(0)
.stickySessionEnabled(false)
.stickySessionType("string")
.build())
.tags(Map.of("string", "string"))
.vpcId("string")
.build());
server_group_resource = alicloud.alb.ServerGroup("serverGroupResource",
health_check_config={
"health_check_enabled": False,
"health_check_codes": ["string"],
"health_check_connect_port": 0,
"health_check_host": "string",
"health_check_http_version": "string",
"health_check_interval": 0,
"health_check_method": "string",
"health_check_path": "string",
"health_check_protocol": "string",
"health_check_timeout": 0,
"healthy_threshold": 0,
"unhealthy_threshold": 0,
},
server_group_name="string",
dry_run=False,
protocol="string",
resource_group_id="string",
scheduler="string",
server_group_type="string",
servers=[{
"server_id": "string",
"server_type": "string",
"description": "string",
"port": 0,
"remote_ip_enabled": False,
"server_ip": "string",
"status": "string",
"weight": 0,
}],
sticky_session_config={
"cookie": "string",
"cookie_timeout": 0,
"sticky_session_enabled": False,
"sticky_session_type": "string",
},
tags={
"string": "string",
},
vpc_id="string")
const serverGroupResource = new alicloud.alb.ServerGroup("serverGroupResource", {
healthCheckConfig: {
healthCheckEnabled: false,
healthCheckCodes: ["string"],
healthCheckConnectPort: 0,
healthCheckHost: "string",
healthCheckHttpVersion: "string",
healthCheckInterval: 0,
healthCheckMethod: "string",
healthCheckPath: "string",
healthCheckProtocol: "string",
healthCheckTimeout: 0,
healthyThreshold: 0,
unhealthyThreshold: 0,
},
serverGroupName: "string",
dryRun: false,
protocol: "string",
resourceGroupId: "string",
scheduler: "string",
serverGroupType: "string",
servers: [{
serverId: "string",
serverType: "string",
description: "string",
port: 0,
remoteIpEnabled: false,
serverIp: "string",
status: "string",
weight: 0,
}],
stickySessionConfig: {
cookie: "string",
cookieTimeout: 0,
stickySessionEnabled: false,
stickySessionType: "string",
},
tags: {
string: "string",
},
vpcId: "string",
});
type: alicloud:alb:ServerGroup
properties:
dryRun: false
healthCheckConfig:
healthCheckCodes:
- string
healthCheckConnectPort: 0
healthCheckEnabled: false
healthCheckHost: string
healthCheckHttpVersion: string
healthCheckInterval: 0
healthCheckMethod: string
healthCheckPath: string
healthCheckProtocol: string
healthCheckTimeout: 0
healthyThreshold: 0
unhealthyThreshold: 0
protocol: string
resourceGroupId: string
scheduler: string
serverGroupName: string
serverGroupType: string
servers:
- description: string
port: 0
remoteIpEnabled: false
serverId: string
serverIp: string
serverType: string
status: string
weight: 0
stickySessionConfig:
cookie: string
cookieTimeout: 0
stickySessionEnabled: false
stickySessionType: string
tags:
string: string
vpcId: 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:
- Health
Check Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Health Check Config - The configuration of health checks. See
health_check_config
below. - Server
Group stringName - The name of the server group.
- Dry
Run bool - The dry run.
- Protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - Resource
Group stringId - The ID of the resource group.
- Scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- Servers
List<Pulumi.
Ali Cloud. Alb. Inputs. Server Group Server> - The backend servers. See
servers
below. - Sticky
Session Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- Health
Check ServerConfig Group Health Check Config Args - The configuration of health checks. See
health_check_config
below. - Server
Group stringName - The name of the server group.
- Dry
Run bool - The dry run.
- Protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - Resource
Group stringId - The ID of the resource group.
- Scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- Servers
[]Server
Group Server Args - The backend servers. See
servers
below. - Sticky
Session ServerConfig Group Sticky Session Config Args - The configuration of session persistence. See
sticky_session_config
below. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- health
Check ServerConfig Group Health Check Config - The configuration of health checks. See
health_check_config
below. - server
Group StringName - The name of the server group.
- dry
Run Boolean - The dry run.
- protocol String
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group StringId - The ID of the resource group.
- scheduler String
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group StringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
List<Server
Group Server> - The backend servers. See
servers
below. - sticky
Session ServerConfig Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- health
Check ServerConfig Group Health Check Config - The configuration of health checks. See
health_check_config
below. - server
Group stringName - The name of the server group.
- dry
Run boolean - The dry run.
- protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group stringId - The ID of the resource group.
- scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
Server
Group Server[] - The backend servers. See
servers
below. - sticky
Session ServerConfig Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- health_
check_ Serverconfig Group Health Check Config Args - The configuration of health checks. See
health_check_config
below. - server_
group_ strname - The name of the server group.
- dry_
run bool - The dry run.
- protocol str
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource_
group_ strid - The ID of the resource group.
- scheduler str
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server_
group_ strtype - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
Sequence[Server
Group Server Args] - The backend servers. See
servers
below. - sticky_
session_ Serverconfig Group Sticky Session Config Args - The configuration of session persistence. See
sticky_session_config
below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- health
Check Property MapConfig - The configuration of health checks. See
health_check_config
below. - server
Group StringName - The name of the server group.
- dry
Run Boolean - The dry run.
- protocol String
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group StringId - The ID of the resource group.
- scheduler String
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group StringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers List<Property Map>
- The backend servers. See
servers
below. - sticky
Session Property MapConfig - The configuration of session persistence. See
sticky_session_config
below. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
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, str]] = 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 - The configuration of health checks. See
health_check_config
below. - Protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - Resource
Group stringId - The ID of the resource group.
- Scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Server
Group stringName - The name of the server group.
- Server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- Servers
List<Pulumi.
Ali Cloud. Alb. Inputs. Server Group Server> - The backend servers. See
servers
below. - Status string
- The status of the backend server.
- Sticky
Session Pulumi.Config Ali Cloud. Alb. Inputs. Server Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- Dry
Run bool - The dry run.
- Health
Check ServerConfig Group Health Check Config Args - The configuration of health checks. See
health_check_config
below. - Protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - Resource
Group stringId - The ID of the resource group.
- Scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Server
Group stringName - The name of the server group.
- Server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- Servers
[]Server
Group Server Args - The backend servers. See
servers
below. - Status string
- The status of the backend server.
- Sticky
Session ServerConfig Group Sticky Session Config Args - The configuration of session persistence. See
sticky_session_config
below. - map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- dry
Run Boolean - The dry run.
- health
Check ServerConfig Group Health Check Config - The configuration of health checks. See
health_check_config
below. - protocol String
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group StringId - The ID of the resource group.
- scheduler String
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group StringName - The name of the server group.
- server
Group StringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
List<Server
Group Server> - The backend servers. See
servers
below. - status String
- The status of the backend server.
- sticky
Session ServerConfig Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- dry
Run boolean - The dry run.
- health
Check ServerConfig Group Health Check Config - The configuration of health checks. See
health_check_config
below. - protocol string
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group stringId - The ID of the resource group.
- scheduler string
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group stringName - The name of the server group.
- server
Group stringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
Server
Group Server[] - The backend servers. See
servers
below. - status string
- The status of the backend server.
- sticky
Session ServerConfig Group Sticky Session Config - The configuration of session persistence. See
sticky_session_config
below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- dry_
run bool - The dry run.
- health_
check_ Serverconfig Group Health Check Config Args - The configuration of health checks. See
health_check_config
below. - protocol str
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource_
group_ strid - The ID of the resource group.
- scheduler str
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server_
group_ strname - The name of the server group.
- server_
group_ strtype - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers
Sequence[Server
Group Server Args] - The backend servers. See
servers
below. - status str
- The status of the backend server.
- sticky_
session_ Serverconfig Group Sticky Session Config Args - The configuration of session persistence. See
sticky_session_config
below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
- dry
Run Boolean - The dry run.
- health
Check Property MapConfig - The configuration of health checks. See
health_check_config
below. - protocol String
- The server protocol. Valid values:
HTTP
,HTTPS
,gRPC
. Whileserver_group_type
isFc
this parameter will not take effect. From version 1.215.0,protocol
can be set togRPC
. - resource
Group StringId - The ID of the resource group.
- scheduler String
- The scheduling algorithm. Valid values:
Sch
,Wlc
,Wrr
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - server
Group StringName - The name of the server group.
- server
Group StringType - The type of the server group. Default value:
Instance
. Valid values:Instance
: allows you add servers by specifying Ecs, Ens, or Eci.Ip
: allows you to add servers by specifying IP addresses.Fc
: allows you to add servers by specifying functions of Function Compute.
- servers List<Property Map>
- The backend servers. See
servers
below. - status String
- The status of the backend server.
- sticky
Session Property MapConfig - The configuration of session persistence. See
sticky_session_config
below. - Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC that you want to access. NOTE: This parameter takes effect when the
server_group_type
parameter is set toInstance
orIp
.
Supporting Types
ServerGroupHealthCheckConfig, ServerGroupHealthCheckConfigArgs
- Health
Check boolEnabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - Health
Check List<string>Codes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- Health
Check intConnect Port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - Health
Check stringHost - The domain name that is used for health checks.
- Health
Check stringHttp Version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - Health
Check intInterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - Health
Check stringMethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - Health
Check stringPath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - Health
Check stringProtocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - Health
Check intTimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - Healthy
Threshold int - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - Unhealthy
Threshold int - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
- Health
Check boolEnabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - Health
Check []stringCodes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- Health
Check intConnect Port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - Health
Check stringHost - The domain name that is used for health checks.
- Health
Check stringHttp Version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - Health
Check intInterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - Health
Check stringMethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - Health
Check stringPath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - Health
Check stringProtocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - Health
Check intTimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - Healthy
Threshold int - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - Unhealthy
Threshold int - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
- health
Check BooleanEnabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - health
Check List<String>Codes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- health
Check IntegerConnect Port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - health
Check StringHost - The domain name that is used for health checks.
- health
Check StringHttp Version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - health
Check IntegerInterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - health
Check StringMethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - health
Check StringPath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - health
Check StringProtocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - health
Check IntegerTimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - healthy
Threshold Integer - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - unhealthy
Threshold Integer - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
- health
Check booleanEnabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - health
Check string[]Codes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- health
Check numberConnect Port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - health
Check stringHost - The domain name that is used for health checks.
- health
Check stringHttp Version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - health
Check numberInterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - health
Check stringMethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - health
Check stringPath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - health
Check stringProtocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - health
Check numberTimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - healthy
Threshold number - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - unhealthy
Threshold number - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
- health_
check_ boolenabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - health_
check_ Sequence[str]codes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- health_
check_ intconnect_ port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - health_
check_ strhost - The domain name that is used for health checks.
- health_
check_ strhttp_ version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - health_
check_ intinterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - health_
check_ strmethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - health_
check_ strpath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - health_
check_ strprotocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - health_
check_ inttimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - healthy_
threshold int - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - unhealthy_
threshold int - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
- health
Check BooleanEnabled - Specifies whether to enable the health check feature. Valid values:
true
,false
. - health
Check List<String>Codes - The HTTP status codes that are used to indicate whether the backend server passes the health check. Valid values:
- If
health_check_protocol
is set toHTTP
orHTTPS
. Valid values:http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. - If
health_check_protocol
is set togRPC
. Valid values:0
to99
. Default value:0
.
- If
- health
Check NumberConnect Port - The backend port that is used for health checks. Default value:
0
. Valid values:0
to65535
. A value of 0 indicates that a backend server port is used for health checks. - health
Check StringHost - The domain name that is used for health checks.
- health
Check StringHttp Version - The version of the HTTP protocol. Default value:
HTTP1.1
. Valid values:HTTP1.0
andHTTP1.1
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
orHTTPS
. - health
Check NumberInterval - The interval at which health checks are performed. Unit: seconds. Default value:
2
. Valid values:1
to50
. - health
Check StringMethod - The HTTP method that is used for health checks. Default value:
GET
. Valid values:GET
,POST
,HEAD
. NOTE: This parameter takes effect only whenhealth_check_protocol
is set toHTTP
,HTTPS
, orgRPC
. From version 1.215.0,health_check_method
can be set toPOST
. - health
Check StringPath - The path that is used for health checks. NOTE: This parameter takes effect only when
health_check_protocol
is set toHTTP
orHTTPS
. - health
Check StringProtocol - The protocol that is used for health checks. Valid values:
HTTP
,HTTPS
,TCP
andgRPC
. - health
Check NumberTimeout - The timeout period for 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. Default value:
5
. Valid values:1
to300
. NOTE: If the value ofhealth_check_timeout
is smaller than the value ofhealth_check_interval
, the value ofhealth_check_timeout
is ignored and the value ofhealth_check_interval
is used. - healthy
Threshold Number - The number of times that an unhealthy backend server must consecutively pass health checks before it is declared healthy. Default value:
3
. Valid values:2
to10
. - unhealthy
Threshold Number - The number of times that a healthy backend server must consecutively fail health checks before it is declared unhealthy. Default value:
3
. Valid values:2
to10
.
ServerGroupServer, ServerGroupServerArgs
- 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- Description string
- The description of the backend server.
- Port int
- The port used by the backend 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 backend server.
- Weight int
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- Description string
- The description of the backend server.
- Port int
- The port used by the backend 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 backend server.
- Weight int
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- description String
- The description of the backend server.
- port Integer
- The port used by the backend 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 backend server.
- weight Integer
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- description string
- The description of the backend server.
- port number
- The port used by the backend 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 backend server.
- weight number
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- description str
- The description of the backend server.
- port int
- The port used by the backend 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 backend server.
- weight int
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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 since v1.194.0): an IP address.Fc
(Available since v1.194.0): a function.
- description String
- The description of the backend server.
- port Number
- The port used by the backend 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 backend server.
- weight Number
- The weight of the server. Default value:
100
. Valid values:0
to100
. 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, ServerGroupStickySessionConfigArgs
- string
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - int
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - Sticky
Session boolEnabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Sticky
Session stringType - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
- string
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - int
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - Sticky
Session boolEnabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - Sticky
Session stringType - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
- String
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - Integer
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - sticky
Session BooleanEnabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - sticky
Session StringType - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
- string
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - number
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - sticky
Session booleanEnabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - sticky
Session stringType - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
- str
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - int
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - sticky_
session_ boolenabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - sticky_
session_ strtype - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
- String
- The cookie to be configured on the server. NOTE: This parameter takes effect when the
sticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toServer
. - Number
- The timeout period of a cookie. Unit: seconds. Default value:
1000
. Valid values:1
to86400
. NOTE: This parameter takes effect when thesticky_session_enabled
parameter is set totrue
and thesticky_session_type
parameter is set toInsert
. - sticky
Session BooleanEnabled - Specifies whether to enable session persistence. Default value:
false
. Valid values:true
,false
. NOTE: This parameter takes effect when theserver_group_type
parameter is set toInstance
orIp
. - sticky
Session StringType - The method that is used to handle a cookie. Valid values:
Server
,Insert
.
Import
ALB Server Group can be imported using the id, e.g.
$ pulumi import alicloud:alb/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.