Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.alb.getServerGroups
Explore with Pulumi AI
This data source provides the Alb Server Groups of the current Alibaba Cloud user.
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 _default = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "192.168.0.0/16",
});
const defaultServerGroup = new alicloud.alb.ServerGroup("default", {
    protocol: "HTTP",
    vpcId: _default.id,
    serverGroupName: name,
    healthCheckConfig: {
        healthCheckEnabled: false,
    },
    stickySessionConfig: {
        stickySessionEnabled: false,
    },
});
const ids = alicloud.alb.getServerGroupsOutput({
    ids: [defaultServerGroup.id],
});
export const albServerGroupId0 = ids.apply(ids => ids.groups?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "terraform-example"
default = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="192.168.0.0/16")
default_server_group = alicloud.alb.ServerGroup("default",
    protocol="HTTP",
    vpc_id=default.id,
    server_group_name=name,
    health_check_config={
        "health_check_enabled": False,
    },
    sticky_session_config={
        "sticky_session_enabled": False,
    })
ids = alicloud.alb.get_server_groups_output(ids=[default_server_group.id])
pulumi.export("albServerGroupId0", ids.groups[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
	"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
		}
		_default, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultServerGroup, err := alb.NewServerGroup(ctx, "default", &alb.ServerGroupArgs{
			Protocol:        pulumi.String("HTTP"),
			VpcId:           _default.ID(),
			ServerGroupName: pulumi.String(name),
			HealthCheckConfig: &alb.ServerGroupHealthCheckConfigArgs{
				HealthCheckEnabled: pulumi.Bool(false),
			},
			StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
				StickySessionEnabled: pulumi.Bool(false),
			},
		})
		if err != nil {
			return err
		}
		ids := alb.GetServerGroupsOutput(ctx, alb.GetServerGroupsOutputArgs{
			Ids: pulumi.StringArray{
				defaultServerGroup.ID(),
			},
		}, nil)
		ctx.Export("albServerGroupId0", ids.ApplyT(func(ids alb.GetServerGroupsResult) (*string, error) {
			return &ids.Groups[0].Id, nil
		}).(pulumi.StringPtrOutput))
		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 @default = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "192.168.0.0/16",
    });
    var defaultServerGroup = new AliCloud.Alb.ServerGroup("default", new()
    {
        Protocol = "HTTP",
        VpcId = @default.Id,
        ServerGroupName = name,
        HealthCheckConfig = new AliCloud.Alb.Inputs.ServerGroupHealthCheckConfigArgs
        {
            HealthCheckEnabled = false,
        },
        StickySessionConfig = new AliCloud.Alb.Inputs.ServerGroupStickySessionConfigArgs
        {
            StickySessionEnabled = false,
        },
    });
    var ids = AliCloud.Alb.GetServerGroups.Invoke(new()
    {
        Ids = new[]
        {
            defaultServerGroup.Id,
        },
    });
    return new Dictionary<string, object?>
    {
        ["albServerGroupId0"] = ids.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.alb.ServerGroup;
import com.pulumi.alicloud.alb.ServerGroupArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupHealthCheckConfigArgs;
import com.pulumi.alicloud.alb.inputs.ServerGroupStickySessionConfigArgs;
import com.pulumi.alicloud.alb.AlbFunctions;
import com.pulumi.alicloud.alb.inputs.GetServerGroupsArgs;
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");
        var default_ = new Network("default", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("192.168.0.0/16")
            .build());
        var defaultServerGroup = new ServerGroup("defaultServerGroup", ServerGroupArgs.builder()
            .protocol("HTTP")
            .vpcId(default_.id())
            .serverGroupName(name)
            .healthCheckConfig(ServerGroupHealthCheckConfigArgs.builder()
                .healthCheckEnabled("false")
                .build())
            .stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
                .stickySessionEnabled("false")
                .build())
            .build());
        final var ids = AlbFunctions.getServerGroups(GetServerGroupsArgs.builder()
            .ids(defaultServerGroup.id())
            .build());
        ctx.export("albServerGroupId0", ids.applyValue(getServerGroupsResult -> getServerGroupsResult).applyValue(ids -> ids.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id())));
    }
}
configuration:
  name:
    type: string
    default: terraform-example
resources:
  default:
    type: alicloud:vpc:Network
    properties:
      vpcName: ${name}
      cidrBlock: 192.168.0.0/16
  defaultServerGroup:
    type: alicloud:alb:ServerGroup
    name: default
    properties:
      protocol: HTTP
      vpcId: ${default.id}
      serverGroupName: ${name}
      healthCheckConfig:
        healthCheckEnabled: 'false'
      stickySessionConfig:
        stickySessionEnabled: 'false'
variables:
  ids:
    fn::invoke:
      function: alicloud:alb:getServerGroups
      arguments:
        ids:
          - ${defaultServerGroup.id}
outputs:
  albServerGroupId0: ${ids.groups[0].id}
Using getServerGroups
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServerGroups(args: GetServerGroupsArgs, opts?: InvokeOptions): Promise<GetServerGroupsResult>
function getServerGroupsOutput(args: GetServerGroupsOutputArgs, opts?: InvokeOptions): Output<GetServerGroupsResult>def get_server_groups(enable_details: Optional[bool] = None,
                      ids: Optional[Sequence[str]] = None,
                      name_regex: Optional[str] = None,
                      output_file: Optional[str] = None,
                      resource_group_id: Optional[str] = None,
                      server_group_ids: Optional[Sequence[str]] = None,
                      server_group_name: Optional[str] = None,
                      status: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      vpc_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetServerGroupsResult
def get_server_groups_output(enable_details: Optional[pulumi.Input[bool]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      name_regex: Optional[pulumi.Input[str]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      resource_group_id: Optional[pulumi.Input[str]] = None,
                      server_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      server_group_name: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                      vpc_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetServerGroupsResult]func GetServerGroups(ctx *Context, args *GetServerGroupsArgs, opts ...InvokeOption) (*GetServerGroupsResult, error)
func GetServerGroupsOutput(ctx *Context, args *GetServerGroupsOutputArgs, opts ...InvokeOption) GetServerGroupsResultOutput> Note: This function is named GetServerGroups in the Go SDK.
public static class GetServerGroups 
{
    public static Task<GetServerGroupsResult> InvokeAsync(GetServerGroupsArgs args, InvokeOptions? opts = null)
    public static Output<GetServerGroupsResult> Invoke(GetServerGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerGroupsResult> getServerGroups(GetServerGroupsArgs args, InvokeOptions options)
public static Output<GetServerGroupsResult> getServerGroups(GetServerGroupsArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:alb/getServerGroups:getServerGroups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- EnableDetails bool
- Whether to query the detailed list of resource attributes. Default value: false.
- Ids List<string>
- A list of Server Group IDs.
- NameRegex string
- A regex string to filter results by Server Group name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The ID of the resource group.
- ServerGroup List<string>Ids 
- The server group IDs.
- ServerGroup stringName 
- The names of the Server Group.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- VpcId string
- The ID of the virtual private cloud (VPC).
- EnableDetails bool
- Whether to query the detailed list of resource attributes. Default value: false.
- Ids []string
- A list of Server Group IDs.
- NameRegex string
- A regex string to filter results by Server Group name.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- ResourceGroup stringId 
- The ID of the resource group.
- ServerGroup []stringIds 
- The server group IDs.
- ServerGroup stringName 
- The names of the Server Group.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- map[string]string
- A mapping of tags to assign to the resource.
- VpcId string
- The ID of the virtual private cloud (VPC).
- enableDetails Boolean
- Whether to query the detailed list of resource attributes. Default value: false.
- ids List<String>
- A list of Server Group IDs.
- nameRegex String
- A regex string to filter results by Server Group name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The ID of the resource group.
- serverGroup List<String>Ids 
- The server group IDs.
- serverGroup StringName 
- The names of the Server Group.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpcId String
- The ID of the virtual private cloud (VPC).
- enableDetails boolean
- Whether to query the detailed list of resource attributes. Default value: false.
- ids string[]
- A list of Server Group IDs.
- nameRegex string
- A regex string to filter results by Server Group name.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- resourceGroup stringId 
- The ID of the resource group.
- serverGroup string[]Ids 
- The server group IDs.
- serverGroup stringName 
- The names of the Server Group.
- status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpcId string
- The ID of the virtual private cloud (VPC).
- enable_details bool
- Whether to query the detailed list of resource attributes. Default value: false.
- ids Sequence[str]
- A list of Server Group IDs.
- name_regex str
- A regex string to filter results by Server Group name.
- output_file str
- File name where to save data source results (after running pulumi preview).
- resource_group_ strid 
- The ID of the resource group.
- server_group_ Sequence[str]ids 
- The server group IDs.
- server_group_ strname 
- The names of the Server Group.
- status str
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_id str
- The ID of the virtual private cloud (VPC).
- enableDetails Boolean
- Whether to query the detailed list of resource attributes. Default value: false.
- ids List<String>
- A list of Server Group IDs.
- nameRegex String
- A regex string to filter results by Server Group name.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- resourceGroup StringId 
- The ID of the resource group.
- serverGroup List<String>Ids 
- The server group IDs.
- serverGroup StringName 
- The names of the Server Group.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Map<String>
- A mapping of tags to assign to the resource.
- vpcId String
- The ID of the virtual private cloud (VPC).
getServerGroups Result
The following output properties are available:
- Groups
List<Pulumi.Ali Cloud. Alb. Outputs. Get Server Groups Group> 
- A list of Server Groups. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- A list of Server Group names.
- EnableDetails bool
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- ServerGroup List<string>Ids 
- ServerGroup stringName 
- The name of the Server Group.
- Status string
- The status of the server.
- Dictionary<string, string>
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- VpcId string
- The ID of the VPC.
- Groups
[]GetServer Groups Group 
- A list of Server Groups. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- A list of Server Group names.
- EnableDetails bool
- NameRegex string
- OutputFile string
- ResourceGroup stringId 
- ServerGroup []stringIds 
- ServerGroup stringName 
- The name of the Server Group.
- Status string
- The status of the server.
- map[string]string
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- VpcId string
- The ID of the VPC.
- groups
List<GetServer Groups Group> 
- A list of Server Groups. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Server Group names.
- enableDetails Boolean
- nameRegex String
- outputFile String
- resourceGroup StringId 
- serverGroup List<String>Ids 
- serverGroup StringName 
- The name of the Server Group.
- status String
- The status of the server.
- Map<String,String>
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- vpcId String
- The ID of the VPC.
- groups
GetServer Groups Group[] 
- A list of Server Groups. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- A list of Server Group names.
- enableDetails boolean
- nameRegex string
- outputFile string
- resourceGroup stringId 
- serverGroup string[]Ids 
- serverGroup stringName 
- The name of the Server Group.
- status string
- The status of the server.
- {[key: string]: string}
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- vpcId string
- The ID of the VPC.
- groups
Sequence[GetServer Groups Group] 
- A list of Server Groups. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- A list of Server Group names.
- enable_details bool
- name_regex str
- output_file str
- resource_group_ strid 
- server_group_ Sequence[str]ids 
- server_group_ strname 
- The name of the Server Group.
- status str
- The status of the server.
- Mapping[str, str]
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- vpc_id str
- The ID of the VPC.
- groups List<Property Map>
- A list of Server Groups. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- A list of Server Group names.
- enableDetails Boolean
- nameRegex String
- outputFile String
- resourceGroup StringId 
- serverGroup List<String>Ids 
- serverGroup StringName 
- The name of the Server Group.
- status String
- The status of the server.
- Map<String>
- The tags of the resource. Note: tagstakes effect only ifenable_detailsis set totrue.
- vpcId String
- The ID of the VPC.
Supporting Types
GetServerGroupsGroup   
- HealthCheck List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Server Groups Group Health Check Config> 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- Id string
- The ID of the Server Group.
- Protocol string
- The backend protocol.
- Scheduler string
- The scheduling algorithm.
- ServerGroup stringId 
- The ID of the Server Group.
- ServerGroup stringName 
- The names of the Server Group.
- Servers
List<Pulumi.Ali Cloud. Alb. Inputs. Get Server Groups Group Server> 
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- StickySession List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Server Groups Group Sticky Session Config> 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- VpcId string
- The ID of the virtual private cloud (VPC).
- HealthCheck []GetConfigs Server Groups Group Health Check Config 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- Id string
- The ID of the Server Group.
- Protocol string
- The backend protocol.
- Scheduler string
- The scheduling algorithm.
- ServerGroup stringId 
- The ID of the Server Group.
- ServerGroup stringName 
- The names of the Server Group.
- Servers
[]GetServer Groups Group Server 
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- StickySession []GetConfigs Server Groups Group Sticky Session Config 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- map[string]string
- A mapping of tags to assign to the resource.
- VpcId string
- The ID of the virtual private cloud (VPC).
- healthCheck List<GetConfigs Server Groups Group Health Check Config> 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- id String
- The ID of the Server Group.
- protocol String
- The backend protocol.
- scheduler String
- The scheduling algorithm.
- serverGroup StringId 
- The ID of the Server Group.
- serverGroup StringName 
- The names of the Server Group.
- servers
List<GetServer Groups Group Server> 
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- stickySession List<GetConfigs Server Groups Group Sticky Session Config> 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpcId String
- The ID of the virtual private cloud (VPC).
- healthCheck GetConfigs Server Groups Group Health Check Config[] 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- id string
- The ID of the Server Group.
- protocol string
- The backend protocol.
- scheduler string
- The scheduling algorithm.
- serverGroup stringId 
- The ID of the Server Group.
- serverGroup stringName 
- The names of the Server Group.
- servers
GetServer Groups Group Server[] 
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- stickySession GetConfigs Server Groups Group Sticky Session Config[] 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpcId string
- The ID of the virtual private cloud (VPC).
- health_check_ Sequence[Getconfigs Server Groups Group Health Check Config] 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- id str
- The ID of the Server Group.
- protocol str
- The backend protocol.
- scheduler str
- The scheduling algorithm.
- server_group_ strid 
- The ID of the Server Group.
- server_group_ strname 
- The names of the Server Group.
- servers
Sequence[GetServer Groups Group Server] 
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- status str
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- sticky_session_ Sequence[Getconfigs Server Groups Group Sticky Session Config] 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_id str
- The ID of the virtual private cloud (VPC).
- healthCheck List<Property Map>Configs 
- The configuration of health checks. Note: health_check_configtakes effect only ifenable_detailsis set totrue.
- id String
- The ID of the Server Group.
- protocol String
- The backend protocol.
- scheduler String
- The scheduling algorithm.
- serverGroup StringId 
- The ID of the Server Group.
- serverGroup StringName 
- The names of the Server Group.
- servers List<Property Map>
- The backend server. Note: serverstakes effect only ifenable_detailsis set totrue.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- stickySession List<Property Map>Configs 
- The configuration of the sticky session. Note: sticky_session_configtakes effect only ifenable_detailsis set totrue.
- Map<String>
- A mapping of tags to assign to the resource.
- vpcId String
- The ID of the virtual private cloud (VPC).
GetServerGroupsGroupHealthCheckConfig      
- HealthCheck List<string>Codes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- HealthCheck intConnect Port 
- The port of the backend server that is used for health checks.
- HealthCheck boolEnabled 
- Indicates whether health checks are enabled.
- HealthCheck stringHost 
- The domain name that is used for health checks.
- HealthCheck stringHttp Version 
- HTTP protocol version.
- HealthCheck intInterval 
- The time interval between two consecutive health checks.
- HealthCheck stringMethod 
- Health check method.
- HealthCheck stringPath 
- The forwarding rule path of health checks.
- HealthCheck stringProtocol 
- Health check protocol.
- HealthCheck intTimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- HealthyThreshold int
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- UnhealthyThreshold int
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
- HealthCheck []stringCodes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- HealthCheck intConnect Port 
- The port of the backend server that is used for health checks.
- HealthCheck boolEnabled 
- Indicates whether health checks are enabled.
- HealthCheck stringHost 
- The domain name that is used for health checks.
- HealthCheck stringHttp Version 
- HTTP protocol version.
- HealthCheck intInterval 
- The time interval between two consecutive health checks.
- HealthCheck stringMethod 
- Health check method.
- HealthCheck stringPath 
- The forwarding rule path of health checks.
- HealthCheck stringProtocol 
- Health check protocol.
- HealthCheck intTimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- HealthyThreshold int
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- UnhealthyThreshold int
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
- healthCheck List<String>Codes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- healthCheck IntegerConnect Port 
- The port of the backend server that is used for health checks.
- healthCheck BooleanEnabled 
- Indicates whether health checks are enabled.
- healthCheck StringHost 
- The domain name that is used for health checks.
- healthCheck StringHttp Version 
- HTTP protocol version.
- healthCheck IntegerInterval 
- The time interval between two consecutive health checks.
- healthCheck StringMethod 
- Health check method.
- healthCheck StringPath 
- The forwarding rule path of health checks.
- healthCheck StringProtocol 
- Health check protocol.
- healthCheck IntegerTimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- healthyThreshold Integer
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- unhealthyThreshold Integer
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
- healthCheck string[]Codes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- healthCheck numberConnect Port 
- The port of the backend server that is used for health checks.
- healthCheck booleanEnabled 
- Indicates whether health checks are enabled.
- healthCheck stringHost 
- The domain name that is used for health checks.
- healthCheck stringHttp Version 
- HTTP protocol version.
- healthCheck numberInterval 
- The time interval between two consecutive health checks.
- healthCheck stringMethod 
- Health check method.
- healthCheck stringPath 
- The forwarding rule path of health checks.
- healthCheck stringProtocol 
- Health check protocol.
- healthCheck numberTimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- healthyThreshold number
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- unhealthyThreshold number
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
- health_check_ Sequence[str]codes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- health_check_ intconnect_ port 
- The port of the backend server that is used for health checks.
- health_check_ boolenabled 
- Indicates whether health checks are enabled.
- health_check_ strhost 
- The domain name that is used for health checks.
- health_check_ strhttp_ version 
- HTTP protocol version.
- health_check_ intinterval 
- The time interval between two consecutive health checks.
- health_check_ strmethod 
- Health check method.
- health_check_ strpath 
- The forwarding rule path of health checks.
- health_check_ strprotocol 
- Health check protocol.
- health_check_ inttimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- healthy_threshold int
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- unhealthy_threshold int
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
- healthCheck List<String>Codes 
- The status code for a successful health check. Multiple status codes can be specified as a list.
- healthCheck NumberConnect Port 
- The port of the backend server that is used for health checks.
- healthCheck BooleanEnabled 
- Indicates whether health checks are enabled.
- healthCheck StringHost 
- The domain name that is used for health checks.
- healthCheck StringHttp Version 
- HTTP protocol version.
- healthCheck NumberInterval 
- The time interval between two consecutive health checks.
- healthCheck StringMethod 
- Health check method.
- healthCheck StringPath 
- The forwarding rule path of health checks.
- healthCheck StringProtocol 
- Health check protocol.
- healthCheck NumberTimeout 
- The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy.
- healthyThreshold Number
- The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success.
- unhealthyThreshold Number
- The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail.
GetServerGroupsGroupServer    
- Description string
- The description of the server.
- Port int
- The port that is used by the server.
- ServerId string
- The ID of the ECS instance, ENI instance or ECI instance.
- ServerIp string
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- ServerType string
- The type of the server. The type of the server.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Weight int
- The weight of the server.
- Description string
- The description of the server.
- Port int
- The port that is used by the server.
- ServerId string
- The ID of the ECS instance, ENI instance or ECI instance.
- ServerIp string
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- ServerType string
- The type of the server. The type of the server.
- Status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- Weight int
- The weight of the server.
- description String
- The description of the server.
- port Integer
- The port that is used by the server.
- serverId String
- The ID of the ECS instance, ENI instance or ECI instance.
- serverIp String
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- serverType String
- The type of the server. The type of the server.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- weight Integer
- The weight of the server.
- description string
- The description of the server.
- port number
- The port that is used by the server.
- serverId string
- The ID of the ECS instance, ENI instance or ECI instance.
- serverIp string
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- serverType string
- The type of the server. The type of the server.
- status string
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- weight number
- The weight of the server.
- description str
- The description of the server.
- port int
- The port that is used by the server.
- server_id str
- The ID of the ECS instance, ENI instance or ECI instance.
- server_ip str
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- server_type str
- The type of the server. The type of the server.
- status str
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- weight int
- The weight of the server.
- description String
- The description of the server.
- port Number
- The port that is used by the server.
- serverId String
- The ID of the ECS instance, ENI instance or ECI instance.
- serverIp String
- The IP address of the ENI instance when it is in the inclusive ENI mode.
- serverType String
- The type of the server. The type of the server.
- status String
- The status of the Server Group. Valid values: Available,Configuring,Provisioning.
- weight Number
- The weight of the server.
GetServerGroupsGroupStickySessionConfig      
- string
- the cookie that is configured on the server.
- int
- The timeout period of a cookie. The timeout period of a cookie.
- StickySession boolEnabled 
- Indicates whether sticky session is enabled.
- StickySession stringType 
- The method that is used to handle a cookie.
- string
- the cookie that is configured on the server.
- int
- The timeout period of a cookie. The timeout period of a cookie.
- StickySession boolEnabled 
- Indicates whether sticky session is enabled.
- StickySession stringType 
- The method that is used to handle a cookie.
- String
- the cookie that is configured on the server.
- Integer
- The timeout period of a cookie. The timeout period of a cookie.
- stickySession BooleanEnabled 
- Indicates whether sticky session is enabled.
- stickySession StringType 
- The method that is used to handle a cookie.
- string
- the cookie that is configured on the server.
- number
- The timeout period of a cookie. The timeout period of a cookie.
- stickySession booleanEnabled 
- Indicates whether sticky session is enabled.
- stickySession stringType 
- The method that is used to handle a cookie.
- str
- the cookie that is configured on the server.
- int
- The timeout period of a cookie. The timeout period of a cookie.
- sticky_session_ boolenabled 
- Indicates whether sticky session is enabled.
- sticky_session_ strtype 
- The method that is used to handle a cookie.
- String
- the cookie that is configured on the server.
- Number
- The timeout period of a cookie. The timeout period of a cookie.
- stickySession BooleanEnabled 
- Indicates whether sticky session is enabled.
- stickySession StringType 
- The method that is used to handle a cookie.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.