Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersScript = cloudflare.getWorkersScript({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
scriptName: "this-is_my_script-01",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_script = cloudflare.get_workers_script(account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01")
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.LookupWorkersScript(ctx, &cloudflare.LookupWorkersScriptArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
ScriptName: pulumi.StringRef("this-is_my_script-01"),
}, 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 exampleWorkersScript = Cloudflare.GetWorkersScript.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ScriptName = "this-is_my_script-01",
});
});
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.GetWorkersScriptArgs;
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 exampleWorkersScript = CloudflareFunctions.getWorkersScript(GetWorkersScriptArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.scriptName("this-is_my_script-01")
.build());
}
}
variables:
exampleWorkersScript:
fn::invoke:
function: cloudflare:getWorkersScript
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
scriptName: this-is_my_script-01
Using getWorkersScript
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 getWorkersScript(args: GetWorkersScriptArgs, opts?: InvokeOptions): Promise<GetWorkersScriptResult>
function getWorkersScriptOutput(args: GetWorkersScriptOutputArgs, opts?: InvokeOptions): Output<GetWorkersScriptResult>def get_workers_script(account_id: Optional[str] = None,
filter: Optional[GetWorkersScriptFilter] = None,
script_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersScriptResult
def get_workers_script_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetWorkersScriptFilterArgs]] = None,
script_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersScriptResult]func LookupWorkersScript(ctx *Context, args *LookupWorkersScriptArgs, opts ...InvokeOption) (*LookupWorkersScriptResult, error)
func LookupWorkersScriptOutput(ctx *Context, args *LookupWorkersScriptOutputArgs, opts ...InvokeOption) LookupWorkersScriptResultOutput> Note: This function is named LookupWorkersScript in the Go SDK.
public static class GetWorkersScript
{
public static Task<GetWorkersScriptResult> InvokeAsync(GetWorkersScriptArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersScriptResult> Invoke(GetWorkersScriptInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkersScriptResult> getWorkersScript(GetWorkersScriptArgs args, InvokeOptions options)
public static Output<GetWorkersScriptResult> getWorkersScript(GetWorkersScriptArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersScript:getWorkersScript
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Identifier.
- Filter
Get
Workers Script Filter - Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Filter
Get
Workers Script Filter - Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- filter
Get
Workers Script Filter - script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- filter
Get
Workers Script Filter - script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- filter
Get
Workers Script Filter - script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- filter Property Map
- script
Name String - Name of the script, used in URLs and route configuration.
getWorkersScript Result
The following output properties are available:
- Account
Id string - Identifier.
- Id string
- Name of the script, used in URLs and route configuration.
- Filter
Get
Workers Script Filter - Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Id string
- Name of the script, used in URLs and route configuration.
- Filter
Get
Workers Script Filter - Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- id String
- Name of the script, used in URLs and route configuration.
- filter
Get
Workers Script Filter - script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- id string
- Name of the script, used in URLs and route configuration.
- filter
Get
Workers Script Filter - script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- id str
- Name of the script, used in URLs and route configuration.
- filter
Get
Workers Script Filter - script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- id String
- Name of the script, used in URLs and route configuration.
- filter Property Map
- script
Name String - Name of the script, used in URLs and route configuration.
Supporting Types
GetWorkersScriptFilter
- string
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
- string
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
- String
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
- string
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
- str
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
- String
- Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
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.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
