alicloud_ecs_dedicated_hosts

This data source provides a list of ECS Dedicated Hosts in an Alibaba Cloud account according to the specified filters.

Example Usage

# Declare the data source
data "alicloud_ecs_dedicated_hosts" "dedicated_hosts_ds" {
  name_regex = "tf-testAcc"
  dedicated_host_type = "ddh.g5"
  status = "Available"
}

output "first_dedicated_hosts_id" {
  value = "${data.alicloud_ecs_dedicated_hosts.dedicated_hosts_ds.hosts.0.id}"
}

Argument Reference

The following arguments are supported:

Block operation_locks

The operation_locks supports the following:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: