1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. Workflow
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi

cloudflare.Workflow

Deploy with Pulumi
cloudflare logo
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleWorkflow = new cloudflare.Workflow("example_workflow", {
        accountId: "account_id",
        workflowName: "x",
        className: "x",
        scriptName: "x",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workflow = cloudflare.Workflow("example_workflow",
        account_id="account_id",
        workflow_name="x",
        class_name="x",
        script_name="x")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewWorkflow(ctx, "example_workflow", &cloudflare.WorkflowArgs{
    			AccountId:    pulumi.String("account_id"),
    			WorkflowName: pulumi.String("x"),
    			ClassName:    pulumi.String("x"),
    			ScriptName:   pulumi.String("x"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleWorkflow = new Cloudflare.Workflow("example_workflow", new()
        {
            AccountId = "account_id",
            WorkflowName = "x",
            ClassName = "x",
            ScriptName = "x",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.Workflow;
    import com.pulumi.cloudflare.WorkflowArgs;
    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) {
            var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()
                .accountId("account_id")
                .workflowName("x")
                .className("x")
                .scriptName("x")
                .build());
    
        }
    }
    
    resources:
      exampleWorkflow:
        type: cloudflare:Workflow
        name: example_workflow
        properties:
          accountId: account_id
          workflowName: x
          className: x
          scriptName: x
    

    Create Workflow Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Workflow(name: string, args: WorkflowArgs, opts?: CustomResourceOptions);
    @overload
    def Workflow(resource_name: str,
                 args: WorkflowArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Workflow(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_id: Optional[str] = None,
                 class_name: Optional[str] = None,
                 script_name: Optional[str] = None,
                 workflow_name: Optional[str] = None)
    func NewWorkflow(ctx *Context, name string, args WorkflowArgs, opts ...ResourceOption) (*Workflow, error)
    public Workflow(string name, WorkflowArgs args, CustomResourceOptions? opts = null)
    public Workflow(String name, WorkflowArgs args)
    public Workflow(String name, WorkflowArgs args, CustomResourceOptions options)
    
    type: cloudflare:Workflow
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WorkflowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WorkflowArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WorkflowArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkflowArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkflowArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var workflowResource = new Cloudflare.Workflow("workflowResource", new()
    {
        AccountId = "string",
        ClassName = "string",
        ScriptName = "string",
        WorkflowName = "string",
    });
    
    example, err := cloudflare.NewWorkflow(ctx, "workflowResource", &cloudflare.WorkflowArgs{
    	AccountId:    pulumi.String("string"),
    	ClassName:    pulumi.String("string"),
    	ScriptName:   pulumi.String("string"),
    	WorkflowName: pulumi.String("string"),
    })
    
    var workflowResource = new Workflow("workflowResource", WorkflowArgs.builder()
        .accountId("string")
        .className("string")
        .scriptName("string")
        .workflowName("string")
        .build());
    
    workflow_resource = cloudflare.Workflow("workflowResource",
        account_id="string",
        class_name="string",
        script_name="string",
        workflow_name="string")
    
    const workflowResource = new cloudflare.Workflow("workflowResource", {
        accountId: "string",
        className: "string",
        scriptName: "string",
        workflowName: "string",
    });
    
    type: cloudflare:Workflow
    properties:
        accountId: string
        className: string
        scriptName: string
        workflowName: string
    

    Workflow Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Workflow resource accepts the following input properties:

    AccountId string
    ClassName string
    ScriptName string
    WorkflowName string
    AccountId string
    ClassName string
    ScriptName string
    WorkflowName string
    accountId String
    className String
    scriptName String
    workflowName String
    accountId string
    className string
    scriptName string
    workflowName string
    accountId String
    className String
    scriptName String
    workflowName String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Workflow resource produces the following output properties:

    CreatedOn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances WorkflowInstances
    IsDeleted double
    ModifiedOn string
    Name string
    TerminatorRunning double
    TriggeredOn string
    VersionId string
    CreatedOn string
    Id string
    The provider-assigned unique ID for this managed resource.
    Instances WorkflowInstances
    IsDeleted float64
    ModifiedOn string
    Name string
    TerminatorRunning float64
    TriggeredOn string
    VersionId string
    createdOn String
    id String
    The provider-assigned unique ID for this managed resource.
    instances WorkflowInstances
    isDeleted Double
    modifiedOn String
    name String
    terminatorRunning Double
    triggeredOn String
    versionId String
    createdOn string
    id string
    The provider-assigned unique ID for this managed resource.
    instances WorkflowInstances
    isDeleted number
    modifiedOn string
    name string
    terminatorRunning number
    triggeredOn string
    versionId string
    created_on str
    id str
    The provider-assigned unique ID for this managed resource.
    instances WorkflowInstances
    is_deleted float
    modified_on str
    name str
    terminator_running float
    triggered_on str
    version_id str
    createdOn String
    id String
    The provider-assigned unique ID for this managed resource.
    instances Property Map
    isDeleted Number
    modifiedOn String
    name String
    terminatorRunning Number
    triggeredOn String
    versionId String

    Look up Existing Workflow Resource

    Get an existing Workflow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: WorkflowState, opts?: CustomResourceOptions): Workflow
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            class_name: Optional[str] = None,
            created_on: Optional[str] = None,
            instances: Optional[WorkflowInstancesArgs] = None,
            is_deleted: Optional[float] = None,
            modified_on: Optional[str] = None,
            name: Optional[str] = None,
            script_name: Optional[str] = None,
            terminator_running: Optional[float] = None,
            triggered_on: Optional[str] = None,
            version_id: Optional[str] = None,
            workflow_name: Optional[str] = None) -> Workflow
    func GetWorkflow(ctx *Context, name string, id IDInput, state *WorkflowState, opts ...ResourceOption) (*Workflow, error)
    public static Workflow Get(string name, Input<string> id, WorkflowState? state, CustomResourceOptions? opts = null)
    public static Workflow get(String name, Output<String> id, WorkflowState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:Workflow    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    WorkflowInstances, WorkflowInstancesArgs

    Complete double
    Errored double
    Paused double
    Queued double
    Running double
    Terminated double
    Waiting double
    WaitingForPause double
    Complete float64
    Errored float64
    Paused float64
    Queued float64
    Running float64
    Terminated float64
    Waiting float64
    WaitingForPause float64
    complete Double
    errored Double
    paused Double
    queued Double
    running Double
    terminated Double
    waiting Double
    waitingForPause Double
    complete number
    errored number
    paused number
    queued number
    running number
    terminated number
    waiting number
    waitingForPause number
    complete float
    errored float
    paused float
    queued float
    running float
    terminated float
    waiting float
    waiting_for_pause float
    complete Number
    errored Number
    paused Number
    queued Number
    running Number
    terminated Number
    waiting Number
    waitingForPause Number

    Import

    $ pulumi import cloudflare:index/workflow:Workflow example '<account_id>/<workflow_name>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate