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

intersight.WorkflowCustomDataTypeDefinition

Explore with Pulumi AI

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

    Captures a customized data type definition that can be used for task or workflow input/output. This can be reused across multiple tasks and workflow definitions.

    Usage Example

    Resource Creation

    import * as pulumi from "@pulumi/pulumi";
    import * as intersight from "@pulumi/intersight";
    
    const config = new pulumi.Config();
    const workflowCatalog = config.require("workflowCatalog");
    const workflowCustomDataTypeDefinition1 = new intersight.WorkflowCustomDataTypeDefinition("workflowCustomDataTypeDefinition1", {
        description: "captures a customized data type definition for workflow input/output",
        label: "custom_data_dfn1",
        catalogs: [{
            objectType: "workflow.Catalog",
            moid: workflowCatalog,
        }],
        parameterSets: [{
            classId: "workflow.ParameterSet",
            objectType: "workflow.ParameterSet",
            name: "show-netapp",
            condition: "eq",
            controlParameter: "PlatformType",
            enableParameters: ["ExpandedVolumeCapacity"],
            value: "storage.NetAppCluster",
        }],
    });
    
    import pulumi
    import pulumi_intersight as intersight
    
    config = pulumi.Config()
    workflow_catalog = config.require("workflowCatalog")
    workflow_custom_data_type_definition1 = intersight.WorkflowCustomDataTypeDefinition("workflowCustomDataTypeDefinition1",
        description="captures a customized data type definition for workflow input/output",
        label="custom_data_dfn1",
        catalogs=[{
            "object_type": "workflow.Catalog",
            "moid": workflow_catalog,
        }],
        parameter_sets=[{
            "class_id": "workflow.ParameterSet",
            "object_type": "workflow.ParameterSet",
            "name": "show-netapp",
            "condition": "eq",
            "control_parameter": "PlatformType",
            "enable_parameters": ["ExpandedVolumeCapacity"],
            "value": "storage.NetAppCluster",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/intersight/intersight"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		workflowCatalog := cfg.Require("workflowCatalog")
    		_, err := intersight.NewWorkflowCustomDataTypeDefinition(ctx, "workflowCustomDataTypeDefinition1", &intersight.WorkflowCustomDataTypeDefinitionArgs{
    			Description: pulumi.String("captures a customized data type definition for workflow input/output"),
    			Label:       pulumi.String("custom_data_dfn1"),
    			Catalogs: intersight.WorkflowCustomDataTypeDefinitionCatalogArray{
    				&intersight.WorkflowCustomDataTypeDefinitionCatalogArgs{
    					ObjectType: pulumi.String("workflow.Catalog"),
    					Moid:       pulumi.String(workflowCatalog),
    				},
    			},
    			ParameterSets: intersight.WorkflowCustomDataTypeDefinitionParameterSetArray{
    				&intersight.WorkflowCustomDataTypeDefinitionParameterSetArgs{
    					ClassId:          pulumi.String("workflow.ParameterSet"),
    					ObjectType:       pulumi.String("workflow.ParameterSet"),
    					Name:             pulumi.String("show-netapp"),
    					Condition:        pulumi.String("eq"),
    					ControlParameter: pulumi.String("PlatformType"),
    					EnableParameters: pulumi.StringArray{
    						pulumi.String("ExpandedVolumeCapacity"),
    					},
    					Value: pulumi.String("storage.NetAppCluster"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Intersight = Pulumi.Intersight;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var workflowCatalog = config.Require("workflowCatalog");
        var workflowCustomDataTypeDefinition1 = new Intersight.WorkflowCustomDataTypeDefinition("workflowCustomDataTypeDefinition1", new()
        {
            Description = "captures a customized data type definition for workflow input/output",
            Label = "custom_data_dfn1",
            Catalogs = new[]
            {
                new Intersight.Inputs.WorkflowCustomDataTypeDefinitionCatalogArgs
                {
                    ObjectType = "workflow.Catalog",
                    Moid = workflowCatalog,
                },
            },
            ParameterSets = new[]
            {
                new Intersight.Inputs.WorkflowCustomDataTypeDefinitionParameterSetArgs
                {
                    ClassId = "workflow.ParameterSet",
                    ObjectType = "workflow.ParameterSet",
                    Name = "show-netapp",
                    Condition = "eq",
                    ControlParameter = "PlatformType",
                    EnableParameters = new[]
                    {
                        "ExpandedVolumeCapacity",
                    },
                    Value = "storage.NetAppCluster",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.intersight.WorkflowCustomDataTypeDefinition;
    import com.pulumi.intersight.WorkflowCustomDataTypeDefinitionArgs;
    import com.pulumi.intersight.inputs.WorkflowCustomDataTypeDefinitionCatalogArgs;
    import com.pulumi.intersight.inputs.WorkflowCustomDataTypeDefinitionParameterSetArgs;
    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();
            final var workflowCatalog = config.get("workflowCatalog");
            var workflowCustomDataTypeDefinition1 = new WorkflowCustomDataTypeDefinition("workflowCustomDataTypeDefinition1", WorkflowCustomDataTypeDefinitionArgs.builder()
                .description("captures a customized data type definition for workflow input/output")
                .label("custom_data_dfn1")
                .catalogs(WorkflowCustomDataTypeDefinitionCatalogArgs.builder()
                    .objectType("workflow.Catalog")
                    .moid(workflowCatalog)
                    .build())
                .parameterSets(WorkflowCustomDataTypeDefinitionParameterSetArgs.builder()
                    .classId("workflow.ParameterSet")
                    .objectType("workflow.ParameterSet")
                    .name("show-netapp")
                    .condition("eq")
                    .controlParameter("PlatformType")
                    .enableParameters("ExpandedVolumeCapacity")
                    .value("storage.NetAppCluster")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      workflowCatalog:
        type: string
    resources:
      workflowCustomDataTypeDefinition1:
        type: intersight:WorkflowCustomDataTypeDefinition
        properties:
          description: captures a customized data type definition for workflow input/output
          label: custom_data_dfn1
          catalogs:
            - objectType: workflow.Catalog
              moid: ${workflowCatalog}
          parameterSets:
            - classId: workflow.ParameterSet
              objectType: workflow.ParameterSet
              name: show-netapp
              condition: eq
              controlParameter: PlatformType
              enableParameters:
                - ExpandedVolumeCapacity
              value: storage.NetAppCluster
    

    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’:’