30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
|
---
|
||
|
layout: "profitbricks"
|
||
|
page_title: "ProfitBricks : profitbricks_datacenter"
|
||
|
sidebar_current: "docs-profitbricks-datasource-datacenter"
|
||
|
description: |-
|
||
|
Get information on a ProfitBricks Data Centers
|
||
|
---
|
||
|
|
||
|
# profitbricks\_datacenter
|
||
|
|
||
|
The data centers data source can be used to search for and return an existing Virtual Data Center. You can provide a string for the name and location parameters which will be compared with provisioned Virtual Data Centers. If a single match is found, it will be returned. If your search results in multiple matches, an error will be generated. When this happens, please refine your search string so that it is specific enough to return only one result.
|
||
|
|
||
|
## Example Usage
|
||
|
|
||
|
```
|
||
|
data "profitbricks_datacenter" "dc_example" {
|
||
|
name = "test_dc"
|
||
|
location = "us"
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Argument Reference
|
||
|
|
||
|
* `name` - (Required) Name or part of the name of an existing Virtual Data Center that you want to search for.
|
||
|
* `location` - (Optional) Id of the existing Virtual Data Center's location.
|
||
|
|
||
|
## Attributes Reference
|
||
|
|
||
|
* `id` - UUID of the Virtual Data Center
|