Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 2.68 KB

number_option_type.md

File metadata and controls

70 lines (56 loc) · 2.68 KB
page_title subcategory description
morpheus_number_option_type Resource - terraform-provider-morpheus
Provides a Morpheus number option type resource

morpheus_number_option_type

Provides a Morpheus number option type resource

Example Usage

resource "morpheus_number_option_type" "tf_example_number_option_type" {
  name                     = "tf_example_number_option_type"
  description              = "Terraform number option type example"
  labels                   = ["demo", "terraform"]
  field_name               = "tfNumberExample"
  export_meta              = true
  dependent_field          = "dependent_example"
  visibility_field         = "visibility_example"
  require_field            = "require_example"
  show_on_edit             = true
  editable                 = true
  display_value_on_details = true
  field_label              = "Number Example"
  placeholder              = "12"
  default_value            = "1"
  help_block               = "Provide a number"
  required                 = true
}

Schema

Required

  • name (String) The name of the number option type

Optional

  • default_value (String) The default value of the option type
  • dependent_field (String) The field or code used to trigger the reloading of the field
  • description (String) The description of the number option type
  • display_value_on_details (Boolean) Display the selected value of the number option type on the associated resource's details page
  • editable (Boolean) Whether the value of the option type can be edited after the initial request
  • export_meta (Boolean) Whether to export the number option type as a tag
  • field_label (String) The label associated with the field in the UI
  • field_name (String) The field name of the number option type
  • help_block (String) Text that provides additional details about the use of the option type
  • labels (Set of String) The organization labels associated with the option type (Only supported on Morpheus 5.5.3 or higher)
  • placeholder (String) Text in the field used as a placeholder for example purposes
  • require_field (String) The field or code used to trigger the requirement of this field
  • required (Boolean) Whether the option type is required
  • show_on_edit (Boolean) Whether the option type will display in the edit section of the provisioned resource
  • visibility_field (String) The field or code used to trigger the visibility of the field

Read-Only

  • id (String) The ID of the number option type

Import

Import is supported using the following syntax:

terraform import morpheus_number_option_type.tf_example_number_option_type 1