1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersScripts
Cloudflare v6.13.0 published on Wednesday, Jan 21, 2026 by Pulumi
cloudflare logo
Cloudflare v6.13.0 published on Wednesday, Jan 21, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleWorkersScripts = cloudflare.getWorkersScripts({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        tags: "production:yes,staging:no",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workers_scripts = cloudflare.get_workers_scripts(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        tags="production:yes,staging:no")
    
    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.LookupWorkersScripts(ctx, &cloudflare.LookupWorkersScriptsArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			Tags:      pulumi.StringRef("production:yes,staging:no"),
    		}, 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 exampleWorkersScripts = Cloudflare.GetWorkersScripts.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Tags = "production:yes,staging:no",
        });
    
    });
    
    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.GetWorkersScriptsArgs;
    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 exampleWorkersScripts = CloudflareFunctions.getWorkersScripts(GetWorkersScriptsArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .tags("production:yes,staging:no")
                .build());
    
        }
    }
    
    variables:
      exampleWorkersScripts:
        fn::invoke:
          function: cloudflare:getWorkersScripts
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            tags: production:yes,staging:no
    

    Using getWorkersScripts

    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 getWorkersScripts(args: GetWorkersScriptsArgs, opts?: InvokeOptions): Promise<GetWorkersScriptsResult>
    function getWorkersScriptsOutput(args: GetWorkersScriptsOutputArgs, opts?: InvokeOptions): Output<GetWorkersScriptsResult>
    def get_workers_scripts(account_id: Optional[str] = None,
                            max_items: Optional[int] = None,
                            tags: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetWorkersScriptsResult
    def get_workers_scripts_output(account_id: Optional[pulumi.Input[str]] = None,
                            max_items: Optional[pulumi.Input[int]] = None,
                            tags: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetWorkersScriptsResult]
    func LookupWorkersScripts(ctx *Context, args *LookupWorkersScriptsArgs, opts ...InvokeOption) (*LookupWorkersScriptsResult, error)
    func LookupWorkersScriptsOutput(ctx *Context, args *LookupWorkersScriptsOutputArgs, opts ...InvokeOption) LookupWorkersScriptsResultOutput

    > Note: This function is named LookupWorkersScripts in the Go SDK.

    public static class GetWorkersScripts 
    {
        public static Task<GetWorkersScriptsResult> InvokeAsync(GetWorkersScriptsArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkersScriptsResult> Invoke(GetWorkersScriptsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkersScriptsResult> getWorkersScripts(GetWorkersScriptsArgs args, InvokeOptions options)
    public static Output<GetWorkersScriptsResult> getWorkersScripts(GetWorkersScriptsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkersScripts:getWorkersScripts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    MaxItems int
    Max items to fetch, default: 1000
    Tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    AccountId string
    Identifier.
    MaxItems int
    Max items to fetch, default: 1000
    Tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId String
    Identifier.
    maxItems Integer
    Max items to fetch, default: 1000
    tags String
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId string
    Identifier.
    maxItems number
    Max items to fetch, default: 1000
    tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    account_id str
    Identifier.
    max_items int
    Max items to fetch, default: 1000
    tags str
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId String
    Identifier.
    maxItems Number
    Max items to fetch, default: 1000
    tags String
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.

    getWorkersScripts Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetWorkersScriptsResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetWorkersScriptsResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    Tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetWorkersScriptsResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    tags String
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetWorkersScriptsResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    tags string
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    account_id str
    Identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetWorkersScriptsResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    tags str
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.
    accountId String
    Identifier.
    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
    tags String
    Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is 'yes' or 'no'.

    Supporting Types

    GetWorkersScriptsResult

    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags List<string>
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers List<string>
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    Id string
    The name used to identify the script.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers List<GetWorkersScriptsResultNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    Observability GetWorkersScriptsResultObservability
    Observability settings for the Worker.
    Placement GetWorkersScriptsResultPlacement
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    PlacementMode string
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    Routes List<GetWorkersScriptsResultRoute>
    Routes associated with the Worker.
    Tag string
    The immutable ID of the script.
    Tags List<string>
    Tags associated with the Worker.
    TailConsumers List<GetWorkersScriptsResultTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    CompatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    CompatibilityFlags []string
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    CreatedOn string
    When the script was created.
    Etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    Handlers []string
    The names of handlers exported as part of the default export.
    HasAssets bool
    Whether a Worker contains assets.
    HasModules bool
    Whether a Worker contains modules.
    Id string
    The name used to identify the script.
    LastDeployedFrom string
    The client most recently used to deploy this Worker.
    Logpush bool
    Whether Logpush is turned on for the Worker.
    MigrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    ModifiedOn string
    When the script was last modified.
    NamedHandlers []GetWorkersScriptsResultNamedHandler
    Named exports, such as Durable Object class implementations and named entrypoints.
    Observability GetWorkersScriptsResultObservability
    Observability settings for the Worker.
    Placement GetWorkersScriptsResultPlacement
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    PlacementMode string
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    PlacementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    Routes []GetWorkersScriptsResultRoute
    Routes associated with the Worker.
    Tag string
    The immutable ID of the script.
    Tags []string
    Tags associated with the Worker.
    TailConsumers []GetWorkersScriptsResultTailConsumer
    List of Workers that will consume logs from the attached Worker.
    UsageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags List<String>
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    id String
    The name used to identify the script.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<GetWorkersScriptsResultNamedHandler>
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability GetWorkersScriptsResultObservability
    Observability settings for the Worker.
    placement GetWorkersScriptsResultPlacement
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    placementMode String
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    routes List<GetWorkersScriptsResultRoute>
    Routes associated with the Worker.
    tag String
    The immutable ID of the script.
    tags List<String>
    Tags associated with the Worker.
    tailConsumers List<GetWorkersScriptsResultTailConsumer>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    compatibilityDate string
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags string[]
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    createdOn string
    When the script was created.
    etag string
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers string[]
    The names of handlers exported as part of the default export.
    hasAssets boolean
    Whether a Worker contains assets.
    hasModules boolean
    Whether a Worker contains modules.
    id string
    The name used to identify the script.
    lastDeployedFrom string
    The client most recently used to deploy this Worker.
    logpush boolean
    Whether Logpush is turned on for the Worker.
    migrationTag string
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn string
    When the script was last modified.
    namedHandlers GetWorkersScriptsResultNamedHandler[]
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability GetWorkersScriptsResultObservability
    Observability settings for the Worker.
    placement GetWorkersScriptsResultPlacement
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    placementMode string
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    placementStatus string
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    routes GetWorkersScriptsResultRoute[]
    Routes associated with the Worker.
    tag string
    The immutable ID of the script.
    tags string[]
    Tags associated with the Worker.
    tailConsumers GetWorkersScriptsResultTailConsumer[]
    List of Workers that will consume logs from the attached Worker.
    usageModel string
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    compatibility_date str
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibility_flags Sequence[str]
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    created_on str
    When the script was created.
    etag str
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers Sequence[str]
    The names of handlers exported as part of the default export.
    has_assets bool
    Whether a Worker contains assets.
    has_modules bool
    Whether a Worker contains modules.
    id str
    The name used to identify the script.
    last_deployed_from str
    The client most recently used to deploy this Worker.
    logpush bool
    Whether Logpush is turned on for the Worker.
    migration_tag str
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modified_on str
    When the script was last modified.
    named_handlers Sequence[GetWorkersScriptsResultNamedHandler]
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability GetWorkersScriptsResultObservability
    Observability settings for the Worker.
    placement GetWorkersScriptsResultPlacement
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    placement_mode str
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    placement_status str
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    routes Sequence[GetWorkersScriptsResultRoute]
    Routes associated with the Worker.
    tag str
    The immutable ID of the script.
    tags Sequence[str]
    Tags associated with the Worker.
    tail_consumers Sequence[GetWorkersScriptsResultTailConsumer]
    List of Workers that will consume logs from the attached Worker.
    usage_model str
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".
    compatibilityDate String
    Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.
    compatibilityFlags List<String>
    Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a compatibility_date.
    createdOn String
    When the script was created.
    etag String
    Hashed script content, can be used in a If-None-Match header when updating.
    handlers List<String>
    The names of handlers exported as part of the default export.
    hasAssets Boolean
    Whether a Worker contains assets.
    hasModules Boolean
    Whether a Worker contains modules.
    id String
    The name used to identify the script.
    lastDeployedFrom String
    The client most recently used to deploy this Worker.
    logpush Boolean
    Whether Logpush is turned on for the Worker.
    migrationTag String
    The tag of the Durable Object migration that was most recently applied for this Worker.
    modifiedOn String
    When the script was last modified.
    namedHandlers List<Property Map>
    Named exports, such as Durable Object class implementations and named entrypoints.
    observability Property Map
    Observability settings for the Worker.
    placement Property Map
    Configuration for Smart Placement. Specify either mode for Smart Placement, or one of region/hostname/host for targeted placement.
    placementMode String
    Available values: "smart".

    Deprecated: This attribute is deprecated.

    placementStatus String
    Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    Deprecated: This attribute is deprecated.

    routes List<Property Map>
    Routes associated with the Worker.
    tag String
    The immutable ID of the script.
    tags List<String>
    Tags associated with the Worker.
    tailConsumers List<Property Map>
    List of Workers that will consume logs from the attached Worker.
    usageModel String
    Usage model for the Worker invocations. Available values: "standard", "bundled", "unbound".

    GetWorkersScriptsResultNamedHandler

    Handlers List<string>
    The names of handlers exported as part of the named export.
    Name string
    The name of the export.
    Handlers []string
    The names of handlers exported as part of the named export.
    Name string
    The name of the export.
    handlers List<String>
    The names of handlers exported as part of the named export.
    name String
    The name of the export.
    handlers string[]
    The names of handlers exported as part of the named export.
    name string
    The name of the export.
    handlers Sequence[str]
    The names of handlers exported as part of the named export.
    name str
    The name of the export.
    handlers List<String>
    The names of handlers exported as part of the named export.
    name String
    The name of the export.

    GetWorkersScriptsResultObservability

    Enabled bool
    Whether observability is enabled for the Worker.
    HeadSamplingRate double
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Logs GetWorkersScriptsResultObservabilityLogs
    Log settings for the Worker.
    Enabled bool
    Whether observability is enabled for the Worker.
    HeadSamplingRate float64
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    Logs GetWorkersScriptsResultObservabilityLogs
    Log settings for the Worker.
    enabled Boolean
    Whether observability is enabled for the Worker.
    headSamplingRate Double
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs GetWorkersScriptsResultObservabilityLogs
    Log settings for the Worker.
    enabled boolean
    Whether observability is enabled for the Worker.
    headSamplingRate number
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs GetWorkersScriptsResultObservabilityLogs
    Log settings for the Worker.
    enabled bool
    Whether observability is enabled for the Worker.
    head_sampling_rate float
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs GetWorkersScriptsResultObservabilityLogs
    Log settings for the Worker.
    enabled Boolean
    Whether observability is enabled for the Worker.
    headSamplingRate Number
    The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    logs Property Map
    Log settings for the Worker.

    GetWorkersScriptsResultObservabilityLogs

    Destinations List<string>
    A list of destinations where logs will be exported to.
    Enabled bool
    Whether logs are enabled for the Worker.
    HeadSamplingRate double
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    InvocationLogs bool
    Whether invocation logs are enabled for the Worker.
    Persist bool
    Whether log persistence is enabled for the Worker.
    Destinations []string
    A list of destinations where logs will be exported to.
    Enabled bool
    Whether logs are enabled for the Worker.
    HeadSamplingRate float64
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    InvocationLogs bool
    Whether invocation logs are enabled for the Worker.
    Persist bool
    Whether log persistence is enabled for the Worker.
    destinations List<String>
    A list of destinations where logs will be exported to.
    enabled Boolean
    Whether logs are enabled for the Worker.
    headSamplingRate Double
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    invocationLogs Boolean
    Whether invocation logs are enabled for the Worker.
    persist Boolean
    Whether log persistence is enabled for the Worker.
    destinations string[]
    A list of destinations where logs will be exported to.
    enabled boolean
    Whether logs are enabled for the Worker.
    headSamplingRate number
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    invocationLogs boolean
    Whether invocation logs are enabled for the Worker.
    persist boolean
    Whether log persistence is enabled for the Worker.
    destinations Sequence[str]
    A list of destinations where logs will be exported to.
    enabled bool
    Whether logs are enabled for the Worker.
    head_sampling_rate float
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    invocation_logs bool
    Whether invocation logs are enabled for the Worker.
    persist bool
    Whether log persistence is enabled for the Worker.
    destinations List<String>
    A list of destinations where logs will be exported to.
    enabled Boolean
    Whether logs are enabled for the Worker.
    headSamplingRate Number
    The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.
    invocationLogs Boolean
    Whether invocation logs are enabled for the Worker.
    persist Boolean
    Whether log persistence is enabled for the Worker.

    GetWorkersScriptsResultPlacement

    Host string
    TCP host and port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    LastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    Mode string
    Enables Smart Placement. Available values: "smart".
    Region string
    Cloud region for targeted placement in format 'provider:region'.
    Status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    Host string
    TCP host and port for targeted placement.
    Hostname string
    HTTP hostname for targeted placement.
    LastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    Mode string
    Enables Smart Placement. Available values: "smart".
    Region string
    Cloud region for targeted placement in format 'provider:region'.
    Status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    host String
    TCP host and port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    lastAnalyzedAt String
    The last time the script was analyzed for Smart Placement.
    mode String
    Enables Smart Placement. Available values: "smart".
    region String
    Cloud region for targeted placement in format 'provider:region'.
    status String
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    host string
    TCP host and port for targeted placement.
    hostname string
    HTTP hostname for targeted placement.
    lastAnalyzedAt string
    The last time the script was analyzed for Smart Placement.
    mode string
    Enables Smart Placement. Available values: "smart".
    region string
    Cloud region for targeted placement in format 'provider:region'.
    status string
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    host str
    TCP host and port for targeted placement.
    hostname str
    HTTP hostname for targeted placement.
    last_analyzed_at str
    The last time the script was analyzed for Smart Placement.
    mode str
    Enables Smart Placement. Available values: "smart".
    region str
    Cloud region for targeted placement in format 'provider:region'.
    status str
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".
    host String
    TCP host and port for targeted placement.
    hostname String
    HTTP hostname for targeted placement.
    lastAnalyzedAt String
    The last time the script was analyzed for Smart Placement.
    mode String
    Enables Smart Placement. Available values: "smart".
    region String
    Cloud region for targeted placement in format 'provider:region'.
    status String
    Status of Smart Placement. Available values: "SUCCESS", "UNSUPPORTEDAPPLICATION", "INSUFFICIENTINVOCATIONS".

    GetWorkersScriptsResultRoute

    Id string
    Identifier.
    Pattern string
    Pattern to match incoming requests against. Learn more.
    Script string
    Name of the script to run if the route matches.
    Id string
    Identifier.
    Pattern string
    Pattern to match incoming requests against. Learn more.
    Script string
    Name of the script to run if the route matches.
    id String
    Identifier.
    pattern String
    Pattern to match incoming requests against. Learn more.
    script String
    Name of the script to run if the route matches.
    id string
    Identifier.
    pattern string
    Pattern to match incoming requests against. Learn more.
    script string
    Name of the script to run if the route matches.
    id str
    Identifier.
    pattern str
    Pattern to match incoming requests against. Learn more.
    script str
    Name of the script to run if the route matches.
    id String
    Identifier.
    pattern String
    Pattern to match incoming requests against. Learn more.
    script String
    Name of the script to run if the route matches.

    GetWorkersScriptsResultTailConsumer

    Environment string
    Optional environment if the Worker utilizes one.
    Namespace string
    Optional dispatch namespace the script belongs to.
    Service string
    Name of Worker that is to be the consumer.
    Environment string
    Optional environment if the Worker utilizes one.
    Namespace string
    Optional dispatch namespace the script belongs to.
    Service string
    Name of Worker that is to be the consumer.
    environment String
    Optional environment if the Worker utilizes one.
    namespace String
    Optional dispatch namespace the script belongs to.
    service String
    Name of Worker that is to be the consumer.
    environment string
    Optional environment if the Worker utilizes one.
    namespace string
    Optional dispatch namespace the script belongs to.
    service string
    Name of Worker that is to be the consumer.
    environment str
    Optional environment if the Worker utilizes one.
    namespace str
    Optional dispatch namespace the script belongs to.
    service str
    Name of Worker that is to be the consumer.
    environment String
    Optional environment if the Worker utilizes one.
    namespace String
    Optional dispatch namespace the script belongs to.
    service String
    Name of Worker that is to be the consumer.

    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.13.0 published on Wednesday, Jan 21, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate