Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.39 KB

restart_task.md

File metadata and controls

52 lines (38 loc) · 1.39 KB
page_title subcategory description
morpheus_restart_task Resource - terraform-provider-morpheus
Provides a Morpheus restart task resource

morpheus_restart_task

Provides a Morpheus restart task resource

Example Usage

resource "morpheus_restart_task" "tfexample_restart" {
  name                = "tfexample_restart"
  code                = "tfexample_restart"
  labels              = ["demo", "terraform"]
  retryable           = true
  retry_count         = 1
  retry_delay_seconds = 10
  allow_custom_config = true
}

Schema

Required

  • name (String) The name of the restart task

Optional

  • allow_custom_config (Boolean) Custom configuration data to pass during the execution of the restart task
  • code (String) The code of the restart task
  • labels (Set of String) The organization labels associated with the task (Only supported on Morpheus 5.5.3 or higher)
  • retry_count (Number) The number of times to retry the task if there is a failure
  • retry_delay_seconds (Number) The number of seconds to wait between retry attempts
  • retryable (Boolean) Whether to retry the task if there is a failure

Read-Only

  • id (String) The ID of the restart task

Import

Import is supported using the following syntax:

terraform import morpheus_restart_task.tf_example_restart_task_script 1