2017-02-02 14:26:14 +01:00
|
|
|
---
|
|
|
|
layout: "profitbricks"
|
|
|
|
page_title: "ProfitBricks : profitbrick_location"
|
|
|
|
sidebar_current: "docs-profitbricks-datasource-location"
|
|
|
|
description: |-
|
|
|
|
Get information on a ProfitBricks Locations
|
|
|
|
---
|
|
|
|
|
|
|
|
# profitbricks\_location
|
|
|
|
|
|
|
|
The locations data source can be used to search for and return an existing location which can then be used elsewhere in the configuration.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
data "profitbricks_location" "loc1" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "karlsruhe"
|
2017-02-02 14:26:14 +01:00
|
|
|
feature = "SSD"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
* `name` - (Required) Name or part of the location name to search for.
|
|
|
|
* `feature` - (Optional) A desired feature that the location must be able to provide.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
* `id` - UUID of the location
|