Viewing docs for Cloudflare v6.22.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Viewing docs for Cloudflare v6.22.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi
Accepted Permissions
Workers Scripts ReadWorkers Scripts WriteWorkers 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 dictionarydata "cloudflare_get_workflows" "name" {
# arguments
}The following arguments are supported:
- account_
id string - max_
items 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.
getWorkflows Result
The following output properties are available:
- Results
List<Get
Workflows Result> - The items returned by the data source
- Account
Id string - Max
Items int - Max items to fetch, default: 1000
- Search string
- Allows filtering workflows` name.
- Results
[]Get
Workflows Result - The items returned by the data source
- Account
Id string - Max
Items 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<Get
Workflows Result> - The items returned by the data source
- account
Id String - max
Items Integer - Max items to fetch, default: 1000
- search String
- Allows filtering workflows` name.
- results
Get
Workflows Result[] - 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
Sequence[Get
Workflows Result] - 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
- account
Id String - max
Items Number - Max items to fetch, default: 1000
- search String
- Allows filtering workflows` name.
Supporting Types
GetWorkflowsResult
- Class
Name string - Created
On string - Id string
- Instances Dictionary<string, double>
- Modified
On string - Name string
- Schedules
List<Get
Workflows Result Schedule> - Script
Deleted bool - Whether the bound Worker was deleted, leaving this Workflow inactive.
- Script
Name string - Triggered
On string
- Class
Name string - Created
On string - Id string
- Instances map[string]float64
- Modified
On string - Name string
- Schedules
[]Get
Workflows Result Schedule - Script
Deleted bool - Whether the bound Worker was deleted, leaving this Workflow inactive.
- Script
Name string - Triggered
On 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
- class
Name String - created
On String - id String
- instances Map<String,Double>
- modified
On String - name String
- schedules
List<Get
Workflows Result Schedule> - script
Deleted Boolean - Whether the bound Worker was deleted, leaving this Workflow inactive.
- script
Name String - triggered
On String
- class
Name string - created
On string - id string
- instances {[key: string]: number}
- modified
On string - name string
- schedules
Get
Workflows Result Schedule[] - script
Deleted boolean - Whether the bound Worker was deleted, leaving this Workflow inactive.
- script
Name string - triggered
On string
- class_
name str - created_
on str - id str
- instances Mapping[str, float]
- modified_
on str - name str
- schedules
Sequence[Get
Workflows Result Schedule] - script_
deleted bool - Whether the bound Worker was deleted, leaving this Workflow inactive.
- script_
name str - triggered_
on str
- class
Name String - created
On String - id String
- instances Map<Number>
- modified
On String - name String
- schedules List<Property Map>
- script
Deleted Boolean - Whether the bound Worker was deleted, leaving this Workflow inactive.
- script
Name String - triggered
On String
GetWorkflowsResultSchedule
- Cron string
- Next
Instance string
- Cron string
- Next
Instance string
- cron string
- next_
instance string
- cron String
- next
Instance String
- cron string
- next
Instance string
- cron str
- next_
instance str
- cron String
- next
Instance String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.22.1
published on Tuesday, Oct 13, 2026 by Pulumi
published on Tuesday, Oct 13, 2026 by Pulumi