volcenginecc.alb.ServerGroup
服务器组是后端服务器的逻辑集合。ALB 实例按照您配置的转发规则确定客户端请求将被转发到的服务器组。然后,ALB 实例根据您配置的负载均衡策略,将请求分发给服务器组内的后端服务器。后端服务器接收并处理请求。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
albServergroupDemo:
type: volcenginecc:alb:ServerGroup
name: AlbServergroupDemo
properties:
vpcId: vpc-13f8***
serverGroupName: test-servergroup
serverGroupType: instance
protocol: HTTP
scheduler: wrr
healthCheck:
enabled: on
port: 80
interval: 2
timeout: 5
healthy_threshold: 3
unhealthy_threshold: 3
method: GET
http_version: HTTP1.1
uri: /health
http_code: http_2xx
stickySessionConfig:
sticky_session_enabled: on
sticky_session_type: insert
cookie_timeout: 1000
servers:
- instance_id: i-ye3***
type: ecs
ip: 192.168.1.**
port: 80
weight: 10
tags:
- key: env
value: test
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,
server_group_name: Optional[str] = None,
ip_address_type: Optional[str] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
scheduler: Optional[str] = None,
description: Optional[str] = None,
server_group_type: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
status: Optional[str] = None,
sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
tags: Optional[Sequence[ServerGroupTagArgs]] = None,
health_check: Optional[ServerGroupHealthCheckArgs] = 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: volcenginecc: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 Volcenginecc.Alb.ServerGroup("serverGroupResource", new()
{
VpcId = "string",
ServerGroupName = "string",
IpAddressType = "string",
ProjectName = "string",
Protocol = "string",
Scheduler = "string",
Description = "string",
ServerGroupType = "string",
Servers = new[]
{
new Volcenginecc.Alb.Inputs.ServerGroupServerArgs
{
Description = "string",
InstanceId = "string",
Ip = "string",
Port = 0,
RemoteEnabled = "string",
ServerId = "string",
Type = "string",
Weight = 0,
},
},
Status = "string",
StickySessionConfig = new Volcenginecc.Alb.Inputs.ServerGroupStickySessionConfigArgs
{
Cookie = "string",
CookieTimeout = 0,
StickySessionEnabled = "string",
StickySessionType = "string",
},
Tags = new[]
{
new Volcenginecc.Alb.Inputs.ServerGroupTagArgs
{
Key = "string",
Value = "string",
},
},
HealthCheck = new Volcenginecc.Alb.Inputs.ServerGroupHealthCheckArgs
{
Domain = "string",
Enabled = "string",
HealthyThreshold = 0,
HttpCode = "string",
HttpVersion = "string",
Interval = 0,
Method = "string",
Port = 0,
Protocol = "string",
Timeout = 0,
UnhealthyThreshold = 0,
Uri = "string",
},
});
example, err := alb.NewServerGroup(ctx, "serverGroupResource", &alb.ServerGroupArgs{
VpcId: pulumi.String("string"),
ServerGroupName: pulumi.String("string"),
IpAddressType: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Protocol: pulumi.String("string"),
Scheduler: pulumi.String("string"),
Description: pulumi.String("string"),
ServerGroupType: pulumi.String("string"),
Servers: alb.ServerGroupServerArray{
&alb.ServerGroupServerArgs{
Description: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Ip: pulumi.String("string"),
Port: pulumi.Int(0),
RemoteEnabled: pulumi.String("string"),
ServerId: pulumi.String("string"),
Type: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
Status: pulumi.String("string"),
StickySessionConfig: &alb.ServerGroupStickySessionConfigArgs{
Cookie: pulumi.String("string"),
CookieTimeout: pulumi.Int(0),
StickySessionEnabled: pulumi.String("string"),
StickySessionType: pulumi.String("string"),
},
Tags: alb.ServerGroupTagArray{
&alb.ServerGroupTagArgs{
Key: pulumi.String("string"),
Value: 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"),
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
Timeout: pulumi.Int(0),
UnhealthyThreshold: pulumi.Int(0),
Uri: pulumi.String("string"),
},
})
var serverGroupResource = new com.volcengine.volcenginecc.alb.ServerGroup("serverGroupResource", com.volcengine.volcenginecc.alb.ServerGroupArgs.builder()
.vpcId("string")
.serverGroupName("string")
.ipAddressType("string")
.projectName("string")
.protocol("string")
.scheduler("string")
.description("string")
.serverGroupType("string")
.servers(ServerGroupServerArgs.builder()
.description("string")
.instanceId("string")
.ip("string")
.port(0)
.remoteEnabled("string")
.serverId("string")
.type("string")
.weight(0)
.build())
.status("string")
.stickySessionConfig(ServerGroupStickySessionConfigArgs.builder()
.cookie("string")
.cookieTimeout(0)
.stickySessionEnabled("string")
.stickySessionType("string")
.build())
.tags(ServerGroupTagArgs.builder()
.key("string")
.value("string")
.build())
.healthCheck(ServerGroupHealthCheckArgs.builder()
.domain("string")
.enabled("string")
.healthyThreshold(0)
.httpCode("string")
.httpVersion("string")
.interval(0)
.method("string")
.port(0)
.protocol("string")
.timeout(0)
.unhealthyThreshold(0)
.uri("string")
.build())
.build());
server_group_resource = volcenginecc.alb.ServerGroup("serverGroupResource",
vpc_id="string",
server_group_name="string",
ip_address_type="string",
project_name="string",
protocol="string",
scheduler="string",
description="string",
server_group_type="string",
servers=[{
"description": "string",
"instance_id": "string",
"ip": "string",
"port": 0,
"remote_enabled": "string",
"server_id": "string",
"type": "string",
"weight": 0,
}],
status="string",
sticky_session_config={
"cookie": "string",
"cookie_timeout": 0,
"sticky_session_enabled": "string",
"sticky_session_type": "string",
},
tags=[{
"key": "string",
"value": "string",
}],
health_check={
"domain": "string",
"enabled": "string",
"healthy_threshold": 0,
"http_code": "string",
"http_version": "string",
"interval": 0,
"method": "string",
"port": 0,
"protocol": "string",
"timeout": 0,
"unhealthy_threshold": 0,
"uri": "string",
})
const serverGroupResource = new volcenginecc.alb.ServerGroup("serverGroupResource", {
vpcId: "string",
serverGroupName: "string",
ipAddressType: "string",
projectName: "string",
protocol: "string",
scheduler: "string",
description: "string",
serverGroupType: "string",
servers: [{
description: "string",
instanceId: "string",
ip: "string",
port: 0,
remoteEnabled: "string",
serverId: "string",
type: "string",
weight: 0,
}],
status: "string",
stickySessionConfig: {
cookie: "string",
cookieTimeout: 0,
stickySessionEnabled: "string",
stickySessionType: "string",
},
tags: [{
key: "string",
value: "string",
}],
healthCheck: {
domain: "string",
enabled: "string",
healthyThreshold: 0,
httpCode: "string",
httpVersion: "string",
interval: 0,
method: "string",
port: 0,
protocol: "string",
timeout: 0,
unhealthyThreshold: 0,
uri: "string",
},
});
type: volcenginecc:alb:ServerGroup
properties:
description: string
healthCheck:
domain: string
enabled: string
healthyThreshold: 0
httpCode: string
httpVersion: string
interval: 0
method: string
port: 0
protocol: string
timeout: 0
unhealthyThreshold: 0
uri: string
ipAddressType: string
projectName: string
protocol: string
scheduler: string
serverGroupName: string
serverGroupType: string
servers:
- description: string
instanceId: string
ip: string
port: 0
remoteEnabled: string
serverId: string
type: string
weight: 0
status: string
stickySessionConfig:
cookie: string
cookieTimeout: 0
stickySessionEnabled: string
stickySessionType: string
tags:
- key: string
value: 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:
- Vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- Description string
- 后端服务器组的描述。
- Health
Check Volcengine.Server Group Health Check - 服务器组健康检查配置信息。
- Ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- Project
Name string - 后端服务器组所属项目名称。
- Protocol string
- 后端协议:HTTP,HTTPS。
- Scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- Server
Group stringName - 后端服务器组的名称。
- Server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- Servers
List<Volcengine.
Server Group Server> - Status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- Sticky
Session Volcengine.Config Server Group Sticky Session Config - 会话保持功能的参数信息。
-
List<Volcengine.
Server Group Tag>
- Vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- Description string
- 后端服务器组的描述。
- Health
Check ServerGroup Health Check Args - 服务器组健康检查配置信息。
- Ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- Project
Name string - 后端服务器组所属项目名称。
- Protocol string
- 后端协议:HTTP,HTTPS。
- Scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- Server
Group stringName - 后端服务器组的名称。
- Server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- Servers
[]Server
Group Server Args - Status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- Sticky
Session ServerConfig Group Sticky Session Config Args - 会话保持功能的参数信息。
-
[]Server
Group Tag Args
- vpc
Id String - 后端服务器组所属 Vpc 的 ID。
- description String
- 后端服务器组的描述。
- health
Check ServerGroup Health Check - 服务器组健康检查配置信息。
- ip
Address StringType - 服务器组的IP地址类型。目前只支持 IPv4
- project
Name String - 后端服务器组所属项目名称。
- protocol String
- 后端协议:HTTP,HTTPS。
- scheduler String
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Group StringName - 后端服务器组的名称。
- server
Group StringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
List<Server
Group Server> - status String
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session ServerConfig Group Sticky Session Config - 会话保持功能的参数信息。
-
List<Server
Group Tag>
- vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- description string
- 后端服务器组的描述。
- health
Check ServerGroup Health Check - 服务器组健康检查配置信息。
- ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- project
Name string - 后端服务器组所属项目名称。
- protocol string
- 后端协议:HTTP,HTTPS。
- scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Group stringName - 后端服务器组的名称。
- server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
Server
Group Server[] - status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session ServerConfig Group Sticky Session Config - 会话保持功能的参数信息。
-
Server
Group Tag[]
- vpc_
id str - 后端服务器组所属 Vpc 的 ID。
- description str
- 后端服务器组的描述。
- health_
check ServerGroup Health Check Args - 服务器组健康检查配置信息。
- ip_
address_ strtype - 服务器组的IP地址类型。目前只支持 IPv4
- project_
name str - 后端服务器组所属项目名称。
- protocol str
- 后端协议:HTTP,HTTPS。
- scheduler str
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server_
group_ strname - 后端服务器组的名称。
- server_
group_ strtype - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
Sequence[Server
Group Server Args] - status str
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky_
session_ Serverconfig Group Sticky Session Config Args - 会话保持功能的参数信息。
-
Sequence[Server
Group Tag Args]
- vpc
Id String - 后端服务器组所属 Vpc 的 ID。
- description String
- 后端服务器组的描述。
- health
Check Property Map - 服务器组健康检查配置信息。
- ip
Address StringType - 服务器组的IP地址类型。目前只支持 IPv4
- project
Name String - 后端服务器组所属项目名称。
- protocol String
- 后端协议:HTTP,HTTPS。
- scheduler String
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Group StringName - 后端服务器组的名称。
- server
Group StringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers List<Property Map>
- status String
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session Property MapConfig - 会话保持功能的参数信息。
- List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroup resource produces the following output properties:
- Create
Time string - 后端服务器组的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
List<Volcengine.
Server Group Listener> - Server
Count int - 服务器组内后端服务器的个数。
- Server
Group stringId - 后端服务器组的ID。
- Update
Time string - 后端服务器组的最近操作时间。
- Create
Time string - 后端服务器组的创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
[]Server
Group Listener - Server
Count int - 服务器组内后端服务器的个数。
- Server
Group stringId - 后端服务器组的ID。
- Update
Time string - 后端服务器组的最近操作时间。
- create
Time String - 后端服务器组的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- listeners
List<Server
Group Listener> - server
Count Integer - 服务器组内后端服务器的个数。
- server
Group StringId - 后端服务器组的ID。
- update
Time String - 后端服务器组的最近操作时间。
- create
Time string - 后端服务器组的创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- listeners
Server
Group Listener[] - server
Count number - 服务器组内后端服务器的个数。
- server
Group stringId - 后端服务器组的ID。
- update
Time string - 后端服务器组的最近操作时间。
- create_
time str - 后端服务器组的创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- listeners
Sequence[Server
Group Listener] - server_
count int - 服务器组内后端服务器的个数。
- server_
group_ strid - 后端服务器组的ID。
- update_
time str - 后端服务器组的最近操作时间。
- create
Time String - 后端服务器组的创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- listeners List<Property Map>
- server
Count Number - 服务器组内后端服务器的个数。
- server
Group StringId - 后端服务器组的ID。
- update
Time String - 后端服务器组的最近操作时间。
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,
ip_address_type: Optional[str] = None,
listeners: Optional[Sequence[ServerGroupListenerArgs]] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
scheduler: Optional[str] = None,
server_count: Optional[int] = None,
server_group_id: Optional[str] = None,
server_group_name: Optional[str] = None,
server_group_type: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
status: Optional[str] = None,
sticky_session_config: Optional[ServerGroupStickySessionConfigArgs] = None,
tags: Optional[Sequence[ServerGroupTagArgs]] = None,
update_time: Optional[str] = None,
vpc_id: Optional[str] = None) -> ServerGroupfunc 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)resources: _: type: volcenginecc:alb:ServerGroup get: id: ${id}- 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.
- Create
Time string - 后端服务器组的创建时间。
- Description string
- 后端服务器组的描述。
- Health
Check Volcengine.Server Group Health Check - 服务器组健康检查配置信息。
- Ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- Listeners
List<Volcengine.
Server Group Listener> - Project
Name string - 后端服务器组所属项目名称。
- Protocol string
- 后端协议:HTTP,HTTPS。
- Scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- Server
Count int - 服务器组内后端服务器的个数。
- Server
Group stringId - 后端服务器组的ID。
- Server
Group stringName - 后端服务器组的名称。
- Server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- Servers
List<Volcengine.
Server Group Server> - Status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- Sticky
Session Volcengine.Config Server Group Sticky Session Config - 会话保持功能的参数信息。
-
List<Volcengine.
Server Group Tag> - Update
Time string - 后端服务器组的最近操作时间。
- Vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- Create
Time string - 后端服务器组的创建时间。
- Description string
- 后端服务器组的描述。
- Health
Check ServerGroup Health Check Args - 服务器组健康检查配置信息。
- Ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- Listeners
[]Server
Group Listener Args - Project
Name string - 后端服务器组所属项目名称。
- Protocol string
- 后端协议:HTTP,HTTPS。
- Scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- Server
Count int - 服务器组内后端服务器的个数。
- Server
Group stringId - 后端服务器组的ID。
- Server
Group stringName - 后端服务器组的名称。
- Server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- Servers
[]Server
Group Server Args - Status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- Sticky
Session ServerConfig Group Sticky Session Config Args - 会话保持功能的参数信息。
-
[]Server
Group Tag Args - Update
Time string - 后端服务器组的最近操作时间。
- Vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- create
Time String - 后端服务器组的创建时间。
- description String
- 后端服务器组的描述。
- health
Check ServerGroup Health Check - 服务器组健康检查配置信息。
- ip
Address StringType - 服务器组的IP地址类型。目前只支持 IPv4
- listeners
List<Server
Group Listener> - project
Name String - 后端服务器组所属项目名称。
- protocol String
- 后端协议:HTTP,HTTPS。
- scheduler String
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Count Integer - 服务器组内后端服务器的个数。
- server
Group StringId - 后端服务器组的ID。
- server
Group StringName - 后端服务器组的名称。
- server
Group StringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
List<Server
Group Server> - status String
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session ServerConfig Group Sticky Session Config - 会话保持功能的参数信息。
-
List<Server
Group Tag> - update
Time String - 后端服务器组的最近操作时间。
- vpc
Id String - 后端服务器组所属 Vpc 的 ID。
- create
Time string - 后端服务器组的创建时间。
- description string
- 后端服务器组的描述。
- health
Check ServerGroup Health Check - 服务器组健康检查配置信息。
- ip
Address stringType - 服务器组的IP地址类型。目前只支持 IPv4
- listeners
Server
Group Listener[] - project
Name string - 后端服务器组所属项目名称。
- protocol string
- 后端协议:HTTP,HTTPS。
- scheduler string
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Count number - 服务器组内后端服务器的个数。
- server
Group stringId - 后端服务器组的ID。
- server
Group stringName - 后端服务器组的名称。
- server
Group stringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
Server
Group Server[] - status string
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session ServerConfig Group Sticky Session Config - 会话保持功能的参数信息。
-
Server
Group Tag[] - update
Time string - 后端服务器组的最近操作时间。
- vpc
Id string - 后端服务器组所属 Vpc 的 ID。
- create_
time str - 后端服务器组的创建时间。
- description str
- 后端服务器组的描述。
- health_
check ServerGroup Health Check Args - 服务器组健康检查配置信息。
- ip_
address_ strtype - 服务器组的IP地址类型。目前只支持 IPv4
- listeners
Sequence[Server
Group Listener Args] - project_
name str - 后端服务器组所属项目名称。
- protocol str
- 后端协议:HTTP,HTTPS。
- scheduler str
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server_
count int - 服务器组内后端服务器的个数。
- server_
group_ strid - 后端服务器组的ID。
- server_
group_ strname - 后端服务器组的名称。
- server_
group_ strtype - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers
Sequence[Server
Group Server Args] - status str
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky_
session_ Serverconfig Group Sticky Session Config Args - 会话保持功能的参数信息。
-
Sequence[Server
Group Tag Args] - update_
time str - 后端服务器组的最近操作时间。
- vpc_
id str - 后端服务器组所属 Vpc 的 ID。
- create
Time String - 后端服务器组的创建时间。
- description String
- 后端服务器组的描述。
- health
Check Property Map - 服务器组健康检查配置信息。
- ip
Address StringType - 服务器组的IP地址类型。目前只支持 IPv4
- listeners List<Property Map>
- project
Name String - 后端服务器组所属项目名称。
- protocol String
- 后端协议:HTTP,HTTPS。
- scheduler String
- 调度算法。取值:wrr:加权轮询。wlc:加权最小连接数。sh:源地址哈希。
- server
Count Number - 服务器组内后端服务器的个数。
- server
Group StringId - 后端服务器组的ID。
- server
Group StringName - 后端服务器组的名称。
- server
Group StringType - 后端服务器组的类型。instance:服务器类型,该类型服务器组支持添加 ecs、eni 实例作为后端服务器。ip:IP类型,该类型服务器组支持添加 IP 地址作为后端服务器。
- servers List<Property Map>
- status String
- 服务器组状态。Creating:创建中。Active:运行中。Configuring:配置中。Deleting:删除中。
- sticky
Session Property MapConfig - 会话保持功能的参数信息。
- List<Property Map>
- update
Time String - 后端服务器组的最近操作时间。
- vpc
Id String - 后端服务器组所属 Vpc 的 ID。
Supporting Types
ServerGroupHealthCheck, ServerGroupHealthCheckArgs
- Domain string
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- Enabled string
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- Healthy
Threshold int - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- Http
Code string - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- Http
Version string - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- Interval int
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- Method string
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- Port int
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Protocol string
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- Timeout int
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- Unhealthy
Threshold int - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- Uri string
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
- Domain string
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- Enabled string
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- Healthy
Threshold int - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- Http
Code string - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- Http
Version string - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- Interval int
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- Method string
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- Port int
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- Protocol string
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- Timeout int
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- Unhealthy
Threshold int - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- Uri string
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
- domain String
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- enabled String
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- healthy
Threshold Integer - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- http
Code String - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- http
Version String - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- interval Integer
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- method String
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- port Integer
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- protocol String
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- timeout Integer
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- unhealthy
Threshold Integer - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- uri String
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
- domain string
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- enabled string
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- healthy
Threshold number - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- http
Code string - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- http
Version string - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- interval number
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- method string
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- port number
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- protocol string
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- timeout number
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- unhealthy
Threshold number - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- uri string
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
- domain str
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- enabled str
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- healthy_
threshold int - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- http_
code str - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- http_
version str - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- interval int
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- method str
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- port int
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- protocol str
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- timeout int
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- unhealthy_
threshold int - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- uri str
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
- domain String
- 健康检查的域名,需配置为后端服务器上真实对外提供服务的地址。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。需至少包含一个‘.’,且不允许以‘.’开头或结尾。域名每一级由字母、数字、‘-’、‘.’字符组成,且‘-’不得出现在每一级的头部或尾部。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为空,表示负载均衡使用各后端服务器的私网IP地址进行健康检查。
- enabled String
- 监听器是否开启健康检查功能。取值:on:开启(默认值)。off:不开启。
- healthy
Threshold Number - 健康检查的健康阈值。表示连续执行指定次数的健康检查,结果均为正常的后端服务器将判定为健康检查正常。单位:次,取值:2~10,默认值为 3。
- http
Code String - 健康检查正常的HTTP状态码,多个状态码间用半角逗号分隔。只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值如下:http2xx(默认值)。http3xx(默认值)。http4xx 。http5xx 。
- http
Version String - 健康检查HTTP协议版本,只有 HealthCheck.Protocol 为 HTTP 时才存在该参数。取值:HTTP1.0(使用API时,HTTP协议版本默认值)。HTTP1.1。
- interval Number
- 开启健康检查后,执行健康检查的时间间隔。 单位:秒,取值:1~300s,默认值为 2。
- method String
- 开启健康检查后,健康检查的方法。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。取值如下:GET:服务器需支持GET方法。HEAD(默认):服务器仅返回HEAD头部信息,可以降低后端性能消耗,但服务器需要支持HEAD方法。
- port Number
- 健康检查端口。支持取值:0(默认值):使用后端服务器端口进行健康检查。1-65535:使用您指定的端口进行健康检查。
- protocol String
- 健康检查协议,当前支持HTTP、TCP。默认值为 HTTP。
- timeout Number
- 健康检查的响应超时时间。表示如果后端服务器在指定的时间内没有正确响应,则判定为健康检查异常。单位:秒,取值:1~60,默认值为 2。
- unhealthy
Threshold Number - 健康检查的不健康阈值。表示连续执行指定次数的健康检查,结果均为异常的后端服务器将判定为健康检查异常。单位:次,取值:2~10,默认值为 3。
- uri String
- 健康检查的路径,需配置为后端服务器上真实对外提供的路径。只有 HealthCheck.Protocol 设置为 HTTP 时该参数生效。必须以字符‘/’开头。仅包含字母、数字、‘-’、‘_’、‘/’、‘.’、‘%’、‘?’、‘#’、‘&’、‘=’ 字符。长度限制为1 ~ 128个字符。不传入该参数或该参数不传入数值时,默认为“/”。
ServerGroupListener, ServerGroupListenerArgs
- Listener
Id string - 监听器的ID。
- Listener
Id string - 监听器的ID。
- listener
Id String - 监听器的ID。
- listener
Id string - 监听器的ID。
- listener_
id str - 监听器的ID。
- listener
Id String - 监听器的ID。
ServerGroupServer, ServerGroupServerArgs
- Description string
- 后端服务器的描述。
- Instance
Id string - 云服务器实例或网卡的ID。
- Ip string
- 后端服务器的私网IP地址。
- Port int
- 后端服务器接收请求的端口号。
- Remote
Enabled string - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- Server
Id string - 后端服务器ID。
- Type string
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- Weight int
- 后端服务器的权重。
- Description string
- 后端服务器的描述。
- Instance
Id string - 云服务器实例或网卡的ID。
- Ip string
- 后端服务器的私网IP地址。
- Port int
- 后端服务器接收请求的端口号。
- Remote
Enabled string - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- Server
Id string - 后端服务器ID。
- Type string
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- Weight int
- 后端服务器的权重。
- description String
- 后端服务器的描述。
- instance
Id String - 云服务器实例或网卡的ID。
- ip String
- 后端服务器的私网IP地址。
- port Integer
- 后端服务器接收请求的端口号。
- remote
Enabled String - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- server
Id String - 后端服务器ID。
- type String
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- weight Integer
- 后端服务器的权重。
- description string
- 后端服务器的描述。
- instance
Id string - 云服务器实例或网卡的ID。
- ip string
- 后端服务器的私网IP地址。
- port number
- 后端服务器接收请求的端口号。
- remote
Enabled string - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- server
Id string - 后端服务器ID。
- type string
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- weight number
- 后端服务器的权重。
- description str
- 后端服务器的描述。
- instance_
id str - 云服务器实例或网卡的ID。
- ip str
- 后端服务器的私网IP地址。
- port int
- 后端服务器接收请求的端口号。
- remote_
enabled str - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- server_
id str - 后端服务器ID。
- type str
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- weight int
- 后端服务器的权重。
- description String
- 后端服务器的描述。
- instance
Id String - 云服务器实例或网卡的ID。
- ip String
- 后端服务器的私网IP地址。
- port Number
- 后端服务器接收请求的端口号。
- remote
Enabled String - 是否开启远端IP功能。当后端服务器实例类型为IP地址,即 Type 取值为 ip 时,此字段有效。取值:on:开启。off(默认值):不开启。
- server
Id String - 后端服务器ID。
- type String
- 后端服务器实例类型。ecs:云服务器实例。eni:辅助网卡。ip:IP地址(仅 Ip 类型服务器组有效)。
- weight Number
- 后端服务器的权重。
ServerGroupStickySessionConfig, ServerGroupStickySessionConfigArgs
- string
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- int
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- Sticky
Session stringEnabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- Sticky
Session stringType - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
- string
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- int
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- Sticky
Session stringEnabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- Sticky
Session stringType - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
- String
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- Integer
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- sticky
Session StringEnabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- sticky
Session StringType - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
- string
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- number
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- sticky
Session stringEnabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- sticky
Session stringType - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
- str
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- int
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- sticky_
session_ strenabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- sticky_
session_ strtype - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
- String
- 服务配置的会话保持 Cookie 名称。仅在开启会话保持功能并选择重写 Cookie 时有效。 具体规则如下:Cookie 名称长度为1~200个字符。名称只能包含 ASCII 英文字母和数字字符,不能包含半角逗号(,)、半角分号(;)或空格,也不能以美元符号($)开头。当 tickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 server时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,该参数无效。
- Number
- 会话保持 Cookie 超时时间。仅在开启会话保持功能并选择植入 Cookie 时有效。 单位:秒。具体规则如下:超时时间的取值范围:1~86400。 默认值为:1000。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionConfig.StickySessionType 为 insert 时,此参数必填。当 StickySessionConfig.StickySessionEnabled 值为 on,且 StickySessionType 为 server 时,此参数无效。
- sticky
Session StringEnabled - 是否开启会话保持功能。on:开启;off(默认值):关闭。
- sticky
Session StringType - 对 Cookie 的处理方式。当 StickySessionConfig.StickySessionEnabled 值为 on 时,此字段参数必填。取值如下:insert:植入 Cookie;ALB 会记录客户端请求第一次转发到的后端服务器。ALB 在返回请求中植入 Cookie ,后续客户端请求携带此 Cookie,ALB 会将请求转发到之前记录的后端服务器上。server:重写 Cookie;开启重写 Cookie 的会话保持后,在客户端请求第一次转发到后端服务器后,ALB 在返回请求中发现您自定义的 Cookie 时,会对原来的 Cookie 进行重写。后续客户端请求携带改写后的 Cookie,ALB 会将请求转发到之前记录的后端服务器上。
ServerGroupTag, ServerGroupTagArgs
Import
$ pulumi import volcenginecc:alb/serverGroup:ServerGroup example "server_group_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
