1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getWorkflows
Viewing docs for Cloudflare v6.22.1
published on Tuesday, Oct 13, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.22.1
published on Tuesday, Oct 13, 2026 by Pulumi

    Accepted Permissions

    • Workers Scripts Read
    • Workers Scripts Write
    • Workers Tail Read

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleWorkflows = cloudflare.getWorkflows({
        accountId: "account_id",
        search: "x",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workflows = cloudflare.get_workflows(account_id="account_id",
        search="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.GetWorkflows(ctx, &cloudflare.LookupWorkflowsArgs{
    			AccountId: pulumi.StringRef("account_id"),
    			Search:    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 exampleWorkflows = Cloudflare.GetWorkflows.Invoke(new()
        {
            AccountId = "account_id",
            Search = "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.GetWorkflowsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleWorkflows = CloudflareFunctions.getWorkflows(GetWorkflowsArgs.builder()
                .accountId("account_id")
                .search("x")
                .build());
    
        }
    }
    
    variables:
      exampleWorkflows:
        fn::invoke:
          function: cloudflare:getWorkflows
          arguments:
            accountId: account_id
            search: x
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_workflows" "exampleWorkflows" {
      account_id = "account_id"
      search     = "x"
    }
    

    Using getWorkflows

    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 getWorkflows(args: GetWorkflowsArgs, opts?: InvokeOptions): Promise<GetWorkflowsResult>
    function getWorkflowsOutput(args: GetWorkflowsOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkflowsResult>
    def get_workflows(account_id: Optional[str] = None,
                      max_items: Optional[int] = None,
                      search: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetWorkflowsResult
    def get_workflows_output(account_id: pulumi.Input[Optional[str]] = None,
                      max_items: pulumi.Input[Optional[int]] = None,
                      search: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkflowsResult]
    func LookupWorkflows(ctx *Context, args *LookupWorkflowsArgs, opts ...InvokeOption) (*LookupWorkflowsResult, error)
    func LookupWorkflowsOutput(ctx *Context, args *LookupWorkflowsOutputArgs, opts ...InvokeOption) LookupWorkflowsResultOutput

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

    public static class GetWorkflows 
    {
        public static Task<GetWorkflowsResult> InvokeAsync(GetWorkflowsArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowsResult> Invoke(GetWorkflowsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowsResult> Invoke(GetWorkflowsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    public static Output<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    public static Output<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkflows:getWorkflows
      arguments:
        # arguments dictionary
    data "cloudflare_get_workflows" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    account_id string
    max_items number
    Max items to fetch, default: 1000
    search string
    Allows filtering workflows` name.
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    search string
    Allows filtering workflows` name.
    account_id str
    max_items int
    Max items to fetch, default: 1000
    search str
    Allows filtering workflows` name.
    accountId String
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.

    getWorkflows Result

    The following output properties are available:

    Results List<GetWorkflowsResult>
    The items returned by the data source
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    Results []GetWorkflowsResult
    The items returned by the data source
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    results list(object)
    The items returned by the data source
    account_id string
    max_items number
    Max items to fetch, default: 1000
    search string
    Allows filtering workflows` name.
    results List<GetWorkflowsResult>
    The items returned by the data source
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.
    results GetWorkflowsResult[]
    The items returned by the data source
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    search string
    Allows filtering workflows` name.
    results Sequence[GetWorkflowsResult]
    The items returned by the data source
    account_id str
    max_items int
    Max items to fetch, default: 1000
    search str
    Allows filtering workflows` name.
    results List<Property Map>
    The items returned by the data source
    accountId String
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.

    Supporting Types

    GetWorkflowsResult

    ClassName string
    CreatedOn string
    Id string
    Instances Dictionary<string, double>
    ModifiedOn string
    Name string
    Schedules List<GetWorkflowsResultSchedule>
    ScriptDeleted bool
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    ScriptName string
    TriggeredOn string
    ClassName string
    CreatedOn string
    Id string
    Instances map[string]float64
    ModifiedOn string
    Name string
    Schedules []GetWorkflowsResultSchedule
    ScriptDeleted bool
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    ScriptName string
    TriggeredOn string
    class_name string
    created_on string
    id string
    instances map(number)
    modified_on string
    name string
    schedules list(object)
    script_deleted bool
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    script_name string
    triggered_on string
    className String
    createdOn String
    id String
    instances Map<String,Double>
    modifiedOn String
    name String
    schedules List<GetWorkflowsResultSchedule>
    scriptDeleted Boolean
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    scriptName String
    triggeredOn String
    className string
    createdOn string
    id string
    instances {[key: string]: number}
    modifiedOn string
    name string
    schedules GetWorkflowsResultSchedule[]
    scriptDeleted boolean
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    scriptName string
    triggeredOn string
    class_name str
    created_on str
    id str
    instances Mapping[str, float]
    modified_on str
    name str
    schedules Sequence[GetWorkflowsResultSchedule]
    script_deleted bool
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    script_name str
    triggered_on str
    className String
    createdOn String
    id String
    instances Map<Number>
    modifiedOn String
    name String
    schedules List<Property Map>
    scriptDeleted Boolean
    Whether the bound Worker was deleted, leaving this Workflow inactive.
    scriptName String
    triggeredOn String

    GetWorkflowsResultSchedule

    Cron string
    NextInstance string
    Cron string
    NextInstance string
    cron string
    next_instance string
    cron String
    nextInstance String
    cron string
    nextInstance string
    cron String
    nextInstance String

    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 logo
    Viewing docs for Cloudflare v6.22.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial