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

cloudflare.getWorkflows

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 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.LookupWorkflows(ctx, &cloudflare.LookupWorkflowsArgs{
    			AccountId: "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.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 exampleWorkflows = CloudflareFunctions.getWorkflows(GetWorkflowsArgs.builder()
                .accountId("account_id")
                .search("x")
                .build());
    
        }
    }
    
    variables:
      exampleWorkflows:
        fn::invoke:
          function: cloudflare:getWorkflows
          arguments:
            accountId: 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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
                      max_items: Optional[pulumi.Input[int]] = None,
                      search: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = 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 CompletableFuture<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    public static Output<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkflows:getWorkflows
      arguments:
        # arguments dictionary

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

    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetWorkflowsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    AccountId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetWorkflowsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Allows filtering workflows` name.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetWorkflowsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.
    accountId string
    id string
    The provider-assigned unique ID for this managed resource.
    results GetWorkflowsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    search string
    Allows filtering workflows` name.
    account_id str
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetWorkflowsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    search str
    Allows filtering workflows` name.
    accountId String
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Allows filtering workflows` name.

    Supporting Types

    GetWorkflowsResult

    GetWorkflowsResultInstances

    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