1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. ServerGroup
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.alb.ServerGroup

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage alb server group

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        });
    
        var fooServerGroup = new Volcengine.Alb.ServerGroup("fooServerGroup", new()
        {
            VpcId = fooVpc.Id,
            ServerGroupName = "acc-test-server-group",
            Description = "acc-test",
            ServerGroupType = "instance",
            Scheduler = "wlc",
            ProjectName = "default",
            HealthCheck = new Volcengine.Alb.Inputs.ServerGroupHealthCheckArgs
            {
                Enabled = "on",
                Interval = 3,
                Timeout = 3,
                Method = "GET",
            },
            StickySessionConfig = new Volcengine.Alb.Inputs.ServerGroupStickySessionConfigArgs
            {
                StickySessionEnabled = "on",
                StickySessionType = "insert",
                CookieTimeout = 1100,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
    			VpcName:   pulumi.String("acc-test-vpc"),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alb.NewServerGroup(ctx, "fooServerGroup", &alb.ServerGroupArgs{
    			VpcId:           fooVpc.ID(),
    			ServerGroupName: pulumi.String("acc-test-server-group"),
    			Description:     pulumi.String("acc-test"),
    			ServerGroupType: pulumi.String("instance"),
    			Scheduler:       pulumi.String("wlc"),
    			ProjectName:     pulumi.String("default"),
    			HealthCheck: &alb.ServerGroupHealthCheckArgs{
    				Enabled:  pulumi.String("on"),
    				Interval: pulumi.Int(3),
    				Timeout:  pulumi.Int(3),
    				Method:   pulumi.String("GET"),
    			},
    			StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
    				StickySessionEnabled: pulumi.String("on"),
    				StickySessionType:    pulumi.String("insert"),
    				CookieTimeout:        pulumi.Int(1100),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.Vpc;
    import com.pulumi.volcengine.vpc.VpcArgs;
    import com.pulumi.volcengine.alb.ServerGroup;
    import com.pulumi.volcengine.alb.ServerGroupArgs;
    import com.pulumi.volcengine.alb.inputs.ServerGroupHealthCheckArgs;
    import com.pulumi.volcengine.alb.inputs.ServerGroupStickySessionConfigArgs;
    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) {
            var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());
    
            var fooServerGroup = new ServerGroup("fooServerGroup", ServerGroupArgs.builder()        
                .vpcId(fooVpc.id())
                .serverGroupName("acc-test-server-group")
                .description("acc-test")
                .serverGroupType("instance")
                .scheduler("wlc")
                .projectName("default")
                .healthCheck(ServerGroupHealthCheckArgs.builder()
                    .enabled("on")
                    .interval(3)
                    .timeout(3)
                    .method("GET")
                    .build())
                .stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
                    .stickySessionEnabled("on")
                    .stickySessionType("insert")
                    .cookieTimeout("1100")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_vpc = volcengine.vpc.Vpc("fooVpc",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16")
    foo_server_group = volcengine.alb.ServerGroup("fooServerGroup",
        vpc_id=foo_vpc.id,
        server_group_name="acc-test-server-group",
        description="acc-test",
        server_group_type="instance",
        scheduler="wlc",
        project_name="default",
        health_check=volcengine.alb.ServerGroupHealthCheckArgs(
            enabled="on",
            interval=3,
            timeout=3,
            method="GET",
        ),
        sticky_session_config=volcengine.alb.ServerGroupStickySessionConfigArgs(
            sticky_session_enabled="on",
            sticky_session_type="insert",
            cookie_timeout=1100,
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    });
    const fooServerGroup = new volcengine.alb.ServerGroup("fooServerGroup", {
        vpcId: fooVpc.id,
        serverGroupName: "acc-test-server-group",
        description: "acc-test",
        serverGroupType: "instance",
        scheduler: "wlc",
        projectName: "default",
        healthCheck: {
            enabled: "on",
            interval: 3,
            timeout: 3,
            method: "GET",
        },
        stickySessionConfig: {
            stickySessionEnabled: "on",
            stickySessionType: "insert",
            cookieTimeout: 1100,
        },
    });
    
    resources:
      fooVpc:
        type: volcengine:vpc:Vpc
        properties:
          vpcName: acc-test-vpc
          cidrBlock: 172.16.0.0/16
      fooServerGroup:
        type: volcengine:alb:ServerGroup
        properties:
          vpcId: ${fooVpc.id}
          serverGroupName: acc-test-server-group
          description: acc-test
          serverGroupType: instance
          scheduler: wlc
          projectName: default
          healthCheck:
            enabled: on
            interval: 3
            timeout: 3
            method: GET
          stickySessionConfig:
            stickySessionEnabled: on
            stickySessionType: insert
            cookieTimeout: '1100'
    

    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,
                    vpc_id: Optional[str] = None,
                    description: Optional[str] = None,
                    health_check: Optional[ServerGroupHealthCheckArgs] = None,
                    project_name: Optional[str] = None,
                    scheduler: Optional[str] = None,
                    server_group_name: Optional[str] = None,
                    server_group_type: Optional[str] = None,
                    sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = 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: volcengine: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 Volcengine.Alb.ServerGroup("serverGroupResource", new()
    {
        VpcId = "string",
        Description = "string",
        HealthCheck = new Volcengine.Alb.Inputs.ServerGroupHealthCheckArgs
        {
            Domain = "string",
            Enabled = "string",
            HealthyThreshold = 0,
            HttpCode = "string",
            HttpVersion = "string",
            Interval = 0,
            Method = "string",
            Timeout = 0,
            UnhealthyThreshold = 0,
            Uri = "string",
        },
        ProjectName = "string",
        Scheduler = "string",
        ServerGroupName = "string",
        ServerGroupType = "string",
        StickySessionConfig = new Volcengine.Alb.Inputs.ServerGroupStickySessionConfigArgs
        {
            Cookie = "string",
            CookieTimeout = 0,
            StickySessionEnabled = "string",
            StickySessionType = "string",
        },
    });
    
    example, err := alb.NewServerGroup(ctx, "serverGroupResource", &alb.ServerGroupArgs{
    	VpcId:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	HealthCheck: &alb.ServerGroupHealthCheckArgs{
    		Domain:             pulumi.String("string"),
    		Enabled:            pulumi.String("string"),
    		HealthyThreshold:   pulumi.Int(0),
    		HttpCode:           pulumi.String("string"),
    		HttpVersion:        pulumi.String("string"),
    		Interval:           pulumi.Int(0),
    		Method:             pulumi.String("string"),
    		Timeout:            pulumi.Int(0),
    		UnhealthyThreshold: pulumi.Int(0),
    		Uri:                pulumi.String("string"),
    	},
    	ProjectName:     pulumi.String("string"),
    	Scheduler:       pulumi.String("string"),
    	ServerGroupName: pulumi.String("string"),
    	ServerGroupType: pulumi.String("string"),
    	StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
    		Cookie:               pulumi.String("string"),
    		CookieTimeout:        pulumi.Int(0),
    		StickySessionEnabled: pulumi.String("string"),
    		StickySessionType:    pulumi.String("string"),
    	},
    })
    
    var serverGroupResource = new ServerGroup("serverGroupResource", ServerGroupArgs.builder()
        .vpcId("string")
        .description("string")
        .healthCheck(ServerGroupHealthCheckArgs.builder()
            .domain("string")
            .enabled("string")
            .healthyThreshold(0)
            .httpCode("string")
            .httpVersion("string")
            .interval(0)
            .method("string")
            .timeout(0)
            .unhealthyThreshold(0)
            .uri("string")
            .build())
        .projectName("string")
        .scheduler("string")
        .serverGroupName("string")
        .serverGroupType("string")
        .stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
            .cookie("string")
            .cookieTimeout(0)
            .stickySessionEnabled("string")
            .stickySessionType("string")
            .build())
        .build());
    
    server_group_resource = volcengine.alb.ServerGroup("serverGroupResource",
        vpc_id="string",
        description="string",
        health_check={
            "domain": "string",
            "enabled": "string",
            "healthy_threshold": 0,
            "http_code": "string",
            "http_version": "string",
            "interval": 0,
            "method": "string",
            "timeout": 0,
            "unhealthy_threshold": 0,
            "uri": "string",
        },
        project_name="string",
        scheduler="string",
        server_group_name="string",
        server_group_type="string",
        sticky_session_config={
            "cookie": "string",
            "cookie_timeout": 0,
            "sticky_session_enabled": "string",
            "sticky_session_type": "string",
        })
    
    const serverGroupResource = new volcengine.alb.ServerGroup("serverGroupResource", {
        vpcId: "string",
        description: "string",
        healthCheck: {
            domain: "string",
            enabled: "string",
            healthyThreshold: 0,
            httpCode: "string",
            httpVersion: "string",
            interval: 0,
            method: "string",
            timeout: 0,
            unhealthyThreshold: 0,
            uri: "string",
        },
        projectName: "string",
        scheduler: "string",
        serverGroupName: "string",
        serverGroupType: "string",
        stickySessionConfig: {
            cookie: "string",
            cookieTimeout: 0,
            stickySessionEnabled: "string",
            stickySessionType: "string",
        },
    });
    
    type: volcengine:alb:ServerGroup
    properties:
        description: string
        healthCheck:
            domain: string
            enabled: string
            healthyThreshold: 0
            httpCode: string
            httpVersion: string
            interval: 0
            method: string
            timeout: 0
            unhealthyThreshold: 0
            uri: string
        projectName: string
        scheduler: string
        serverGroupName: string
        serverGroupType: string
        stickySessionConfig:
            cookie: string
            cookieTimeout: 0
            stickySessionEnabled: string
            stickySessionType: 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:

    VpcId string
    The vpc id of the Alb server group.
    Description string
    The description of the Alb server group.
    HealthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    ProjectName string
    The project name of the Alb server group.
    Scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    ServerGroupName string
    The name of the Alb server group.
    ServerGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    StickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    VpcId string
    The vpc id of the Alb server group.
    Description string
    The description of the Alb server group.
    HealthCheck ServerGroupHealthCheckArgs
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    ProjectName string
    The project name of the Alb server group.
    Scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    ServerGroupName string
    The name of the Alb server group.
    ServerGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    StickySessionConfig ServerGroupStickySessionConfigArgs
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    vpcId String
    The vpc id of the Alb server group.
    description String
    The description of the Alb server group.
    healthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    projectName String
    The project name of the Alb server group.
    scheduler String
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverGroupName String
    The name of the Alb server group.
    serverGroupType String
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    stickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    vpcId string
    The vpc id of the Alb server group.
    description string
    The description of the Alb server group.
    healthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    projectName string
    The project name of the Alb server group.
    scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverGroupName string
    The name of the Alb server group.
    serverGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    stickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    vpc_id str
    The vpc id of the Alb server group.
    description str
    The description of the Alb server group.
    health_check ServerGroupHealthCheckArgs
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    project_name str
    The project name of the Alb server group.
    scheduler str
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    server_group_name str
    The name of the Alb server group.
    server_group_type str
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    sticky_session_config ServerGroupStickySessionConfigArgs
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    vpcId String
    The vpc id of the Alb server group.
    description String
    The description of the Alb server group.
    healthCheck Property Map
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    projectName String
    The project name of the Alb server group.
    scheduler String
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverGroupName String
    The name of the Alb server group.
    serverGroupType String
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    stickySessionConfig Property Map
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServerGroup resource produces the following output properties:

    CreateTime string
    The create time of the Alb server group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners List<string>
    The listener information of the Alb server group.
    ServerCount int
    The server count of the Alb server group.
    Status string
    The status of the Alb server group.
    UpdateTime string
    The update time of the Alb server group.
    CreateTime string
    The create time of the Alb server group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Listeners []string
    The listener information of the Alb server group.
    ServerCount int
    The server count of the Alb server group.
    Status string
    The status of the Alb server group.
    UpdateTime string
    The update time of the Alb server group.
    createTime String
    The create time of the Alb server group.
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    The listener information of the Alb server group.
    serverCount Integer
    The server count of the Alb server group.
    status String
    The status of the Alb server group.
    updateTime String
    The update time of the Alb server group.
    createTime string
    The create time of the Alb server group.
    id string
    The provider-assigned unique ID for this managed resource.
    listeners string[]
    The listener information of the Alb server group.
    serverCount number
    The server count of the Alb server group.
    status string
    The status of the Alb server group.
    updateTime string
    The update time of the Alb server group.
    create_time str
    The create time of the Alb server group.
    id str
    The provider-assigned unique ID for this managed resource.
    listeners Sequence[str]
    The listener information of the Alb server group.
    server_count int
    The server count of the Alb server group.
    status str
    The status of the Alb server group.
    update_time str
    The update time of the Alb server group.
    createTime String
    The create time of the Alb server group.
    id String
    The provider-assigned unique ID for this managed resource.
    listeners List<String>
    The listener information of the Alb server group.
    serverCount Number
    The server count of the Alb server group.
    status String
    The status of the Alb server group.
    updateTime String
    The update time of the Alb server group.

    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,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            health_check: Optional[ServerGroupHealthCheckArgs] = None,
            listeners: Optional[Sequence[str]] = None,
            project_name: Optional[str] = None,
            scheduler: Optional[str] = None,
            server_count: Optional[int] = None,
            server_group_name: Optional[str] = None,
            server_group_type: Optional[str] = None,
            status: Optional[str] = None,
            sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
            update_time: Optional[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.
    The following state arguments are supported:
    CreateTime string
    The create time of the Alb server group.
    Description string
    The description of the Alb server group.
    HealthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    Listeners List<string>
    The listener information of the Alb server group.
    ProjectName string
    The project name of the Alb server group.
    Scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    ServerCount int
    The server count of the Alb server group.
    ServerGroupName string
    The name of the Alb server group.
    ServerGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    Status string
    The status of the Alb server group.
    StickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    UpdateTime string
    The update time of the Alb server group.
    VpcId string
    The vpc id of the Alb server group.
    CreateTime string
    The create time of the Alb server group.
    Description string
    The description of the Alb server group.
    HealthCheck ServerGroupHealthCheckArgs
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    Listeners []string
    The listener information of the Alb server group.
    ProjectName string
    The project name of the Alb server group.
    Scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    ServerCount int
    The server count of the Alb server group.
    ServerGroupName string
    The name of the Alb server group.
    ServerGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    Status string
    The status of the Alb server group.
    StickySessionConfig ServerGroupStickySessionConfigArgs
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    UpdateTime string
    The update time of the Alb server group.
    VpcId string
    The vpc id of the Alb server group.
    createTime String
    The create time of the Alb server group.
    description String
    The description of the Alb server group.
    healthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    listeners List<String>
    The listener information of the Alb server group.
    projectName String
    The project name of the Alb server group.
    scheduler String
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverCount Integer
    The server count of the Alb server group.
    serverGroupName String
    The name of the Alb server group.
    serverGroupType String
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    status String
    The status of the Alb server group.
    stickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    updateTime String
    The update time of the Alb server group.
    vpcId String
    The vpc id of the Alb server group.
    createTime string
    The create time of the Alb server group.
    description string
    The description of the Alb server group.
    healthCheck ServerGroupHealthCheck
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    listeners string[]
    The listener information of the Alb server group.
    projectName string
    The project name of the Alb server group.
    scheduler string
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverCount number
    The server count of the Alb server group.
    serverGroupName string
    The name of the Alb server group.
    serverGroupType string
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    status string
    The status of the Alb server group.
    stickySessionConfig ServerGroupStickySessionConfig
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    updateTime string
    The update time of the Alb server group.
    vpcId string
    The vpc id of the Alb server group.
    create_time str
    The create time of the Alb server group.
    description str
    The description of the Alb server group.
    health_check ServerGroupHealthCheckArgs
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    listeners Sequence[str]
    The listener information of the Alb server group.
    project_name str
    The project name of the Alb server group.
    scheduler str
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    server_count int
    The server count of the Alb server group.
    server_group_name str
    The name of the Alb server group.
    server_group_type str
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    status str
    The status of the Alb server group.
    sticky_session_config ServerGroupStickySessionConfigArgs
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    update_time str
    The update time of the Alb server group.
    vpc_id str
    The vpc id of the Alb server group.
    createTime String
    The create time of the Alb server group.
    description String
    The description of the Alb server group.
    healthCheck Property Map
    The health check config of the Alb server group. The enable status of health check function defaults to on.
    listeners List<String>
    The listener information of the Alb server group.
    projectName String
    The project name of the Alb server group.
    scheduler String
    The scheduling algorithm of the Alb server group. Valid values: wrr, wlc, sh.
    serverCount Number
    The server count of the Alb server group.
    serverGroupName String
    The name of the Alb server group.
    serverGroupType String
    The type of the Alb server group. Valid values: instance, ip. Default is instance.
    status String
    The status of the Alb server group.
    stickySessionConfig Property Map
    The sticky session config of the Alb server group. The enable status of sticky session function defaults to off.
    updateTime String
    The update time of the Alb server group.
    vpcId String
    The vpc id of the Alb server group.

    Supporting Types

    ServerGroupHealthCheck, ServerGroupHealthCheckArgs

    Domain string
    The domain of health check.
    Enabled string
    The enable status of health check function. Valid values: on, off. Default is on.
    HealthyThreshold int
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    HttpCode string
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    HttpVersion string
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    Interval int
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    Method string
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    Timeout int
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    UnhealthyThreshold int
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    Uri string
    The uri of health check.
    Domain string
    The domain of health check.
    Enabled string
    The enable status of health check function. Valid values: on, off. Default is on.
    HealthyThreshold int
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    HttpCode string
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    HttpVersion string
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    Interval int
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    Method string
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    Timeout int
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    UnhealthyThreshold int
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    Uri string
    The uri of health check.
    domain String
    The domain of health check.
    enabled String
    The enable status of health check function. Valid values: on, off. Default is on.
    healthyThreshold Integer
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    httpCode String
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    httpVersion String
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    interval Integer
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    method String
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    timeout Integer
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    unhealthyThreshold Integer
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    uri String
    The uri of health check.
    domain string
    The domain of health check.
    enabled string
    The enable status of health check function. Valid values: on, off. Default is on.
    healthyThreshold number
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    httpCode string
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    httpVersion string
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    interval number
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    method string
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    timeout number
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    unhealthyThreshold number
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    uri string
    The uri of health check.
    domain str
    The domain of health check.
    enabled str
    The enable status of health check function. Valid values: on, off. Default is on.
    healthy_threshold int
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    http_code str
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    http_version str
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    interval int
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    method str
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    timeout int
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    unhealthy_threshold int
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    uri str
    The uri of health check.
    domain String
    The domain of health check.
    enabled String
    The enable status of health check function. Valid values: on, off. Default is on.
    healthyThreshold Number
    The healthy threshold of health check. Valid value range in 2~10. Default is 3.
    httpCode String
    The normal http status code of health check, the value can be http_2xx or http_3xx or http_4xx or http_5xx.
    httpVersion String
    The http version of health check. Valid values: HTTP1.0, HTTP1.1. Default is HTTP1.0.
    interval Number
    The interval executing health check. Unit: second. Valid value range in 1~300. Default is 2.
    method String
    The method of health check. Valid values: GET or HEAD. Default is HEAD.
    timeout Number
    The response timeout of health check. Unit: second. Valid value range in 1~60. Default is 2.
    unhealthyThreshold Number
    The unhealthy threshold of health check. Valid value range in 2~10. Default is 3.
    uri String
    The uri of health check.

    ServerGroupStickySessionConfig, ServerGroupStickySessionConfigArgs

    Cookie string
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    CookieTimeout int
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    StickySessionEnabled string
    The enable status of sticky session. Valid values: on, off. Default is off.
    StickySessionType string
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.
    Cookie string
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    CookieTimeout int
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    StickySessionEnabled string
    The enable status of sticky session. Valid values: on, off. Default is off.
    StickySessionType string
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.
    cookie String
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    cookieTimeout Integer
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    stickySessionEnabled String
    The enable status of sticky session. Valid values: on, off. Default is off.
    stickySessionType String
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.
    cookie string
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    cookieTimeout number
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    stickySessionEnabled string
    The enable status of sticky session. Valid values: on, off. Default is off.
    stickySessionType string
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.
    cookie str
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    cookie_timeout int
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    sticky_session_enabled str
    The enable status of sticky session. Valid values: on, off. Default is off.
    sticky_session_type str
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.
    cookie String
    The cookie name of the sticky session. This field is required when the value of the sticky_session_type is server.
    cookieTimeout Number
    The cookie timeout of the sticky session. Unit: second. Valid value range in 1~86400. Default is 1000. This field is required when the value of the sticky_session_type is insert.
    stickySessionEnabled String
    The enable status of sticky session. Valid values: on, off. Default is off.
    stickySessionType String
    The cookie handle type of the sticky session. Valid values: insert, server. Default is insert. This field is required when the value of the sticky_session_enabled is on.

    Import

    AlbServerGroup can be imported using the id, e.g.

     $ pulumi import volcengine:alb/serverGroup:ServerGroup default resource_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine