alicloud_ecs_capacity_reservations

This data source provides Ecs Capacity Reservation available to the user.

Example Usage

data "alicloud_ecs_capacity_reservations" "default" {
  ids           = ["${alicloud_ecs_capacity_reservation.default.id}"]
  name_regex    = alicloud_ecs_capacity_reservation.default.name
  instance_type = "ecs.c6.large"
  platform      = "linux"
}

output "alicloud_ecs_capacity_reservation_example_id" {
  value = data.alicloud_ecs_capacity_reservations.default.reservations.0.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

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