alicloud_slb_backend_servers
更新时间:
This data source provides the server load balancer backend servers related to a server load balancer..
-> NOTE: Available in 1.53.0+
Example Usage
data "alicloud_slb_backend_servers" "sample_ds" {
load_balancer_id = "${alicloud_slb_load_balancer.sample_slb.id}"
}
output "first_slb_backend_server_id" {
value = "${data.alicloud_slb_backend_servers.sample_ds.backend_servers.0.id}"
}
Argument Reference
The following arguments are supported:
load_balancer_id
- ID of the SLB with attachments.ids
- (Optional) List of attached ECS instance IDs.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
backend_servers
-id
- backend server ID.weight
- Weight associated to the ECS instance.server_type
- Type of the backend server.
文档内容是否对您有帮助?