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

cloudflare.getWorkflow

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 = cloudflare.getWorkflow({
        accountId: "account_id",
        workflowName: "x",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workflow = cloudflare.get_workflow(account_id="account_id",
        workflow_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.LookupWorkflow(ctx, &cloudflare.LookupWorkflowArgs{
    			AccountId:    "account_id",
    			WorkflowName: pulumi.StringRef("x"),
    		}, nil)
    		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 = Cloudflare.GetWorkflow.Invoke(new()
        {
            AccountId = "account_id",
            WorkflowName = "x",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetWorkflowArgs;
    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 exampleWorkflow = CloudflareFunctions.getWorkflow(GetWorkflowArgs.builder()
                .accountId("account_id")
                .workflowName("x")
                .build());
    
        }
    }
    
    variables:
      exampleWorkflow:
        fn::invoke:
          function: cloudflare:getWorkflow
          arguments:
            accountId: account_id
            workflowName: x
    

    Using getWorkflow

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWorkflow(args: GetWorkflowArgs, opts?: InvokeOptions): Promise<GetWorkflowResult>
    function getWorkflowOutput(args: GetWorkflowOutputArgs, opts?: InvokeOptions): Output<GetWorkflowResult>
    def get_workflow(account_id: Optional[str] = None,
                     filter: Optional[GetWorkflowFilter] = None,
                     workflow_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetWorkflowResult
    def get_workflow_output(account_id: Optional[pulumi.Input[str]] = None,
                     filter: Optional[pulumi.Input[GetWorkflowFilterArgs]] = None,
                     workflow_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowResult]
    func LookupWorkflow(ctx *Context, args *LookupWorkflowArgs, opts ...InvokeOption) (*LookupWorkflowResult, error)
    func LookupWorkflowOutput(ctx *Context, args *LookupWorkflowOutputArgs, opts ...InvokeOption) LookupWorkflowResultOutput

    > Note: This function is named LookupWorkflow in the Go SDK.

    public static class GetWorkflow 
    {
        public static Task<GetWorkflowResult> InvokeAsync(GetWorkflowArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowResult> Invoke(GetWorkflowInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkflowResult> getWorkflow(GetWorkflowArgs args, InvokeOptions options)
    public static Output<GetWorkflowResult> getWorkflow(GetWorkflowArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkflow:getWorkflow
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getWorkflow Result

    The following output properties are available:

    AccountId string
    ClassName string
    CreatedOn string
    Id string
    The ID of this resource.
    Instances GetWorkflowInstances
    ModifiedOn string
    Name string
    ScriptName string
    TriggeredOn string
    Filter GetWorkflowFilter
    WorkflowName string
    AccountId string
    ClassName string
    CreatedOn string
    Id string
    The ID of this resource.
    Instances GetWorkflowInstances
    ModifiedOn string
    Name string
    ScriptName string
    TriggeredOn string
    Filter GetWorkflowFilter
    WorkflowName string
    accountId String
    className String
    createdOn String
    id String
    The ID of this resource.
    instances GetWorkflowInstances
    modifiedOn String
    name String
    scriptName String
    triggeredOn String
    filter GetWorkflowFilter
    workflowName String
    accountId string
    className string
    createdOn string
    id string
    The ID of this resource.
    instances GetWorkflowInstances
    modifiedOn string
    name string
    scriptName string
    triggeredOn string
    filter GetWorkflowFilter
    workflowName string
    accountId String
    className String
    createdOn String
    id String
    The ID of this resource.
    instances Property Map
    modifiedOn String
    name String
    scriptName String
    triggeredOn String
    filter Property Map
    workflowName String

    Supporting Types

    GetWorkflowFilter

    Search string
    Allows filtering workflows` name.
    Search string
    Allows filtering workflows` name.
    search String
    Allows filtering workflows` name.
    search string
    Allows filtering workflows` name.
    search str
    Allows filtering workflows` name.
    search String
    Allows filtering workflows` name.

    GetWorkflowInstances

    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

    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