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

     1  ---
     2  layout: "profitbricks"
     3  page_title: "ProfitBricks : profitbrick_image"
     4  sidebar_current: "docs-profitbricks-datasource-image"
     5  description: |-
     6    Get information on a ProfitBricks Images
     7  ---
     8  
     9  # profitbricks\_image
    10  
    11  The images data source can be used to search for and return an existing image which can then be used to provision a server.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "profitbricks_image" "image_example" {
    17    name     = "Ubuntu"
    18    type     = "HDD"
    19    version  = "14"
    20    location = "location_id"
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26   * `name` - (Required) Name or part of the name of an existing image that you want to search for.
    27   * `version` - (Optional) Version of the image (see details below).
    28   * `location` - (Optional) Id of the existing image's location.
    29   * `type` - (Optional) The image type, HDD or CD-ROM.
    30  
    31  If both "name" and "version" are provided the plugin will concatenate the two strings in this format [name]-[version].
    32  
    33  ## Attributes Reference
    34  
    35   * `id` - UUID of the image