1. Packages
  2. Intersight Provider
  3. API Docs
  4. WorkflowWorkflowDefinition
intersight 1.0.64 published on Wednesday, Apr 30, 2025 by ciscodevnet

intersight.WorkflowWorkflowDefinition

Explore with Pulumi AI

intersight logo
intersight 1.0.64 published on Wednesday, Apr 30, 2025 by ciscodevnet

    Workflow definition is a collection of tasks that are sequenced in a certain way using control tasks. The tasks in the workflow definition is represented as a directed acyclic graph where each node in the graph is a task and the edges in the graph are transitions from one task to another.

    Usage Example

    Resource Creation

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.intersight.WorkflowWorkflowDefinition;
    import com.pulumi.intersight.WorkflowWorkflowDefinitionArgs;
    import com.pulumi.intersight.inputs.WorkflowWorkflowDefinitionOutputDefinitionArgs;
    import com.pulumi.intersight.inputs.WorkflowWorkflowDefinitionTaskArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            var workflowWorkflowDefinition1 = new WorkflowWorkflowDefinition("workflowWorkflowDefinition1", WorkflowWorkflowDefinitionArgs.builder()
                .label("Value for label")
                .outputDefinitions(WorkflowWorkflowDefinitionOutputDefinitionArgs.builder()
                    .classId("workflow.StartTask")
                    .objectType("workflow.PrimitiveDataType")
                    .name("status")
                    .label("Value for label")
                    .required(false)
                    .description("Value for description")
                    .default_(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .displayMeta(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .build())
                .tasks(WorkflowWorkflowDefinitionTaskArgs.builder()
                    .description("Create a vm")
                    .label("value for lable")
                    .name("StartTask")
                    .objectType("workflow.StartTask")
                    .classId("workflow.StartTask")
                    .build())
                .uiRenderingData("""
      "{
        positions {
          name = "StartTask"
          x    = 209
          y    = 79
        }
        version = 1
        catalog = {
          object_type = "workflow.Catalog"
          moid        = var.workflow_catalog
        }
        workflow_metadata = {
          object_type = "workflow.WorkflowMetadata"
          moid        = var.workflow_workflow_metadata
        }
      }"
                """)
                .build());
    
            final var workflowCatalog = config.get("workflowCatalog");
            final var workflowWorkflowMetadata = config.get("workflowWorkflowMetadata");
        }
    }
    
    configuration:
      workflowCatalog:
        type: string
      workflowWorkflowMetadata:
        type: string
    resources:
      workflowWorkflowDefinition1:
        type: intersight:WorkflowWorkflowDefinition
        properties:
          label: Value for label
          outputDefinitions:
            - classId: workflow.StartTask
              objectType: workflow.PrimitiveDataType
              name: status
              label: Value for label
              required: false
              description: Value for description
              default:
                - objectType: workflow.DefaultValue
                  override: false
                  classId: workflow.DefaultValue
              displayMeta:
                - classId: workflow.DisplayMeta
                  objectType: workflow.DisplayMeta
                  inventorySelector: true
          tasks:
            - description: Create a vm
              label: value for lable
              name: StartTask
              objectType: workflow.StartTask
              classId: workflow.StartTask
          uiRenderingData: |2
              "{
                positions {
                  name = "StartTask"
                  x    = 209
                  y    = 79
                }
                version = 1
                catalog = {
                  object_type = "workflow.Catalog"
                  moid        = var.workflow_catalog
                }
                workflow_metadata = {
                  object_type = "workflow.WorkflowMetadata"
                  moid        = var.workflow_workflow_metadata
                }
              }"
    

    Allowed Types in AdditionalProperties

    workflow.ArrayDataType

    This data type represents an array of a given type. It can be an array of primitive data or of custom data.

    • array_item_type:(HashMap) - Data item within the array data type. This complex property has following sub-properties:
      • object_type:(string) The fully-qualified name of the instantiated, concrete type.The value should be the same as the ‘ClassId’ property.The enum values provides the list of concrete types that can be instantiated from this abstract type.
    • max:(int) Specify the maximum value of the array.
    • min:(int) Specify the minimum value of the array.

    workflow.CustomDataType

    This data type represents a custom data object.

    • properties:(HashMap) - Captures the custom data type properties. This complex property has following sub-properties:
      • catalog_moid:(string) Specify the catalog moid that this custom data type belongs.
      • custom_data_type_id:(string)(ReadOnly) The resolved custom data type definition managed object.
      • custom_data_type_name:(string) Name of the custom data type for this input.
      • object_type:(string) The fully-qualified name of the instantiated, concrete type.The value should be the same as the ‘ClassId’ property.

    workflow.DynamicTemplateParserDataType

    Data type to fetch a generic template from given selector and parse it using an api to give an array of secure and non-secure keys for form generation. URL used to fetch the template object is based on the templateType. Final input passed to the workflow using this data type is a JSON containing {‘Template’:’