| page_title | morpheus_library_script_task Resource - terraform-provider-morpheus |
|---|---|
| subcategory | |
| description | Provides a Morpheus library script task resource |
Provides a Morpheus library script task resource
Creating the library script task using a library script data source:
data "morpheus_script_template" "example_script_template" {
name = "My script template"
}
resource "morpheus_library_script_task" "tf_example_library_script_task" {
name = "Example Terraform Library Script Task"
code = "tf-example-library-script-task"
labels = ["demo", "library", "terraform"]
execute_target = "resource"
script_template = data.morpheus_script_template.example_script_template.name
script_template_id = data.morpheus_script_template.example_script_template.id
retryable = true
retry_count = 1
retry_delay_seconds = 10
allow_custom_config = true
}name(String) The name of the library script task
allow_custom_config(Boolean) Custom configuration data to pass during the execution of the library scriptcode(String) The code of the library script taskexecute_target(String) The target for the library scriptlabels(Set of String) The organization labels associated with the library task (Only supported on Morpheus 5.5.3 or higher)result_type(String) The expected result type (value, keyValue, json)retry_count(Number) The number of times to retry the library task if there is a failureretry_delay_seconds(Number) The number of seconds to wait between retry attemptsretryable(Boolean) Whether to retry the library task if there is a failurescript_template(String) The name of the library script template in Morpheusscript_template_id(String) The library script template id in Morpheusvisibility(String) The visibility of the task (private or public)
id(String) The ID of the library script task
Import is supported using the following syntax:
terraform import morpheus_library_script_task.tf_example_library_script_task 1