Skip to content

Latest commit

 

History

History
120 lines (93 loc) · 3.42 KB

service_plan.md

File metadata and controls

120 lines (93 loc) · 3.42 KB
page_title subcategory description
morpheus_service_plan Resource - terraform-provider-morpheus
Provides a service plan resource

morpheus_service_plan

Provides a service plan resource

Example Usage

resource "morpheus_service_plan" "tf_example_service_plan" {
  name           = "terraform-test-sp"
  code           = "terraform-test-sp1"
  active         = true
  display_order  = 2
  provision_type = "vmware"
  // Processors
  max_cores        = 8
  custom_cores     = true
  cores_per_socket = 4

  // Memory
  max_memory       = 3145728
  memory_size_type = "mb"
  custom_memory    = true
  custom_memory_range {
    minimum = 1048576
    maximum = 3145728
  }
  // Storage
  max_storage             = 3221225472
  storage_size_type       = "mb"
  customize_root_volume   = true
  customize_extra_volumes = true
  add_volumes             = true
  max_disks_allowed       = 0
  custom_storage_range {
    minimum = 3000
    maximum = 5000
  }

  price_set_ids = [morpheus_price_set.tf_example_price_set_software.id,
    203,
    645,
  202]
}

Schema

Required

  • code (String) The code for the service plan
  • name (String) The name of the service plan
  • price_set_ids (List of Number) The list of price set ids associated with the service plan
  • provision_type (String) The provision type of the service plan

Optional

  • active (Boolean) Whether the service plan is active or not
  • add_volumes (Boolean) Whether additional volumes
  • cores_per_socket (Number) The number of cores per socket
  • custom_cores (Boolean) Whether the option to customize the number of processor cores is avaiable
  • custom_cores_range (Block List, Max: 1) (see below for nested schema)
  • custom_memory (Boolean) Whether customizable memory is an option
  • custom_memory_range (Block List, Max: 1) (see below for nested schema)
  • custom_storage_range (Block List, Max: 1) (see below for nested schema)
  • customize_extra_volumes (Boolean) Whether the additional volumes are customized
  • customize_root_volume (Boolean) Whether the root volume is customized
  • display_order (Number) The display or sort order of the service plan
  • max_cores (Number) The maximum amount of processor cores
  • max_disks_allowed (Number) The maximum number of disks that are allowed to be added
  • max_memory (Number) The maximum amount of memory in bytes
  • max_storage (Number) The maximum amount of storage in bytes
  • memory_size_type (String) The unit of measure used for the service plan memory (gb, mb)
  • region_code (String) The region code for the service plan
  • storage_size_type (String) The unit of measure used for the service plan storage (gb, mb)

Read-Only

  • id (String) The ID of the service plan

Nested Schema for custom_cores_range

Optional:

  • maximum (String)
  • minimum (String)

Nested Schema for custom_memory_range

Optional:

  • maximum (Number)
  • minimum (Number)

Nested Schema for custom_storage_range

Required:

  • maximum (String)
  • minimum (String)

Import

Import is supported using the following syntax:

terraform import morpheus_service_plan.tf_example_service_plan 1