# 

# exoscale_instance_pool (Data Source)

Fetch Exoscale [Instance Pools](https://community.exoscale.com/product/compute/instances/how-to/instance-pools/) data.

Corresponding resource: [exoscale_instance_pool]({{< ref "../resources/instance_pool.md" >}}).

## Example Usage

```terraform
data "exoscale_instance_pool" "my_instance_pool" {
  zone = "ch-gva-2"
  name = "my-instance-pool"
}

output "my_instance_pool_id" {
  value = data.exoscale_instance_pool.my_instance_pool.id
}
```

Please refer to the [examples](https://github.com/exoscale/terraform-provider-exoscale/tree/master/examples/)
directory for complete configuration examples.

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `zone` (String) The Exoscale [Zone](https://www.exoscale.com/datacenters/) name.

### Optional

- `id` (String) The instance pool ID to match (conflicts with `name`).
- `labels` (Map of String) A map of key/value labels.
- `name` (String) The pool name to match (conflicts with `id`).

### Read-Only

- `affinity_group_ids` (Set of String, Deprecated) The list of attached [exoscale_anti_affinity_group]({{< ref "../resources/anti_affinity_group.md" >}}) (IDs). Use anti_affinity_group_ids instead.
- `anti_affinity_group_ids` (Set of String) The list of attached [exoscale_anti_affinity_group]({{< ref "../resources/anti_affinity_group.md" >}}) (IDs).
- `deploy_target_id` (String) The deploy target ID.
- `description` (String) The instance pool description.
- `disk_size` (Number) The managed instances disk size.
- `elastic_ip_ids` (Set of String) The list of attached [exoscale_elastic_ip]({{< ref "../resources/elastic_ip.md" >}}) (IDs).
- `instance_prefix` (String) The string used to prefix the managed instances name.
- `instance_type` (String) The managed instances type.
- `instances` (Set of Object) The list of managed instances. Structure is documented below. (see [below for nested schema](#nestedatt--instances))
- `ipv6` (Boolean) Whether IPv6 is enabled on managed instances.
- `key_pair` (String) The [exoscale_ssh_key]({{< ref "../resources/ssh_key.md" >}}) (name) authorized on the managed instances.
- `min_available` (Number) Minimum number of running Instances.
- `network_ids` (Set of String) The list of attached [exoscale_private_network]({{< ref "../resources/private_network.md" >}}) (IDs).
- `security_group_ids` (Set of String) The list of attached [exoscale_security_group]({{< ref "../resources/security_group.md" >}}) (IDs).
- `size` (Number) The number managed instances.
- `state` (String) The pool state.
- `template_id` (String) The managed instances [exoscale_template]({{< ref "./template.md" >}}) ID.
- `user_data` (String) [cloud-init](http://cloudinit.readthedocs.io/en/latest/) configuration.

<a id="nestedatt--instances"></a>
### Nested Schema for `instances`

Read-Only:

- `id` (String)
- `ipv6_address` (String)
- `name` (String)
- `public_ip_address` (String)



