published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
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,
server_group_name: Optional[str] = None,
vpc_id: Optional[str] = None,
proxy_protocol_type: Optional[str] = None,
scheduler: Optional[str] = None,
description: Optional[str] = None,
health_check: Optional[ServerGroupHealthCheckArgs] = None,
ip_address_version: Optional[str] = None,
preserve_client_ip_enabled: Optional[bool] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
any_port_enabled: Optional[bool] = None,
connection_drain_timeout: Optional[int] = None,
connection_drain_enabled: Optional[bool] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
session_persistence_enabled: Optional[bool] = None,
session_persistence_timeout: Optional[int] = None,
tags: Optional[Sequence[ServerGroupTagArgs]] = None,
timestamp_remove_enabled: Optional[bool] = None,
type: Optional[str] = None,
bypass_security_group_enabled: Optional[bool] = None)func NewServerGroup(ctx *Context, name string, args ServerGroupArgs, opts ...ResourceOption) (*ServerGroup, error)public ServerGroup(string name, ServerGroupArgs args, CustomResourceOptions? opts = null)
public ServerGroup(String name, ServerGroupArgs args)
public ServerGroup(String name, ServerGroupArgs args, CustomResourceOptions options)
type: volcengine:nlb: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 exampleserverGroupResourceResourceFromNlbserverGroup = new Volcengine.Nlb.ServerGroup("exampleserverGroupResourceResourceFromNlbserverGroup", new()
{
ServerGroupName = "string",
VpcId = "string",
ProxyProtocolType = "string",
Scheduler = "string",
Description = "string",
HealthCheck = new Volcengine.Nlb.Inputs.ServerGroupHealthCheckArgs
{
Domain = "string",
Enabled = false,
HealthyThreshold = 0,
HttpCode = "string",
Interval = 0,
Method = "string",
Port = 0,
Timeout = 0,
Type = "string",
UdpConnectTimeout = 0,
UdpExpect = "string",
UdpRequest = "string",
UnhealthyThreshold = 0,
Uri = "string",
},
IpAddressVersion = "string",
PreserveClientIpEnabled = false,
ProjectName = "string",
Protocol = "string",
AnyPortEnabled = false,
ConnectionDrainTimeout = 0,
ConnectionDrainEnabled = false,
Servers = new[]
{
new Volcengine.Nlb.Inputs.ServerGroupServerArgs
{
Description = "string",
InstanceId = "string",
Ip = "string",
Port = 0,
ServerId = "string",
Type = "string",
Weight = 0,
ZoneId = "string",
},
},
SessionPersistenceEnabled = false,
SessionPersistenceTimeout = 0,
Tags = new[]
{
new Volcengine.Nlb.Inputs.ServerGroupTagArgs
{
Key = "string",
Value = "string",
},
},
TimestampRemoveEnabled = false,
Type = "string",
BypassSecurityGroupEnabled = false,
});
example, err := nlb.NewServerGroup(ctx, "exampleserverGroupResourceResourceFromNlbserverGroup", &nlb.ServerGroupArgs{
ServerGroupName: pulumi.String("string"),
VpcId: pulumi.String("string"),
ProxyProtocolType: pulumi.String("string"),
Scheduler: pulumi.String("string"),
Description: pulumi.String("string"),
HealthCheck: &nlb.ServerGroupHealthCheckArgs{
Domain: pulumi.String("string"),
Enabled: pulumi.Bool(false),
HealthyThreshold: pulumi.Int(0),
HttpCode: pulumi.String("string"),
Interval: pulumi.Int(0),
Method: pulumi.String("string"),
Port: pulumi.Int(0),
Timeout: pulumi.Int(0),
Type: pulumi.String("string"),
UdpConnectTimeout: pulumi.Int(0),
UdpExpect: pulumi.String("string"),
UdpRequest: pulumi.String("string"),
UnhealthyThreshold: pulumi.Int(0),
Uri: pulumi.String("string"),
},
IpAddressVersion: pulumi.String("string"),
PreserveClientIpEnabled: pulumi.Bool(false),
ProjectName: pulumi.String("string"),
Protocol: pulumi.String("string"),
AnyPortEnabled: pulumi.Bool(false),
ConnectionDrainTimeout: pulumi.Int(0),
ConnectionDrainEnabled: pulumi.Bool(false),
Servers: nlb.ServerGroupServerArray{
&nlb.ServerGroupServerArgs{
Description: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Ip: pulumi.String("string"),
Port: pulumi.Int(0),
ServerId: pulumi.String("string"),
Type: pulumi.String("string"),
Weight: pulumi.Int(0),
ZoneId: pulumi.String("string"),
},
},
SessionPersistenceEnabled: pulumi.Bool(false),
SessionPersistenceTimeout: pulumi.Int(0),
Tags: nlb.ServerGroupTagArray{
&nlb.ServerGroupTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
TimestampRemoveEnabled: pulumi.Bool(false),
Type: pulumi.String("string"),
BypassSecurityGroupEnabled: pulumi.Bool(false),
})
var exampleserverGroupResourceResourceFromNlbserverGroup = new com.pulumi.volcengine.nlb.ServerGroup("exampleserverGroupResourceResourceFromNlbserverGroup", com.pulumi.volcengine.nlb.ServerGroupArgs.builder()
.serverGroupName("string")
.vpcId("string")
.proxyProtocolType("string")
.scheduler("string")
.description("string")
.healthCheck(ServerGroupHealthCheckArgs.builder()
.domain("string")
.enabled(false)
.healthyThreshold(0)
.httpCode("string")
.interval(0)
.method("string")
.port(0)
.timeout(0)
.type("string")
.udpConnectTimeout(0)
.udpExpect("string")
.udpRequest("string")
.unhealthyThreshold(0)
.uri("string")
.build())
.ipAddressVersion("string")
.preserveClientIpEnabled(false)
.projectName("string")
.protocol("string")
.anyPortEnabled(false)
.connectionDrainTimeout(0)
.connectionDrainEnabled(false)
.servers(ServerGroupServerArgs.builder()
.description("string")
.instanceId("string")
.ip("string")
.port(0)
.serverId("string")
.type("string")
.weight(0)
.zoneId("string")
.build())
.sessionPersistenceEnabled(false)
.sessionPersistenceTimeout(0)
.tags(ServerGroupTagArgs.builder()
.key("string")
.value("string")
.build())
.timestampRemoveEnabled(false)
.type("string")
.bypassSecurityGroupEnabled(false)
.build());
exampleserver_group_resource_resource_from_nlbserver_group = volcengine.nlb.ServerGroup("exampleserverGroupResourceResourceFromNlbserverGroup",
server_group_name="string",
vpc_id="string",
proxy_protocol_type="string",
scheduler="string",
description="string",
health_check={
"domain": "string",
"enabled": False,
"healthy_threshold": 0,
"http_code": "string",
"interval": 0,
"method": "string",
"port": 0,
"timeout": 0,
"type": "string",
"udp_connect_timeout": 0,
"udp_expect": "string",
"udp_request": "string",
"unhealthy_threshold": 0,
"uri": "string",
},
ip_address_version="string",
preserve_client_ip_enabled=False,
project_name="string",
protocol="string",
any_port_enabled=False,
connection_drain_timeout=0,
connection_drain_enabled=False,
servers=[{
"description": "string",
"instance_id": "string",
"ip": "string",
"port": 0,
"server_id": "string",
"type": "string",
"weight": 0,
"zone_id": "string",
}],
session_persistence_enabled=False,
session_persistence_timeout=0,
tags=[{
"key": "string",
"value": "string",
}],
timestamp_remove_enabled=False,
type="string",
bypass_security_group_enabled=False)
const exampleserverGroupResourceResourceFromNlbserverGroup = new volcengine.nlb.ServerGroup("exampleserverGroupResourceResourceFromNlbserverGroup", {
serverGroupName: "string",
vpcId: "string",
proxyProtocolType: "string",
scheduler: "string",
description: "string",
healthCheck: {
domain: "string",
enabled: false,
healthyThreshold: 0,
httpCode: "string",
interval: 0,
method: "string",
port: 0,
timeout: 0,
type: "string",
udpConnectTimeout: 0,
udpExpect: "string",
udpRequest: "string",
unhealthyThreshold: 0,
uri: "string",
},
ipAddressVersion: "string",
preserveClientIpEnabled: false,
projectName: "string",
protocol: "string",
anyPortEnabled: false,
connectionDrainTimeout: 0,
connectionDrainEnabled: false,
servers: [{
description: "string",
instanceId: "string",
ip: "string",
port: 0,
serverId: "string",
type: "string",
weight: 0,
zoneId: "string",
}],
sessionPersistenceEnabled: false,
sessionPersistenceTimeout: 0,
tags: [{
key: "string",
value: "string",
}],
timestampRemoveEnabled: false,
type: "string",
bypassSecurityGroupEnabled: false,
});
type: volcengine:nlb:ServerGroup
properties:
anyPortEnabled: false
bypassSecurityGroupEnabled: false
connectionDrainEnabled: false
connectionDrainTimeout: 0
description: string
healthCheck:
domain: string
enabled: false
healthyThreshold: 0
httpCode: string
interval: 0
method: string
port: 0
timeout: 0
type: string
udpConnectTimeout: 0
udpExpect: string
udpRequest: string
unhealthyThreshold: 0
uri: string
ipAddressVersion: string
preserveClientIpEnabled: false
projectName: string
protocol: string
proxyProtocolType: string
scheduler: string
serverGroupName: string
servers:
- description: string
instanceId: string
ip: string
port: 0
serverId: string
type: string
weight: 0
zoneId: string
sessionPersistenceEnabled: false
sessionPersistenceTimeout: 0
tags:
- key: string
value: string
timestampRemoveEnabled: false
type: 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:
- Server
Group stringName - The name of the server group.
- Vpc
Id string - The id of the VPC to which the server group belongs.
- Any
Port boolEnabled - Whether to enable full port forwarding. Default is false.
- Bypass
Security boolGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- Connection
Drain boolEnabled - Whether to enable connection graceful interruption. Default is false.
- Connection
Drain intTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- Description string
- The description of the server group.
- Health
Check ServerGroup Health Check - The health check config of the server group.
- Ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - Preserve
Client boolIp Enabled - Whether to enable source address retention. Default is true.
- Project
Name string - The project name of the server group.
- Protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - Proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - Servers
List<Server
Group Server> - The backend servers of the server group.
- Session
Persistence boolEnabled - Whether to enable session persistence. Default is false.
- Session
Persistence intTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
-
List<Server
Group Tag> - Tags.
- Timestamp
Remove boolEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- Type string
- The type of the server group. Valid values:
instance(default),ip.
- Server
Group stringName - The name of the server group.
- Vpc
Id string - The id of the VPC to which the server group belongs.
- Any
Port boolEnabled - Whether to enable full port forwarding. Default is false.
- Bypass
Security boolGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- Connection
Drain boolEnabled - Whether to enable connection graceful interruption. Default is false.
- Connection
Drain intTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- Description string
- The description of the server group.
- Health
Check ServerGroup Health Check Args - The health check config of the server group.
- Ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - Preserve
Client boolIp Enabled - Whether to enable source address retention. Default is true.
- Project
Name string - The project name of the server group.
- Protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - Proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - Servers
[]Server
Group Server Args - The backend servers of the server group.
- Session
Persistence boolEnabled - Whether to enable session persistence. Default is false.
- Session
Persistence intTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
-
[]Server
Group Tag Args - Tags.
- Timestamp
Remove boolEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- Type string
- The type of the server group. Valid values:
instance(default),ip.
- server
Group StringName - The name of the server group.
- vpc
Id String - The id of the VPC to which the server group belongs.
- any
Port BooleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security BooleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain BooleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain IntegerTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description String
- The description of the server group.
- health
Check ServerGroup Health Check - The health check config of the server group.
- ip
Address StringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client BooleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name String - The project name of the server group.
- protocol String
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol StringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler String
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - servers
List<Server
Group Server> - The backend servers of the server group.
- session
Persistence BooleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence IntegerTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
-
List<Server
Group Tag> - Tags.
- timestamp
Remove BooleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type String
- The type of the server group. Valid values:
instance(default),ip.
- server
Group stringName - The name of the server group.
- vpc
Id string - The id of the VPC to which the server group belongs.
- any
Port booleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security booleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain booleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain numberTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description string
- The description of the server group.
- health
Check ServerGroup Health Check - The health check config of the server group.
- ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client booleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name string - The project name of the server group.
- protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - servers
Server
Group Server[] - The backend servers of the server group.
- session
Persistence booleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence numberTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
-
Server
Group Tag[] - Tags.
- timestamp
Remove booleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type string
- The type of the server group. Valid values:
instance(default),ip.
- server_
group_ strname - The name of the server group.
- vpc_
id str - The id of the VPC to which the server group belongs.
- any_
port_ boolenabled - Whether to enable full port forwarding. Default is false.
- bypass_
security_ boolgroup_ enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection_
drain_ boolenabled - Whether to enable connection graceful interruption. Default is false.
- connection_
drain_ inttimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description str
- The description of the server group.
- health_
check ServerGroup Health Check Args - The health check config of the server group.
- ip_
address_ strversion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve_
client_ boolip_ enabled - Whether to enable source address retention. Default is true.
- project_
name str - The project name of the server group.
- protocol str
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy_
protocol_ strtype - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler str
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - servers
Sequence[Server
Group Server Args] - The backend servers of the server group.
- session_
persistence_ boolenabled - Whether to enable session persistence. Default is false.
- session_
persistence_ inttimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
-
Sequence[Server
Group Tag Args] - Tags.
- timestamp_
remove_ boolenabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type str
- The type of the server group. Valid values:
instance(default),ip.
- server
Group StringName - The name of the server group.
- vpc
Id String - The id of the VPC to which the server group belongs.
- any
Port BooleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security BooleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain BooleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain NumberTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description String
- The description of the server group.
- health
Check Property Map - The health check config of the server group.
- ip
Address StringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client BooleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name String - The project name of the server group.
- protocol String
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol StringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler String
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - servers List<Property Map>
- The backend servers of the server group.
- session
Persistence BooleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence NumberTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- List<Property Map>
- Tags.
- timestamp
Remove BooleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type String
- The type of the server group. Valid values:
instance(default),ip.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Count int - The server count of the server group.
- Status string
- The status of the server group.
- Id string
- The provider-assigned unique ID for this managed resource.
- Server
Count int - The server count of the server group.
- Status string
- The status of the server group.
- id String
- The provider-assigned unique ID for this managed resource.
- server
Count Integer - The server count of the server group.
- status String
- The status of the server group.
- id string
- The provider-assigned unique ID for this managed resource.
- server
Count number - The server count of the server group.
- status string
- The status of the server group.
- id str
- The provider-assigned unique ID for this managed resource.
- server_
count int - The server count of the server group.
- status str
- The status of the server group.
- id String
- The provider-assigned unique ID for this managed resource.
- server
Count Number - The server count of the server group.
- status String
- The status of the server group.
Look up Existing ServerGroup Resource
Get an existing ServerGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerGroupState, opts?: CustomResourceOptions): ServerGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
any_port_enabled: Optional[bool] = None,
bypass_security_group_enabled: Optional[bool] = None,
connection_drain_enabled: Optional[bool] = None,
connection_drain_timeout: Optional[int] = None,
description: Optional[str] = None,
health_check: Optional[ServerGroupHealthCheckArgs] = None,
ip_address_version: Optional[str] = None,
preserve_client_ip_enabled: Optional[bool] = None,
project_name: Optional[str] = None,
protocol: Optional[str] = None,
proxy_protocol_type: Optional[str] = None,
scheduler: Optional[str] = None,
server_count: Optional[int] = None,
server_group_name: Optional[str] = None,
servers: Optional[Sequence[ServerGroupServerArgs]] = None,
session_persistence_enabled: Optional[bool] = None,
session_persistence_timeout: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Sequence[ServerGroupTagArgs]] = None,
timestamp_remove_enabled: Optional[bool] = None,
type: 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: volcengine:nlb: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.
- Any
Port boolEnabled - Whether to enable full port forwarding. Default is false.
- Bypass
Security boolGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- Connection
Drain boolEnabled - Whether to enable connection graceful interruption. Default is false.
- Connection
Drain intTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- Description string
- The description of the server group.
- Health
Check ServerGroup Health Check - The health check config of the server group.
- Ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - Preserve
Client boolIp Enabled - Whether to enable source address retention. Default is true.
- Project
Name string - The project name of the server group.
- Protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - Proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - Server
Count int - The server count of the server group.
- Server
Group stringName - The name of the server group.
- Servers
List<Server
Group Server> - The backend servers of the server group.
- Session
Persistence boolEnabled - Whether to enable session persistence. Default is false.
- Session
Persistence intTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- Status string
- The status of the server group.
-
List<Server
Group Tag> - Tags.
- Timestamp
Remove boolEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- Type string
- The type of the server group. Valid values:
instance(default),ip. - Vpc
Id string - The id of the VPC to which the server group belongs.
- Any
Port boolEnabled - Whether to enable full port forwarding. Default is false.
- Bypass
Security boolGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- Connection
Drain boolEnabled - Whether to enable connection graceful interruption. Default is false.
- Connection
Drain intTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- Description string
- The description of the server group.
- Health
Check ServerGroup Health Check Args - The health check config of the server group.
- Ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - Preserve
Client boolIp Enabled - Whether to enable source address retention. Default is true.
- Project
Name string - The project name of the server group.
- Protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - Proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - Scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - Server
Count int - The server count of the server group.
- Server
Group stringName - The name of the server group.
- Servers
[]Server
Group Server Args - The backend servers of the server group.
- Session
Persistence boolEnabled - Whether to enable session persistence. Default is false.
- Session
Persistence intTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- Status string
- The status of the server group.
-
[]Server
Group Tag Args - Tags.
- Timestamp
Remove boolEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- Type string
- The type of the server group. Valid values:
instance(default),ip. - Vpc
Id string - The id of the VPC to which the server group belongs.
- any
Port BooleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security BooleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain BooleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain IntegerTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description String
- The description of the server group.
- health
Check ServerGroup Health Check - The health check config of the server group.
- ip
Address StringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client BooleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name String - The project name of the server group.
- protocol String
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol StringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler String
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - server
Count Integer - The server count of the server group.
- server
Group StringName - The name of the server group.
- servers
List<Server
Group Server> - The backend servers of the server group.
- session
Persistence BooleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence IntegerTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- status String
- The status of the server group.
-
List<Server
Group Tag> - Tags.
- timestamp
Remove BooleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type String
- The type of the server group. Valid values:
instance(default),ip. - vpc
Id String - The id of the VPC to which the server group belongs.
- any
Port booleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security booleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain booleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain numberTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description string
- The description of the server group.
- health
Check ServerGroup Health Check - The health check config of the server group.
- ip
Address stringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client booleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name string - The project name of the server group.
- protocol string
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol stringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler string
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - server
Count number - The server count of the server group.
- server
Group stringName - The name of the server group.
- servers
Server
Group Server[] - The backend servers of the server group.
- session
Persistence booleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence numberTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- status string
- The status of the server group.
-
Server
Group Tag[] - Tags.
- timestamp
Remove booleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type string
- The type of the server group. Valid values:
instance(default),ip. - vpc
Id string - The id of the VPC to which the server group belongs.
- any_
port_ boolenabled - Whether to enable full port forwarding. Default is false.
- bypass_
security_ boolgroup_ enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection_
drain_ boolenabled - Whether to enable connection graceful interruption. Default is false.
- connection_
drain_ inttimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description str
- The description of the server group.
- health_
check ServerGroup Health Check Args - The health check config of the server group.
- ip_
address_ strversion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve_
client_ boolip_ enabled - Whether to enable source address retention. Default is true.
- project_
name str - The project name of the server group.
- protocol str
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy_
protocol_ strtype - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler str
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - server_
count int - The server count of the server group.
- server_
group_ strname - The name of the server group.
- servers
Sequence[Server
Group Server Args] - The backend servers of the server group.
- session_
persistence_ boolenabled - Whether to enable session persistence. Default is false.
- session_
persistence_ inttimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- status str
- The status of the server group.
-
Sequence[Server
Group Tag Args] - Tags.
- timestamp_
remove_ boolenabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type str
- The type of the server group. Valid values:
instance(default),ip. - vpc_
id str - The id of the VPC to which the server group belongs.
- any
Port BooleanEnabled - Whether to enable full port forwarding. Default is false.
- bypass
Security BooleanGroup Enabled - Whether to enable the function of passing through the backend security group. Default is false.
- connection
Drain BooleanEnabled - Whether to enable connection graceful interruption. Default is false.
- connection
Drain NumberTimeout - Connection graceful interruption timeout. Unit: second. Value range: 0 ~ 900. Default is 0.
- description String
- The description of the server group.
- health
Check Property Map - The health check config of the server group.
- ip
Address StringVersion - The ip address version of the server group. Valid values:
ipv4(default),ipv6. - preserve
Client BooleanIp Enabled - Whether to enable source address retention. Default is true.
- project
Name String - The project name of the server group.
- protocol String
- The protocol of the server group. Valid values:
TCP(default),UDP,TCP_SSL. - proxy
Protocol StringType - Whether to enable Proxy Protocol. Valid values:
off(default),standard. - scheduler String
- The scheduling algorithm. Valid values:
wrr(default),wlc,sh. - server
Count Number - The server count of the server group.
- server
Group StringName - The name of the server group.
- servers List<Property Map>
- The backend servers of the server group.
- session
Persistence BooleanEnabled - Whether to enable session persistence. Default is false.
- session
Persistence NumberTimeout - Session persistence timeout. Unit: second. Value range: 1 ~ 3600. Default is 1000.
- status String
- The status of the server group.
- List<Property Map>
- Tags.
- timestamp
Remove BooleanEnabled - Whether to enable the function of removing the TCP/HTTP/HTTPS packet timestamp. Default is false.
- type String
- The type of the server group. Valid values:
instance(default),ip. - vpc
Id String - The id of the VPC to which the server group belongs.
Supporting Types
ServerGroupHealthCheck, ServerGroupHealthCheckArgs
- Domain string
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - Enabled bool
- Whether to enable health check. Valid values:
true(default),false. - Healthy
Threshold int - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- Http
Code string - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - Interval int
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- Method string
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - Port int
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- Timeout int
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- Type string
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - Udp
Connect intTimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - Udp
Expect string - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - Udp
Request string - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - Unhealthy
Threshold int - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- Uri string
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
- Domain string
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - Enabled bool
- Whether to enable health check. Valid values:
true(default),false. - Healthy
Threshold int - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- Http
Code string - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - Interval int
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- Method string
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - Port int
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- Timeout int
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- Type string
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - Udp
Connect intTimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - Udp
Expect string - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - Udp
Request string - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - Unhealthy
Threshold int - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- Uri string
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
- domain String
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - enabled Boolean
- Whether to enable health check. Valid values:
true(default),false. - healthy
Threshold Integer - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- http
Code String - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - interval Integer
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- method String
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - port Integer
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- timeout Integer
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- type String
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - udp
Connect IntegerTimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - udp
Expect String - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - udp
Request String - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - unhealthy
Threshold Integer - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- uri String
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
- domain string
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - enabled boolean
- Whether to enable health check. Valid values:
true(default),false. - healthy
Threshold number - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- http
Code string - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - interval number
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- method string
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - port number
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- timeout number
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- type string
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - udp
Connect numberTimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - udp
Expect string - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - udp
Request string - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - unhealthy
Threshold number - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- uri string
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
- domain str
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - enabled bool
- Whether to enable health check. Valid values:
true(default),false. - healthy_
threshold int - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- http_
code str - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - interval int
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- method str
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - port int
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- timeout int
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- type str
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - udp_
connect_ inttimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - udp_
expect str - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - udp_
request str - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - unhealthy_
threshold int - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- uri str
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
- domain String
- The domain of health check. Only available when
HealthCheck.TypeisHTTP. - enabled Boolean
- Whether to enable health check. Valid values:
true(default),false. - healthy
Threshold Number - The healthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- http
Code String - The http code of health check. Valid values:
http_2xx,http_3xx,http_4xx,http_5xx. Default ishttp_2xx,http_3xx. Only available whenHealthCheck.TypeisHTTP. - interval Number
- The interval of health check. Unit: second. Value range: 1 ~ 300. Default is 2.
- method String
- The method of health check. Valid values:
GET(default),HEAD. Only available whenHealthCheck.TypeisHTTP. - port Number
- The port of health check. Value range: 1 ~ 65535. Default is 0, which means using the port of the backend server.
- timeout Number
- The response timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 2.
- type String
- The type of the health check. Valid values:
TCP(default),HTTP,UDP. - udp
Connect NumberTimeout - The udp connect timeout of health check. Unit: second. Value range: 1 ~ 60. Default is 3. Only available when
HealthCheck.TypeisUDP. - udp
Expect String - The udp expect of health check. Only available when
HealthCheck.TypeisUDP. - udp
Request String - The udp request of health check. Only available when
HealthCheck.TypeisUDP. - unhealthy
Threshold Number - The unhealthy threshold of health check. Value range: 2 ~ 10. Default is 3.
- uri String
- The uri of health check. Must start with
/. Only available whenHealthCheck.TypeisHTTP.
ServerGroupServer, ServerGroupServerArgs
- Description string
- The description of the backend server.
- Instance
Id string - The instance ID of the backend server.
- Ip string
- The IP address of the backend server.
- Port int
- The port of the backend server.
- Server
Id string - The ID of the backend server.
- Type string
- The type of the backend server. Valid values:
ecs,eni,ip. - Weight int
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- Zone
Id string - The zone ID of the backend server.
- Description string
- The description of the backend server.
- Instance
Id string - The instance ID of the backend server.
- Ip string
- The IP address of the backend server.
- Port int
- The port of the backend server.
- Server
Id string - The ID of the backend server.
- Type string
- The type of the backend server. Valid values:
ecs,eni,ip. - Weight int
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- Zone
Id string - The zone ID of the backend server.
- description String
- The description of the backend server.
- instance
Id String - The instance ID of the backend server.
- ip String
- The IP address of the backend server.
- port Integer
- The port of the backend server.
- server
Id String - The ID of the backend server.
- type String
- The type of the backend server. Valid values:
ecs,eni,ip. - weight Integer
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- zone
Id String - The zone ID of the backend server.
- description string
- The description of the backend server.
- instance
Id string - The instance ID of the backend server.
- ip string
- The IP address of the backend server.
- port number
- The port of the backend server.
- server
Id string - The ID of the backend server.
- type string
- The type of the backend server. Valid values:
ecs,eni,ip. - weight number
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- zone
Id string - The zone ID of the backend server.
- description str
- The description of the backend server.
- instance_
id str - The instance ID of the backend server.
- ip str
- The IP address of the backend server.
- port int
- The port of the backend server.
- server_
id str - The ID of the backend server.
- type str
- The type of the backend server. Valid values:
ecs,eni,ip. - weight int
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- zone_
id str - The zone ID of the backend server.
- description String
- The description of the backend server.
- instance
Id String - The instance ID of the backend server.
- ip String
- The IP address of the backend server.
- port Number
- The port of the backend server.
- server
Id String - The ID of the backend server.
- type String
- The type of the backend server. Valid values:
ecs,eni,ip. - weight Number
- The weight of the backend server. Value range: 0 ~ 100. Default is 100.
- zone
Id String - The zone ID of the backend server.
ServerGroupTag, ServerGroupTagArgs
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
published on Friday, Mar 13, 2026 by Volcengine
