alicloud.slb.ServerGroupServerAttachment
Explore with Pulumi AI
NOTE: Available in v1.163.0+.
For information about server group server attachment and how to use it, see Configure a server group server attachment.
NOTE: Applying this resource may conflict with applying
alicloud.slb.Listener
, and thealicloud.slb.Listener
block should usedepends_on = [alicloud_slb_server_group_server_attachment.xxx]
to avoid it.
Create ServerGroupServerAttachment Resource
new ServerGroupServerAttachment(name: string, args: ServerGroupServerAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ServerGroupServerAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
port: Optional[int] = None,
server_group_id: Optional[str] = None,
server_id: Optional[str] = None,
type: Optional[str] = None,
weight: Optional[int] = None)
@overload
def ServerGroupServerAttachment(resource_name: str,
args: ServerGroupServerAttachmentArgs,
opts: Optional[ResourceOptions] = None)
func NewServerGroupServerAttachment(ctx *Context, name string, args ServerGroupServerAttachmentArgs, opts ...ResourceOption) (*ServerGroupServerAttachment, error)
public ServerGroupServerAttachment(string name, ServerGroupServerAttachmentArgs args, CustomResourceOptions? opts = null)
public ServerGroupServerAttachment(String name, ServerGroupServerAttachmentArgs args)
public ServerGroupServerAttachment(String name, ServerGroupServerAttachmentArgs args, CustomResourceOptions options)
type: alicloud:slb:ServerGroupServerAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerGroupServerAttachmentArgs
- 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 ServerGroupServerAttachmentArgs
- 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 ServerGroupServerAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerGroupServerAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerGroupServerAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ServerGroupServerAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ServerGroupServerAttachment resource accepts the following input properties:
- Port int
- The port that is used by the backend server. Valid values:
1
to65535
. - Server
Group stringId - The ID of the server group.
- Server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- Description string
- The description of the backend server.
- Type string
- The type of backend server. Valid values:
ecs
,eni
. - Weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- Port int
- The port that is used by the backend server. Valid values:
1
to65535
. - Server
Group stringId - The ID of the server group.
- Server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- Description string
- The description of the backend server.
- Type string
- The type of backend server. Valid values:
ecs
,eni
. - Weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- port Integer
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group StringId - The ID of the server group.
- server
Id String - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- description String
- The description of the backend server.
- type String
- The type of backend server. Valid values:
ecs
,eni
. - weight Integer
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- port number
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group stringId - The ID of the server group.
- server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- description string
- The description of the backend server.
- type string
- The type of backend server. Valid values:
ecs
,eni
. - weight number
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- port int
- The port that is used by the backend server. Valid values:
1
to65535
. - server_
group_ strid - The ID of the server group.
- server_
id str - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- description str
- The description of the backend server.
- type str
- The type of backend server. Valid values:
ecs
,eni
. - weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- port Number
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group StringId - The ID of the server group.
- server
Id String - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- description String
- The description of the backend server.
- type String
- The type of backend server. Valid values:
ecs
,eni
. - weight Number
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerGroupServerAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServerGroupServerAttachment Resource
Get an existing ServerGroupServerAttachment 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?: ServerGroupServerAttachmentState, opts?: CustomResourceOptions): ServerGroupServerAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
port: Optional[int] = None,
server_group_id: Optional[str] = None,
server_id: Optional[str] = None,
type: Optional[str] = None,
weight: Optional[int] = None) -> ServerGroupServerAttachment
func GetServerGroupServerAttachment(ctx *Context, name string, id IDInput, state *ServerGroupServerAttachmentState, opts ...ResourceOption) (*ServerGroupServerAttachment, error)
public static ServerGroupServerAttachment Get(string name, Input<string> id, ServerGroupServerAttachmentState? state, CustomResourceOptions? opts = null)
public static ServerGroupServerAttachment get(String name, Output<String> id, ServerGroupServerAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- The description of the backend server.
- Port int
- The port that is used by the backend server. Valid values:
1
to65535
. - Server
Group stringId - The ID of the server group.
- Server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- Type string
- The type of backend server. Valid values:
ecs
,eni
. - Weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- Description string
- The description of the backend server.
- Port int
- The port that is used by the backend server. Valid values:
1
to65535
. - Server
Group stringId - The ID of the server group.
- Server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- Type string
- The type of backend server. Valid values:
ecs
,eni
. - Weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- description String
- The description of the backend server.
- port Integer
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group StringId - The ID of the server group.
- server
Id String - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- type String
- The type of backend server. Valid values:
ecs
,eni
. - weight Integer
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- description string
- The description of the backend server.
- port number
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group stringId - The ID of the server group.
- server
Id string - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- type string
- The type of backend server. Valid values:
ecs
,eni
. - weight number
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- description str
- The description of the backend server.
- port int
- The port that is used by the backend server. Valid values:
1
to65535
. - server_
group_ strid - The ID of the server group.
- server_
id str - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- type str
- The type of backend server. Valid values:
ecs
,eni
. - weight int
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
- description String
- The description of the backend server.
- port Number
- The port that is used by the backend server. Valid values:
1
to65535
. - server
Group StringId - The ID of the server group.
- server
Id String - The ID of the backend server. You can specify the ID of an Elastic Compute Service (ECS) instance or an elastic network interface (ENI).
- type String
- The type of backend server. Valid values:
ecs
,eni
. - weight Number
- The weight of the backend server. Valid values:
0
to100
. Default value:100
. If the value is set to0
, no requests are forwarded to the backend server.
Import
Load balancer backend server group server attachment can be imported using the id, e.g.
$ pulumi import alicloud:slb/serverGroupServerAttachment:ServerGroupServerAttachment example <server_group_id>:<server_id>:<port>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.