Viewing docs for Cloudflare v6.24.0
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Viewing docs for Cloudflare v6.24.0
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi
Accepted Permissions
Workers Scripts ReadWorkers Scripts Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersCustomDomain = cloudflare.getWorkersCustomDomain({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
domainId: "dbe10b4bc17c295377eabd600e1787fd",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_custom_domain = cloudflare.get_workers_custom_domain(account_id="023e105f4ecef8ad9ca31a8372d0c353",
domain_id="dbe10b4bc17c295377eabd600e1787fd")
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.GetWorkersCustomDomain(ctx, &cloudflare.LookupWorkersCustomDomainArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
DomainId: pulumi.StringRef("dbe10b4bc17c295377eabd600e1787fd"),
}, 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 exampleWorkersCustomDomain = Cloudflare.GetWorkersCustomDomain.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
DomainId = "dbe10b4bc17c295377eabd600e1787fd",
});
});
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.GetWorkersCustomDomainArgs;
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 exampleWorkersCustomDomain = CloudflareFunctions.getWorkersCustomDomain(GetWorkersCustomDomainArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.domainId("dbe10b4bc17c295377eabd600e1787fd")
.build());
}
}
variables:
exampleWorkersCustomDomain:
fn::invoke:
function: cloudflare:getWorkersCustomDomain
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
domainId: dbe10b4bc17c295377eabd600e1787fd
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_workers_custom_domain" "exampleWorkersCustomDomain" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
domain_id = "dbe10b4bc17c295377eabd600e1787fd"
}
Using getWorkersCustomDomain
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 getWorkersCustomDomain(args: GetWorkersCustomDomainArgs, opts?: InvokeOptions): Promise<GetWorkersCustomDomainResult>
function getWorkersCustomDomainOutput(args: GetWorkersCustomDomainOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkersCustomDomainResult>def get_workers_custom_domain(account_id: Optional[str] = None,
domain_id: Optional[str] = None,
filter: Optional[GetWorkersCustomDomainFilter] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersCustomDomainResult
def get_workers_custom_domain_output(account_id: pulumi.Input[Optional[str]] = None,
domain_id: pulumi.Input[Optional[str]] = None,
filter: pulumi.Input[Optional[GetWorkersCustomDomainFilterArgs]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkersCustomDomainResult]func LookupWorkersCustomDomain(ctx *Context, args *LookupWorkersCustomDomainArgs, opts ...InvokeOption) (*LookupWorkersCustomDomainResult, error)
func LookupWorkersCustomDomainOutput(ctx *Context, args *LookupWorkersCustomDomainOutputArgs, opts ...InvokeOption) LookupWorkersCustomDomainResultOutput> Note: This function is named LookupWorkersCustomDomain in the Go SDK.
public static class GetWorkersCustomDomain
{
public static Task<GetWorkersCustomDomainResult> InvokeAsync(GetWorkersCustomDomainArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersCustomDomainResult> Invoke(GetWorkersCustomDomainInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersCustomDomainResult> Invoke(GetWorkersCustomDomainInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetWorkersCustomDomainResult> getWorkersCustomDomain(GetWorkersCustomDomainArgs args, InvokeOptions options)
public static Output<GetWorkersCustomDomainResult> getWorkersCustomDomain(GetWorkersCustomDomainArgs args, InvokeOptions options)
public static Output<GetWorkersCustomDomainResult> getWorkersCustomDomain(GetWorkersCustomDomainArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getWorkersCustomDomain:getWorkersCustomDomain
arguments:
# arguments dictionarydata "cloudflare_get_workers_custom_domain" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Identifier.
- Domain
Id string - ID of the domain.
- Filter
Get
Workers Custom Domain Filter
- Account
Id string - Identifier.
- Domain
Id string - ID of the domain.
- Filter
Get
Workers Custom Domain Filter
- account_
id string - Identifier.
- domain_
id string - ID of the domain.
- filter object
- account
Id String - Identifier.
- domain
Id String - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account
Id string - Identifier.
- domain
Id string - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account_
id str - Identifier.
- domain_
id str - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account
Id String - Identifier.
- domain
Id String - ID of the domain.
- filter Property Map
getWorkersCustomDomain Result
The following output properties are available:
- Account
Id string - Identifier.
- Cert
Id string - ID of the TLS certificate issued for the domain.
- Enabled bool
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- Environment string
- Worker environment associated with the domain.
- Hostname string
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- Id string
- ID of the domain.
- Previews
Enabled bool - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - Service string
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- Zone
Id string - ID of the zone containing the domain hostname.
- Zone
Name string - Name of the zone containing the domain hostname.
- Domain
Id string - ID of the domain.
- Filter
Get
Workers Custom Domain Filter
- Account
Id string - Identifier.
- Cert
Id string - ID of the TLS certificate issued for the domain.
- Enabled bool
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- Environment string
- Worker environment associated with the domain.
- Hostname string
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- Id string
- ID of the domain.
- Previews
Enabled bool - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - Service string
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- Zone
Id string - ID of the zone containing the domain hostname.
- Zone
Name string - Name of the zone containing the domain hostname.
- Domain
Id string - ID of the domain.
- Filter
Get
Workers Custom Domain Filter
- account_
id string - Identifier.
- cert_
id string - ID of the TLS certificate issued for the domain.
- enabled bool
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- environment string
- Worker environment associated with the domain.
- hostname string
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- id string
- ID of the domain.
- previews_
enabled bool - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - service string
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- zone_
id string - ID of the zone containing the domain hostname.
- zone_
name string - Name of the zone containing the domain hostname.
- domain_
id string - ID of the domain.
- filter object
- account
Id String - Identifier.
- cert
Id String - ID of the TLS certificate issued for the domain.
- enabled Boolean
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- environment String
- Worker environment associated with the domain.
- hostname String
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- id String
- ID of the domain.
- previews
Enabled Boolean - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - service String
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- zone
Id String - ID of the zone containing the domain hostname.
- zone
Name String - Name of the zone containing the domain hostname.
- domain
Id String - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account
Id string - Identifier.
- cert
Id string - ID of the TLS certificate issued for the domain.
- enabled boolean
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- environment string
- Worker environment associated with the domain.
- hostname string
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- id string
- ID of the domain.
- previews
Enabled boolean - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - service string
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- zone
Id string - ID of the zone containing the domain hostname.
- zone
Name string - Name of the zone containing the domain hostname.
- domain
Id string - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account_
id str - Identifier.
- cert_
id str - ID of the TLS certificate issued for the domain.
- enabled bool
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- environment str
- Worker environment associated with the domain.
- hostname str
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- id str
- ID of the domain.
- previews_
enabled bool - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - service str
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- zone_
id str - ID of the zone containing the domain hostname.
- zone_
name str - Name of the zone containing the domain hostname.
- domain_
id str - ID of the domain.
- filter
Get
Workers Custom Domain Filter
- account
Id String - Identifier.
- cert
Id String - ID of the TLS certificate issued for the domain.
- enabled Boolean
- Whether the configured hostname is routable for the domain. If disabled, then requests to the configured hostname will not be routed to the configured Worker. If disabled, then preview routing must be enabled, and only subdomains of the configured hostname will be routable.
- environment String
- Worker environment associated with the domain.
- hostname String
- Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.
- id String
- ID of the domain.
- previews
Enabled Boolean - Whether previews are routable for the domain. If enabled, previews will be routable as subdomains of the configured hostname. For example, if the configured hostname is
app.example.com, then requests tomy-feature.app.example.comwill be routed to the preview with slugmy-feature, if such a preview exists. If preview routing is disabled, then hostname routing must be enabled. - service String
- Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.
- zone
Id String - ID of the zone containing the domain hostname.
- zone
Name String - Name of the zone containing the domain hostname.
- domain
Id String - ID of the domain.
- filter Property Map
Supporting Types
GetWorkersCustomDomainFilter
- Enabled bool
- Whether the configured hostname is routable for the domain.
- Environment string
- Worker environment associated with the domain.
- Hostname string
- Hostname of the domain.
- Previews
Enabled bool - Whether previews are routable for the domain.
- Service string
- Name of the Worker associated with the domain.
- Zone
Id string - ID of the zone containing the domain hostname.
- Zone
Name string - Name of the zone containing the domain hostname.
- Enabled bool
- Whether the configured hostname is routable for the domain.
- Environment string
- Worker environment associated with the domain.
- Hostname string
- Hostname of the domain.
- Previews
Enabled bool - Whether previews are routable for the domain.
- Service string
- Name of the Worker associated with the domain.
- Zone
Id string - ID of the zone containing the domain hostname.
- Zone
Name string - Name of the zone containing the domain hostname.
- enabled bool
- Whether the configured hostname is routable for the domain.
- environment string
- Worker environment associated with the domain.
- hostname string
- Hostname of the domain.
- previews_
enabled bool - Whether previews are routable for the domain.
- service string
- Name of the Worker associated with the domain.
- zone_
id string - ID of the zone containing the domain hostname.
- zone_
name string - Name of the zone containing the domain hostname.
- enabled Boolean
- Whether the configured hostname is routable for the domain.
- environment String
- Worker environment associated with the domain.
- hostname String
- Hostname of the domain.
- previews
Enabled Boolean - Whether previews are routable for the domain.
- service String
- Name of the Worker associated with the domain.
- zone
Id String - ID of the zone containing the domain hostname.
- zone
Name String - Name of the zone containing the domain hostname.
- enabled boolean
- Whether the configured hostname is routable for the domain.
- environment string
- Worker environment associated with the domain.
- hostname string
- Hostname of the domain.
- previews
Enabled boolean - Whether previews are routable for the domain.
- service string
- Name of the Worker associated with the domain.
- zone
Id string - ID of the zone containing the domain hostname.
- zone
Name string - Name of the zone containing the domain hostname.
- enabled bool
- Whether the configured hostname is routable for the domain.
- environment str
- Worker environment associated with the domain.
- hostname str
- Hostname of the domain.
- previews_
enabled bool - Whether previews are routable for the domain.
- service str
- Name of the Worker associated with the domain.
- zone_
id str - ID of the zone containing the domain hostname.
- zone_
name str - Name of the zone containing the domain hostname.
- enabled Boolean
- Whether the configured hostname is routable for the domain.
- environment String
- Worker environment associated with the domain.
- hostname String
- Hostname of the domain.
- previews
Enabled Boolean - Whether previews are routable for the domain.
- service String
- Name of the Worker associated with the domain.
- zone
Id String - ID of the zone containing the domain hostname.
- zone
Name String - Name of the zone containing the domain hostname.
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.24.0
published on Thursday, Nov 12, 2026 by Pulumi
published on Thursday, Nov 12, 2026 by Pulumi