Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi
cloudflare.getWorkflow
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:
- Account
Id string - Filter
Get
Workflow Filter - Workflow
Name string
- Account
Id string - Filter
Get
Workflow Filter - Workflow
Name string
- account
Id String - filter
Get
Workflow Filter - workflow
Name String
- account
Id string - filter
Get
Workflow Filter - workflow
Name string
- account
Id String - filter Property Map
- workflow
Name String
getWorkflow Result
The following output properties are available:
- Account
Id string - Class
Name string - Created
On string - Id string
- The ID of this resource.
- Instances
Get
Workflow Instances - Modified
On string - Name string
- Script
Name string - Triggered
On string - Filter
Get
Workflow Filter - Workflow
Name string
- Account
Id string - Class
Name string - Created
On string - Id string
- The ID of this resource.
- Instances
Get
Workflow Instances - Modified
On string - Name string
- Script
Name string - Triggered
On string - Filter
Get
Workflow Filter - Workflow
Name string
- account
Id String - class
Name String - created
On String - id String
- The ID of this resource.
- instances
Get
Workflow Instances - modified
On String - name String
- script
Name String - triggered
On String - filter
Get
Workflow Filter - workflow
Name String
- account
Id string - class
Name string - created
On string - id string
- The ID of this resource.
- instances
Get
Workflow Instances - modified
On string - name string
- script
Name string - triggered
On string - filter
Get
Workflow Filter - workflow
Name string
- account_
id str - class_
name str - created_
on str - id str
- The ID of this resource.
- instances
Get
Workflow Instances - modified_
on str - name str
- script_
name str - triggered_
on str - filter
Get
Workflow Filter - workflow_
name str
- account
Id String - class
Name String - created
On String - id String
- The ID of this resource.
- instances Property Map
- modified
On String - name String
- script
Name String - triggered
On String - filter Property Map
- workflow
Name 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
- Waiting
For doublePause
- Complete float64
- Errored float64
- Paused float64
- Queued float64
- Running float64
- Terminated float64
- Waiting float64
- Waiting
For float64Pause
- complete Double
- errored Double
- paused Double
- queued Double
- running Double
- terminated Double
- waiting Double
- waiting
For DoublePause
- complete number
- errored number
- paused number
- queued number
- running number
- terminated number
- waiting number
- waiting
For numberPause
- complete float
- errored float
- paused float
- queued float
- running float
- terminated float
- waiting float
- waiting_
for_ floatpause
- complete Number
- errored Number
- paused Number
- queued Number
- running Number
- terminated Number
- waiting Number
- waiting
For NumberPause
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.