Skip to content

Latest commit

 

History

History
77 lines (62 loc) · 2.28 KB

File metadata and controls

77 lines (62 loc) · 2.28 KB
page_title subcategory description
morpheus_vro_task Resource - terraform-provider-morpheus
Provides a Morpheus vRealize Orchestrator (vRO) task resource

morpheus_vro_task (Resource)

Provides a Morpheus vRealize Orchestrator (vRO) task resource

Example Usage

data "morpheus_vro_workflow" "tf_example_vro_workflow" {
  name = "My vRO Workflow Name"
}

resource "morpheus_vro_task" "tf_example_vro_task" {
  name               = "tfexample vro-task"
  code               = "tfexample-vro-task"
  labels             = ["demo", "terraform"]
  vro_integration_id = morhpeus_vro_integration.tf_example_vro_integration.id
  vro_workflow_value = data.morpheus_vro_workflow.tf_example_vro_workflow.value
  body               = <<EOF
{
    "parameters": [
        {
            "name": "vmName",
            "type": "string",
            "value": {
                "string": {
                    "value": "<%=instance.hostname%>"
                }
            }
        }
    ]
}
EOF
  execute_target     = "local"
  retryable          = false
}

Schema

Required

  • name (String) The name of the vRO workflow task
  • vro_integration_id (Number) The ID of the vRO integration
  • vro_workflow_value (Number) The value of the vRO workflow

Optional

  • allow_custom_config (Boolean) Custom configuration data to pass during the execution of the vRO workflow task
  • body (String) The JSON body to send to vRO
  • code (String) The code of the vRO workflow task
  • execute_target (String) The target that the vRO workflow will be executed on
  • labels (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 (value, keyValue, json)
  • 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 vRO workflow task

Import

Import is supported using the following syntax:

terraform import morpheus_vro_task.tf_example_vro_task 1