Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
published on Tuesday, Aug 25, 2026 by Pulumi
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
published on Tuesday, Aug 25, 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
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_getworkflows" "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
Get
Workflows Result Instances - Modified
On string - Name string
- Schedules
List<Get
Workflows Result Schedule> - Script
Name string - Triggered
On string
- Class
Name string - Created
On string - Id string
- Instances
Get
Workflows Result Instances - Modified
On string - Name string
- Schedules
[]Get
Workflows Result Schedule - Script
Name string - Triggered
On string
- class_
name string - created_
on string - id string
- instances object
- modified_
on string - name string
- schedules list(object)
- script_
name string - triggered_
on string
- class
Name String - created
On String - id String
- instances
Get
Workflows Result Instances - modified
On String - name String
- schedules
List<Get
Workflows Result Schedule> - script
Name String - triggered
On String
- class
Name string - created
On string - id string
- instances
Get
Workflows Result Instances - modified
On string - name string
- schedules
Get
Workflows Result Schedule[] - script
Name string - triggered
On string
- class
Name String - created
On String - id String
- instances Property Map
- modified
On String - name String
- schedules List<Property Map>
- script
Name String - triggered
On String
GetWorkflowsResultInstances
- Complete double
- Errored double
- Paused double
- Queued double
- Rolling
Back double - Running double
- Terminated double
- Waiting double
- Waiting
For doublePause
- Complete float64
- Errored float64
- Paused float64
- Queued float64
- Rolling
Back float64 - Running float64
- Terminated float64
- Waiting float64
- Waiting
For float64Pause
- complete number
- errored number
- paused number
- queued number
- rolling_
back number - running number
- terminated number
- waiting number
- waiting_
for_ numberpause
- complete Double
- errored Double
- paused Double
- queued Double
- rolling
Back Double - running Double
- terminated Double
- waiting Double
- waiting
For DoublePause
- complete number
- errored number
- paused number
- queued number
- rolling
Back number - running number
- terminated number
- waiting number
- waiting
For numberPause
- complete float
- errored float
- paused float
- queued float
- rolling_
back float - running float
- terminated float
- waiting float
- waiting_
for_ floatpause
- complete Number
- errored Number
- paused Number
- queued Number
- rolling
Back Number - running Number
- terminated Number
- waiting Number
- waiting
For NumberPause
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.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
published on Tuesday, Aug 25, 2026 by Pulumi