ServerGroupServer

data class ServerGroupServer(val description: String? = null, val port: Int? = null, val remoteIpEnabled: Boolean? = null, val serverId: String, val serverIp: String? = null, val serverType: String, val status: String? = null, val weight: Int? = null)

Constructors

Link copied to clipboard
fun ServerGroupServer(description: String? = null, port: Int? = null, remoteIpEnabled: Boolean? = null, serverId: String, serverIp: String? = null, serverType: String, status: String? = null, weight: Int? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val description: String? = null

The description of the server.

Link copied to clipboard
val port: Int? = null

The port that is used by the server. Valid values: 1 to 65535. Note: This parameter is required if the server_type parameter is set to Ecs, Eni, Eci, or Ip. You do not need to configure this parameter if you set server_type to Fc.

Link copied to clipboard

Specifies whether to enable the remote IP address feature. You can specify up to 40 servers in each call. Note: If server_type is set to Ip, this parameter is available.

Link copied to clipboard

The ID of the backend server.

Link copied to clipboard
val serverIp: String? = null

The IP address of an Elastic Compute Service (ECS) instance, an elastic network interface (ENI), or an elastic container instance. Note: If server_group_type is set to Fc, you do not need to configure parameters, otherwise this attribute is required. If server_group_type is set to Ip, the value of this property is the same as the server_id value.

Link copied to clipboard

The type of the server. The type of the server. Valid values:

Link copied to clipboard
val status: String? = null

The status of the backend server. Valid values:

Link copied to clipboard
val weight: Int? = null

The weight of the server. Valid values: 0 to 100. Default value: 100. If the value is set to 0, no requests are forwarded to the server. Note: You do not need to set this parameter if you set server_type to Fc.