1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersCustomDomain
Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

cloudflare.getWorkersCustomDomain

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleWorkersCustomDomain = cloudflare.getWorkersCustomDomain({
    accountId: "9a7806061c88ada191ed06f989cc3dac",
    domainId: "dbe10b4bc17c295377eabd600e1787fd",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_workers_custom_domain = cloudflare.get_workers_custom_domain(account_id="9a7806061c88ada191ed06f989cc3dac",
    domain_id="dbe10b4bc17c295377eabd600e1787fd")
Copy
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.LookupWorkersCustomDomain(ctx, &cloudflare.LookupWorkersCustomDomainArgs{
			AccountId: "9a7806061c88ada191ed06f989cc3dac",
			DomainId:  pulumi.StringRef("dbe10b4bc17c295377eabd600e1787fd"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleWorkersCustomDomain = Cloudflare.GetWorkersCustomDomain.Invoke(new()
    {
        AccountId = "9a7806061c88ada191ed06f989cc3dac",
        DomainId = "dbe10b4bc17c295377eabd600e1787fd",
    });

});
Copy
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.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 exampleWorkersCustomDomain = CloudflareFunctions.getWorkersCustomDomain(GetWorkersCustomDomainArgs.builder()
            .accountId("9a7806061c88ada191ed06f989cc3dac")
            .domainId("dbe10b4bc17c295377eabd600e1787fd")
            .build());

    }
}
Copy
variables:
  exampleWorkersCustomDomain:
    fn::invoke:
      function: cloudflare:getWorkersCustomDomain
      arguments:
        accountId: 9a7806061c88ada191ed06f989cc3dac
        domainId: dbe10b4bc17c295377eabd600e1787fd
Copy

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?: InvokeOptions): Output<GetWorkersCustomDomainResult>
Copy
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: Optional[pulumi.Input[str]] = None,
                              domain_id: Optional[pulumi.Input[str]] = None,
                              filter: Optional[pulumi.Input[GetWorkersCustomDomainFilterArgs]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetWorkersCustomDomainResult]
Copy
func LookupWorkersCustomDomain(ctx *Context, args *LookupWorkersCustomDomainArgs, opts ...InvokeOption) (*LookupWorkersCustomDomainResult, error)
func LookupWorkersCustomDomainOutput(ctx *Context, args *LookupWorkersCustomDomainOutputArgs, opts ...InvokeOption) LookupWorkersCustomDomainResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetWorkersCustomDomainResult> getWorkersCustomDomain(GetWorkersCustomDomainArgs args, InvokeOptions options)
public static Output<GetWorkersCustomDomainResult> getWorkersCustomDomain(GetWorkersCustomDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getWorkersCustomDomain:getWorkersCustomDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Identifer of the account.
DomainId string
Identifer of the Worker Domain.
Filter GetWorkersCustomDomainFilter
AccountId This property is required. string
Identifer of the account.
DomainId string
Identifer of the Worker Domain.
Filter GetWorkersCustomDomainFilter
accountId This property is required. String
Identifer of the account.
domainId String
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
accountId This property is required. string
Identifer of the account.
domainId string
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
account_id This property is required. str
Identifer of the account.
domain_id str
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
accountId This property is required. String
Identifer of the account.
domainId String
Identifer of the Worker Domain.
filter Property Map

getWorkersCustomDomain Result

The following output properties are available:

AccountId string
Identifer of the account.
Environment string
Worker environment associated with the zone and hostname.
Hostname string
Hostname of the Worker Domain.
Id string
Identifer of the Worker Domain.
Service string
Worker service associated with the zone and hostname.
ZoneId string
Identifier of the zone.
ZoneName string
Name of the zone.
DomainId string
Identifer of the Worker Domain.
Filter GetWorkersCustomDomainFilter
AccountId string
Identifer of the account.
Environment string
Worker environment associated with the zone and hostname.
Hostname string
Hostname of the Worker Domain.
Id string
Identifer of the Worker Domain.
Service string
Worker service associated with the zone and hostname.
ZoneId string
Identifier of the zone.
ZoneName string
Name of the zone.
DomainId string
Identifer of the Worker Domain.
Filter GetWorkersCustomDomainFilter
accountId String
Identifer of the account.
environment String
Worker environment associated with the zone and hostname.
hostname String
Hostname of the Worker Domain.
id String
Identifer of the Worker Domain.
service String
Worker service associated with the zone and hostname.
zoneId String
Identifier of the zone.
zoneName String
Name of the zone.
domainId String
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
accountId string
Identifer of the account.
environment string
Worker environment associated with the zone and hostname.
hostname string
Hostname of the Worker Domain.
id string
Identifer of the Worker Domain.
service string
Worker service associated with the zone and hostname.
zoneId string
Identifier of the zone.
zoneName string
Name of the zone.
domainId string
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
account_id str
Identifer of the account.
environment str
Worker environment associated with the zone and hostname.
hostname str
Hostname of the Worker Domain.
id str
Identifer of the Worker Domain.
service str
Worker service associated with the zone and hostname.
zone_id str
Identifier of the zone.
zone_name str
Name of the zone.
domain_id str
Identifer of the Worker Domain.
filter GetWorkersCustomDomainFilter
accountId String
Identifer of the account.
environment String
Worker environment associated with the zone and hostname.
hostname String
Hostname of the Worker Domain.
id String
Identifer of the Worker Domain.
service String
Worker service associated with the zone and hostname.
zoneId String
Identifier of the zone.
zoneName String
Name of the zone.
domainId String
Identifer of the Worker Domain.
filter Property Map

Supporting Types

GetWorkersCustomDomainFilter

Environment string
Worker environment associated with the zone and hostname.
Hostname string
Hostname of the Worker Domain.
Service string
Worker service associated with the zone and hostname.
ZoneId string
Identifier of the zone.
ZoneName string
Name of the zone.
Environment string
Worker environment associated with the zone and hostname.
Hostname string
Hostname of the Worker Domain.
Service string
Worker service associated with the zone and hostname.
ZoneId string
Identifier of the zone.
ZoneName string
Name of the zone.
environment String
Worker environment associated with the zone and hostname.
hostname String
Hostname of the Worker Domain.
service String
Worker service associated with the zone and hostname.
zoneId String
Identifier of the zone.
zoneName String
Name of the zone.
environment string
Worker environment associated with the zone and hostname.
hostname string
Hostname of the Worker Domain.
service string
Worker service associated with the zone and hostname.
zoneId string
Identifier of the zone.
zoneName string
Name of the zone.
environment str
Worker environment associated with the zone and hostname.
hostname str
Hostname of the Worker Domain.
service str
Worker service associated with the zone and hostname.
zone_id str
Identifier of the zone.
zone_name str
Name of the zone.
environment String
Worker environment associated with the zone and hostname.
hostname String
Hostname of the Worker Domain.
service String
Worker service associated with the zone and hostname.
zoneId String
Identifier of the zone.
zoneName String
Name of the zone.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.