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 exampleWorkersScriptSubdomain = cloudflare.getWorkersScriptSubdomain({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
scriptName: "this-is_my_script-01",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_script_subdomain = cloudflare.get_workers_script_subdomain(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.LookupWorkersScriptSubdomain(ctx, &cloudflare.LookupWorkersScriptSubdomainArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
ScriptName: "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 exampleWorkersScriptSubdomain = Cloudflare.GetWorkersScriptSubdomain.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.GetWorkersScriptSubdomainArgs;
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 exampleWorkersScriptSubdomain = CloudflareFunctions.getWorkersScriptSubdomain(GetWorkersScriptSubdomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.scriptName("this-is_my_script-01")
.build());
}
}
variables:
exampleWorkersScriptSubdomain:
fn::invoke:
function: cloudflare:getWorkersScriptSubdomain
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
scriptName: this-is_my_script-01
Using getWorkersScriptSubdomain
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 getWorkersScriptSubdomain(args: GetWorkersScriptSubdomainArgs, opts?: InvokeOptions): Promise<GetWorkersScriptSubdomainResult>
function getWorkersScriptSubdomainOutput(args: GetWorkersScriptSubdomainOutputArgs, opts?: InvokeOptions): Output<GetWorkersScriptSubdomainResult>def get_workers_script_subdomain(account_id: Optional[str] = None,
script_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersScriptSubdomainResult
def get_workers_script_subdomain_output(account_id: Optional[pulumi.Input[str]] = None,
script_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersScriptSubdomainResult]func LookupWorkersScriptSubdomain(ctx *Context, args *LookupWorkersScriptSubdomainArgs, opts ...InvokeOption) (*LookupWorkersScriptSubdomainResult, error)
func LookupWorkersScriptSubdomainOutput(ctx *Context, args *LookupWorkersScriptSubdomainOutputArgs, opts ...InvokeOption) LookupWorkersScriptSubdomainResultOutput> Note: This function is named LookupWorkersScriptSubdomain in the Go SDK.
public static class GetWorkersScriptSubdomain
{
public static Task<GetWorkersScriptSubdomainResult> InvokeAsync(GetWorkersScriptSubdomainArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersScriptSubdomainResult> Invoke(GetWorkersScriptSubdomainInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkersScriptSubdomainResult> getWorkersScriptSubdomain(GetWorkersScriptSubdomainArgs args, InvokeOptions options)
public static Output<GetWorkersScriptSubdomainResult> getWorkersScriptSubdomain(GetWorkersScriptSubdomainArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersScriptSubdomain:getWorkersScriptSubdomain
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Identifier.
- Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- script
Name String - Name of the script, used in URLs and route configuration.
getWorkersScriptSubdomain Result
The following output properties are available:
- Account
Id string - Identifier.
- Enabled bool
- Whether the Worker is available on the workers.dev subdomain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Previews
Enabled bool - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Enabled bool
- Whether the Worker is available on the workers.dev subdomain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Previews
Enabled bool - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- enabled Boolean
- Whether the Worker is available on the workers.dev subdomain.
- id String
- The provider-assigned unique ID for this managed resource.
- previews
Enabled Boolean - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- enabled boolean
- Whether the Worker is available on the workers.dev subdomain.
- id string
- The provider-assigned unique ID for this managed resource.
- previews
Enabled boolean - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- enabled bool
- Whether the Worker is available on the workers.dev subdomain.
- id str
- The provider-assigned unique ID for this managed resource.
- previews_
enabled bool - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- enabled Boolean
- Whether the Worker is available on the workers.dev subdomain.
- id String
- The provider-assigned unique ID for this managed resource.
- previews
Enabled Boolean - Whether the Worker's Preview URLs are available on the workers.dev subdomain.
- script
Name String - Name of the script, used in URLs and route configuration.
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
