github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/profitbricks/d/profitbricks_datacenter.html.markdown (about)

     1  ---
     2  layout: "profitbricks"
     3  page_title: "ProfitBricks : profitbricks_datacenter"
     4  sidebar_current: "docs-profitbricks-datasource-datacenter"
     5  description: |-
     6    Get information on a ProfitBricks Data Centers
     7  ---
     8  
     9  # profitbricks\_datacenter
    10  
    11  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.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "profitbricks_datacenter" "dc_example" {
    17    name     = "test_dc"
    18    location = "us"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24   * `name` - (Required) Name or part of the name of an existing Virtual Data Center that you want to search for.
    25   * `location` - (Optional) Id of the existing Virtual Data Center's location.
    26  
    27  ## Attributes Reference
    28  
    29   * `id` - UUID of the Virtual Data Center