terraform/website/source/docs/providers/profitbricks/d/profitbricks_image.html.mar...

971 B

layout page_title sidebar_current description
profitbricks ProfitBricks : profitbrick_image docs-profitbricks-datasource-image 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

data "profitbricks_image" "image_example" {
  name = "Ubuntu"
  type = "HDD"
  version = "14"
  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