> For the complete documentation index, see [llms.txt](https://docs.ionos.com/terraform-provider/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/terraform-provider/data-sources/location.md).

# ionoscloud\_location

The **Location data source** can be used to search for and return an existing location which can then be used elsewhere in the configuration. If a single match is found, it will be returned. If your search results in multiple matches, the first location from the list will be returned.

## Example Usage

```hcl
data "ionoscloud_location" "example" {
  name    = "karlsruhe"
  feature = "SSD"
}
```

## Argument Reference

* `name` - (Optional) Name of the location to search for.
* `feature` - (Optional) A desired feature that the location must be able to provide.

Either `name` or `feature` must be provided. If none is provided, the datasource will return an error.

## Attributes Reference

The following attributes are returned by the datasource:

* `id` - UUID of the location
* `cpu_architecture` - Array of features and CPU families available in a location
* `cpu_family` - A valid CPU family name.
* `max_cores` - The maximum number of cores available.
* `max_ram` - The maximum number of RAM in MB.
* `vendor` - A valid CPU vendor name.
* `image_aliases` - List of image aliases available for the location
* `metro_region` - The id of the metro region this location belongs to. For a child location (e.g. `de/fra/2`) this is the parent location it inherits images and image aliases from; classic locations reference themselves.
