The resource data source can be used to search for and return any existing ProfitBricks resource and optionally their group associations. You can provide a string for the resource type (datacenter,image,snapshot,ipblock) and/or resource id parameters which will be queries against available resources. 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.

Example Usage

data "profitbricks_resource" "res" {
  resource_type = "datacenter"
  resource_id="datacenter uuid"

Argument Reference

  • resource_type - (Optional) The specific type of resources to retrieve information about.
  • resource_id - (Optional) The ID of the specific resource to retrieve information about.

Attributes Reference

  • id - UUID of the Resource

© 2018 HashiCorpLicensed under the MPL 2.0 License.