page_title | subcategory | description |
---|---|---|
morpheus_javascript_task Resource - terraform-provider-morpheus |
Provides a Morpheus javascript task resource |
Provides a Morpheus javascript task resource
resource "morpheus_javascript_task" "tfexample_javascript" {
name = "tfexample_javascript"
code = "tfexample_javascript"
labels = ["demo", "terraform"]
script_content = <<EOF
console.log("testing")
EOF
retryable = true
retry_count = 1
retry_delay_seconds = 10
allow_custom_config = true
}
name
(String) The name of the javascript script task
allow_custom_config
(Boolean) Custom configuration data to pass during the execution of the javascript scriptcode
(String) The code of the javascript script tasklabels
(Set of String) The organization labels associated with the task (Only supported on Morpheus 5.5.3 or higher)result_type
(String) The expected result type (single value, key pairs, json)retry_count
(Number) The number of times to retry the task if there is a failureretry_delay_seconds
(Number) The number of seconds to wait between retry attemptsretryable
(Boolean) Whether to retry the task if there is a failurescript_content
(String) The content of the javascript script
id
(String) The ID of the javascript script task
Import is supported using the following syntax:
terraform import morpheus_javascript_task.tf_example_groovy_script 1