Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.67 KB

File metadata and controls

63 lines (47 loc) · 1.67 KB
page_title subcategory description
morpheus_price_set Resource - terraform-provider-morpheus
Provides a price set resource

morpheus_price_set

Provides a price set resource

Example Usage

data "morpheus_cloud" "vspherecloud" {
  name = "morpheus_vsphere"
}

data "morpheus_resource_pool" "morpheus_pool" {
  name     = "morpheuspool"
  cloud_id = data.morpheus_cloud.vspherecloud.id
}

resource "morpheus_price_set" "tf_example_price_set_software" {
  name             = "terraform-test-everything"
  code             = "terraform-test-everything"
  region_code      = "us-west-2"
  cloud_id         = data.morpheus_cloud.vspherecloud.id
  resource_pool_id = data.morpheus_resource_pool.morpheus_pool.id
  price_unit       = "minute"
  type             = "fixed"
  price_ids        = [morpheus_price.tf_example_price.id]
}

Schema

Required

  • code (String) The code of the price set
  • name (String) The name of the price set
  • price_ids (List of Number) The list of price ids associated with the price set
  • price_unit (String) The price unit (minute, hour, day, month, year, two year, three year, four year, five year)
  • region_code (String) The region code of the price set
  • type (String) The price type (fixed, compute, memory, cores, storage, datastore, platform, software)

Optional

  • cloud_id (Number) The id of the cloud
  • resource_pool_id (Number) The resource pool to assign the price set to

Read-Only

  • id (String) The ID of the price set

Import

Import is supported using the following syntax:

terraform import morpheus_price_set.tf_example_price_set 1