2017-02-02 14:26:14 +01:00
|
|
|
---
|
|
|
|
layout: "profitbricks"
|
|
|
|
page_title: "ProfitBricks : profitbrick_image"
|
|
|
|
sidebar_current: "docs-profitbricks-datasource-image"
|
|
|
|
description: |-
|
|
|
|
Get information on a ProfitBricks Images
|
|
|
|
---
|
|
|
|
|
|
|
|
# profitbricks\_image
|
|
|
|
|
|
|
|
The images data source can be used to search for and return an existing image which can then be used to provision a server.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2017-02-02 14:26:14 +01:00
|
|
|
data "profitbricks_image" "image_example" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "Ubuntu"
|
|
|
|
type = "HDD"
|
|
|
|
version = "14"
|
2017-02-02 14:26:14 +01:00
|
|
|
location = "location_id"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
* `name` - (Required) Name or part of the name of an existing image that you want to search for.
|
|
|
|
* `version` - (Optional) Version of the image (see details below).
|
|
|
|
* `location` - (Optional) Id of the existing image's location.
|
|
|
|
* `type` - (Optional) The image type, HDD or CD-ROM.
|
|
|
|
|
|
|
|
If both "name" and "version" are provided the plugin will concatenate the two strings in this format [name]-[version].
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
* `id` - UUID of the image
|