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

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/profitbricks/d/profitbricks_image.html