Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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 ids = alicloud.alb.getServerGroups({});
export const albServerGroupId1 = ids.then(ids => ids.groups?.[0]?.id);
const nameRegex = alicloud.alb.getServerGroups({
nameRegex: "^my-ServerGroup",
});
export const albServerGroupId2 = nameRegex.then(nameRegex => nameRegex.groups?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
ids = alicloud.alb.get_server_groups()
pulumi.export("albServerGroupId1", ids.groups[0].id)
name_regex = alicloud.alb.get_server_groups(name_regex="^my-ServerGroup")
pulumi.export("albServerGroupId2", name_regex.groups[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/alb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ids, err := alb.GetServerGroups(ctx, nil, nil)
if err != nil {
return err
}
ctx.Export("albServerGroupId1", ids.Groups[0].Id)
nameRegex, err := alb.GetServerGroups(ctx, &alb.GetServerGroupsArgs{
NameRegex: pulumi.StringRef("^my-ServerGroup"),
}, nil)
if err != nil {
return err
}
ctx.Export("albServerGroupId2", nameRegex.Groups[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var ids = AliCloud.Alb.GetServerGroups.Invoke();
var nameRegex = AliCloud.Alb.GetServerGroups.Invoke(new()
{
NameRegex = "^my-ServerGroup",
});
return new Dictionary<string, object?>
{
["albServerGroupId1"] = ids.Apply(getServerGroupsResult => getServerGroupsResult.Groups[0]?.Id),
["albServerGroupId2"] = nameRegex.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.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 ids = AlbFunctions.getServerGroups();
ctx.export("albServerGroupId1", ids.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
final var nameRegex = AlbFunctions.getServerGroups(GetServerGroupsArgs.builder()
.nameRegex("^my-ServerGroup")
.build());
ctx.export("albServerGroupId2", nameRegex.applyValue(getServerGroupsResult -> getServerGroupsResult.groups()[0].id()));
}
}
variables:
ids:
fn::invoke:
Function: alicloud:alb:getServerGroups
Arguments: {}
nameRegex:
fn::invoke:
Function: alicloud:alb:getServerGroups
Arguments:
nameRegex: ^my-ServerGroup
outputs:
albServerGroupId1: ${ids.groups[0].id}
albServerGroupId2: ${nameRegex.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, Any]] = 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, Any]]] = 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:alb/getServerGroups:getServerGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Server Group IDs.
- Name
Regex string - A regex string to filter results by Server Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The ID of the resource group.
- Server
Group List<string>Ids - The server group ids.
- Server
Group stringName - The name of the resource.
- Status string
- The status of the resource.
- Dictionary<string, object>
- A map of tags assigned to the group.
- Vpc
Id string - The ID of the VPC that you want to access.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Server Group IDs.
- Name
Regex string - A regex string to filter results by Server Group name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Resource
Group stringId - The ID of the resource group.
- Server
Group []stringIds - The server group ids.
- Server
Group stringName - The name of the resource.
- Status string
- The status of the resource.
- map[string]interface{}
- A map of tags assigned to the group.
- Vpc
Id string - The ID of the VPC that you want to access.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Server Group IDs.
- name
Regex String - A regex string to filter results by Server Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The ID of the resource group.
- server
Group List<String>Ids - The server group ids.
- server
Group StringName - The name of the resource.
- status String
- The status of the resource.
- Map<String,Object>
- A map of tags assigned to the group.
- vpc
Id String - The ID of the VPC that you want to access.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Server Group IDs.
- name
Regex string - A regex string to filter results by Server Group name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - resource
Group stringId - The ID of the resource group.
- server
Group string[]Ids - The server group ids.
- server
Group stringName - The name of the resource.
- status string
- The status of the resource.
- {[key: string]: any}
- A map of tags assigned to the group.
- vpc
Id string - The ID of the VPC that you want to access.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - 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 name of the resource.
- status str
- The status of the resource.
- Mapping[str, Any]
- A map of tags assigned to the group.
- vpc_
id str - The ID of the VPC that you want to access.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Server Group IDs.
- name
Regex String - A regex string to filter results by Server Group name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - resource
Group StringId - The ID of the resource group.
- server
Group List<String>Ids - The server group ids.
- server
Group StringName - The name of the resource.
- status String
- The status of the resource.
- Map<Any>
- A map of tags assigned to the group.
- vpc
Id String - The ID of the VPC that you want to access.
getServerGroups Result
The following output properties are available:
- Groups
List<Pulumi.
Ali Cloud. Alb. Outputs. Get Server Groups Group> - A list of Alb 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.
- Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId - Server
Group List<string>Ids - Server
Group stringName - The name of the resource.
- Status string
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - Dictionary<string, object>
- The tags of the resource.
- Vpc
Id string - The ID of the VPC that you want to access.
- Groups
[]Get
Server Groups Group - A list of Alb 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.
- Enable
Details bool - Name
Regex string - Output
File string - Resource
Group stringId - Server
Group []stringIds - Server
Group stringName - The name of the resource.
- Status string
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - map[string]interface{}
- The tags of the resource.
- Vpc
Id string - The ID of the VPC that you want to access.
- groups
List<Get
Server Groups Group> - A list of Alb 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.
- enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId - server
Group List<String>Ids - server
Group StringName - The name of the resource.
- status String
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - Map<String,Object>
- The tags of the resource.
- vpc
Id String - The ID of the VPC that you want to access.
- groups
Get
Server Groups Group[] - A list of Alb 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.
- enable
Details boolean - name
Regex string - output
File string - resource
Group stringId - server
Group string[]Ids - server
Group stringName - The name of the resource.
- status string
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - {[key: string]: any}
- The tags of the resource.
- vpc
Id string - The ID of the VPC that you want to access.
- groups
Sequence[Get
Server Groups Group] - A list of Alb 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 resource.
- status str
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - Mapping[str, Any]
- The tags of the resource.
- vpc_
id str - The ID of the VPC that you want to access.
- groups List<Property Map>
- A list of Alb 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.
- enable
Details Boolean - name
Regex String - output
File String - resource
Group StringId - server
Group List<String>Ids - server
Group StringName - The name of the resource.
- status String
- The status of the resource. Valid values:
Provisioning
,Available
andConfiguring
. - Map<Any>
- The tags of the resource.
- vpc
Id String - The ID of the VPC that you want to access.
Supporting Types
GetServerGroupsGroup
- Health
Check List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Server Groups Group Health Check Config> - The configuration of health checks.
- Id string
- The ID of the Server Group.
- Protocol string
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - Scheduler string
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - Server
Group stringId - The first ID of the res ource.
- Server
Group stringName - The name of the resource.
- Servers
List<Pulumi.
Ali Cloud. Alb. Inputs. Get Server Groups Group Server> - The backend server.
- Status string
- The status of the resource.
- Sticky
Session List<Pulumi.Configs Ali Cloud. Alb. Inputs. Get Server Groups Group Sticky Session Config> - The configuration of the sticky session.
- Dictionary<string, object>
- A map of tags assigned to the group.
- Vpc
Id string - The ID of the VPC that you want to access.
- Health
Check []GetConfigs Server Groups Group Health Check Config - The configuration of health checks.
- Id string
- The ID of the Server Group.
- Protocol string
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - Scheduler string
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - Server
Group stringId - The first ID of the res ource.
- Server
Group stringName - The name of the resource.
- Servers
[]Get
Server Groups Group Server - The backend server.
- Status string
- The status of the resource.
- Sticky
Session []GetConfigs Server Groups Group Sticky Session Config - The configuration of the sticky session.
- map[string]interface{}
- A map of tags assigned to the group.
- Vpc
Id string - The ID of the VPC that you want to access.
- health
Check List<GetConfigs Server Groups Group Health Check Config> - The configuration of health checks.
- id String
- The ID of the Server Group.
- protocol String
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - scheduler String
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - server
Group StringId - The first ID of the res ource.
- server
Group StringName - The name of the resource.
- servers
List<Get
Server Groups Group Server> - The backend server.
- status String
- The status of the resource.
- sticky
Session List<GetConfigs Server Groups Group Sticky Session Config> - The configuration of the sticky session.
- Map<String,Object>
- A map of tags assigned to the group.
- vpc
Id String - The ID of the VPC that you want to access.
- health
Check GetConfigs Server Groups Group Health Check Config[] - The configuration of health checks.
- id string
- The ID of the Server Group.
- protocol string
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - scheduler string
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - server
Group stringId - The first ID of the res ource.
- server
Group stringName - The name of the resource.
- servers
Get
Server Groups Group Server[] - The backend server.
- status string
- The status of the resource.
- sticky
Session GetConfigs Server Groups Group Sticky Session Config[] - The configuration of the sticky session.
- {[key: string]: any}
- A map of tags assigned to the group.
- vpc
Id string - The ID of the VPC that you want to access.
- health_
check_ Sequence[Getconfigs Server Groups Group Health Check Config] - The configuration of health checks.
- id str
- The ID of the Server Group.
- protocol str
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - scheduler str
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - server_
group_ strid - The first ID of the res ource.
- server_
group_ strname - The name of the resource.
- servers
Sequence[Get
Server Groups Group Server] - The backend server.
- status str
- The status of the resource.
- sticky_
session_ Sequence[Getconfigs Server Groups Group Sticky Session Config] - The configuration of the sticky session.
- Mapping[str, Any]
- A map of tags assigned to the group.
- vpc_
id str - The ID of the VPC that you want to access.
- health
Check List<Property Map>Configs - The configuration of health checks.
- id String
- The ID of the Server Group.
- protocol String
- The server protocol. Valid values:
HTTP
andHTTPS
. Default value:HTTP
. - scheduler String
- The scheduling algorithm. Valid values:
Wrr
,Wlc
andSch
. - server
Group StringId - The first ID of the res ource.
- server
Group StringName - The name of the resource.
- servers List<Property Map>
- The backend server.
- status String
- The status of the resource.
- sticky
Session List<Property Map>Configs - The configuration of the sticky session.
- Map<Any>
- A map of tags assigned to the group.
- vpc
Id String - The ID of the VPC that you want to access.
GetServerGroupsGroupHealthCheckConfig
- Health
Check List<string>Codes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check intConnect Port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - Health
Check boolEnabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - Health
Check stringHost - The domain name that is used for health checks.
- Health
Check stringHttp Version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check intInterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - Health
Check stringMethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check stringPath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - Health
Check stringProtocol - Health check protocol. Valid values:
HTTP
andTCP
. - Health
Check intTimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - Healthy
Threshold int - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - Unhealthy
Threshold int - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- Health
Check []stringCodes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check intConnect Port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - Health
Check boolEnabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - Health
Check stringHost - The domain name that is used for health checks.
- Health
Check stringHttp Version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check intInterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - Health
Check stringMethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - Health
Check stringPath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - Health
Check stringProtocol - Health check protocol. Valid values:
HTTP
andTCP
. - Health
Check intTimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - Healthy
Threshold int - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - Unhealthy
Threshold int - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check List<String>Codes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check IntegerConnect Port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - health
Check BooleanEnabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - health
Check StringHost - The domain name that is used for health checks.
- health
Check StringHttp Version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check IntegerInterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - health
Check StringMethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check StringPath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - health
Check StringProtocol - Health check protocol. Valid values:
HTTP
andTCP
. - health
Check IntegerTimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - healthy
Threshold Integer - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - unhealthy
Threshold Integer - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check string[]Codes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check numberConnect Port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - health
Check booleanEnabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - health
Check stringHost - The domain name that is used for health checks.
- health
Check stringHttp Version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check numberInterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - health
Check stringMethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check stringPath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - health
Check stringProtocol - Health check protocol. Valid values:
HTTP
andTCP
. - health
Check numberTimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - healthy
Threshold number - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - unhealthy
Threshold number - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health_
check_ Sequence[str]codes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health_
check_ intconnect_ port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - health_
check_ boolenabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - health_
check_ strhost - The domain name that is used for health checks.
- health_
check_ strhttp_ version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health_
check_ intinterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - health_
check_ strmethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health_
check_ strpath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - health_
check_ strprotocol - Health check protocol. Valid values:
HTTP
andTCP
. - health_
check_ inttimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - healthy_
threshold int - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - unhealthy_
threshold int - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
- health
Check List<String>Codes - The status code for a successful health check. Multiple status codes can be specified as a list. Valid values:
http_2xx
,http_3xx
,http_4xx
, andhttp_5xx
. Default value:http_2xx
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check NumberConnect Port - The port of the backend server that is used for health checks. Valid values:
0
to65535
. Default value:0
. A value of0
indicates that a backend server port is used for health checks. - health
Check BooleanEnabled - Indicates whether health checks are enabled. Valid values:
true
,false
. Default value:true
. - health
Check StringHost - The domain name that is used for health checks.
- health
Check StringHttp Version - HTTP protocol version. Valid values:
HTTP1.0
andHTTP1.1
. Default value:HTTP1.1
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check NumberInterval - The time interval between two consecutive health checks. Unit: seconds. Valid values:
1
to50
. Default value:2
. - health
Check StringMethod - Health check method. Valid values:
GET
andHEAD
. Default:GET
. NOTE: This parameter exists if theHealthCheckProtocol
parameter is set toHTTP
. - health
Check StringPath - The forwarding rule path of health checks. NOTE: This parameter exists if the
HealthCheckProtocol
parameter is set toHTTP
. - health
Check StringProtocol - Health check protocol. Valid values:
HTTP
andTCP
. - health
Check NumberTimeout - The timeout period of a health check response. If a backend Elastic Compute Service (ECS) instance does not send an expected response within the specified period of time, the ECS instance is considered unhealthy. Unit: seconds. Valid values:
1
to300
. Default value:5
. NOTE: If the value of theHealthCHeckTimeout
parameter is smaller than that of theHealthCheckInterval
parameter, the value of theHealthCHeckTimeout
parameter is ignored and the value of theHealthCheckInterval
parameter is regarded as the timeout period. - healthy
Threshold Number - The number of health checks that an unhealthy backend server must pass consecutively before it is declared healthy. In this case, the health check state is changed from fail to success. Valid values:
2
to10
. Default value:3
. - unhealthy
Threshold Number - The number of consecutive health checks that a healthy backend server must consecutively fail before it is declared unhealthy. In this case, the health check state is changed from success to fail. Valid values:
2
to10
. Default value:3
.
GetServerGroupsGroupServer
- Description string
- The description of the server.
- Port int
- The port that is used by the server. Valid values:
1
to65535
. - Server
Id string - The ID of the ECS instance, ENI instance or ECI instance.
- Server
Ip string - The IP address of the ENI instance when it is in the inclusive ENI mode.
- Server
Type string - The type of the server. The type of the server. Valid values:
Ecs
,Eni
andEci
. - Status string
- The status of the resource.
- Weight int
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
- Description string
- The description of the server.
- Port int
- The port that is used by the server. Valid values:
1
to65535
. - Server
Id string - The ID of the ECS instance, ENI instance or ECI instance.
- Server
Ip string - The IP address of the ENI instance when it is in the inclusive ENI mode.
- Server
Type string - The type of the server. The type of the server. Valid values:
Ecs
,Eni
andEci
. - Status string
- The status of the resource.
- Weight int
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
- description String
- The description of the server.
- port Integer
- The port that is used by the server. Valid values:
1
to65535
. - server
Id String - The ID of the ECS instance, ENI instance or ECI instance.
- server
Ip String - The IP address of the ENI instance when it is in the inclusive ENI mode.
- server
Type String - The type of the server. The type of the server. Valid values:
Ecs
,Eni
andEci
. - status String
- The status of the resource.
- weight Integer
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
- description string
- The description of the server.
- port number
- The port that is used by the server. Valid values:
1
to65535
. - server
Id string - The ID of the ECS instance, ENI instance or ECI instance.
- server
Ip string - The IP address of the ENI instance when it is in the inclusive ENI mode.
- server
Type string - The type of the server. The type of the server. Valid values:
Ecs
,Eni
andEci
. - status string
- The status of the resource.
- weight number
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
- description str
- The description of the server.
- port int
- The port that is used by the server. Valid values:
1
to65535
. - 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. Valid values:
Ecs
,Eni
andEci
. - status str
- The status of the resource.
- weight int
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
- description String
- The description of the server.
- port Number
- The port that is used by the server. Valid values:
1
to65535
. - server
Id String - The ID of the ECS instance, ENI instance or ECI instance.
- server
Ip String - The IP address of the ENI instance when it is in the inclusive ENI mode.
- server
Type String - The type of the server. The type of the server. Valid values:
Ecs
,Eni
andEci
. - status String
- The status of the resource.
- weight Number
- The weight of the server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the server.
GetServerGroupsGroupStickySessionConfig
- string
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - int
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - Sticky
Session boolEnabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - Sticky
Session stringType - The method that is used to handle a cookie. Values:
Server
andInsert
.
- string
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - int
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - Sticky
Session boolEnabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - Sticky
Session stringType - The method that is used to handle a cookie. Values:
Server
andInsert
.
- String
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - Integer
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - sticky
Session BooleanEnabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - sticky
Session StringType - The method that is used to handle a cookie. Values:
Server
andInsert
.
- string
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - number
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - sticky
Session booleanEnabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - sticky
Session stringType - The method that is used to handle a cookie. Values:
Server
andInsert
.
- str
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - int
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - sticky_
session_ boolenabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - sticky_
session_ strtype - The method that is used to handle a cookie. Values:
Server
andInsert
.
- String
- the cookie that is configured on the server. NOTE: This parameter exists if the
StickySession
parameter is set toOn
and theStickySessionType
parameter is set toserver
. - Number
- The timeout period of a cookie. The timeout period of a cookie. Unit: seconds. Valid values:
1
to86400
. Default value:1000
. - sticky
Session BooleanEnabled - Indicates whether sticky session is enabled. Values:
true
andfalse
. Default value:false
. NOTE: This parameter exists if theStickySession
parameter is set toOn
. - sticky
Session StringType - The method that is used to handle a cookie. Values:
Server
andInsert
.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.