Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWorkersCustomDomains
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersCustomDomains = cloudflare.getWorkersCustomDomains({
accountId: "9a7806061c88ada191ed06f989cc3dac",
environment: "production",
hostname: "foo.example.com",
service: "foo",
zoneId: "593c9c94de529bbbfaac7c53ced0447d",
zoneName: "example.com",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_custom_domains = cloudflare.get_workers_custom_domains(account_id="9a7806061c88ada191ed06f989cc3dac",
environment="production",
hostname="foo.example.com",
service="foo",
zone_id="593c9c94de529bbbfaac7c53ced0447d",
zone_name="example.com")
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.LookupWorkersCustomDomains(ctx, &cloudflare.LookupWorkersCustomDomainsArgs{
AccountId: "9a7806061c88ada191ed06f989cc3dac",
Environment: pulumi.StringRef("production"),
Hostname: pulumi.StringRef("foo.example.com"),
Service: pulumi.StringRef("foo"),
ZoneId: pulumi.StringRef("593c9c94de529bbbfaac7c53ced0447d"),
ZoneName: pulumi.StringRef("example.com"),
}, 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 exampleWorkersCustomDomains = Cloudflare.GetWorkersCustomDomains.Invoke(new()
{
AccountId = "9a7806061c88ada191ed06f989cc3dac",
Environment = "production",
Hostname = "foo.example.com",
Service = "foo",
ZoneId = "593c9c94de529bbbfaac7c53ced0447d",
ZoneName = "example.com",
});
});
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.GetWorkersCustomDomainsArgs;
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 exampleWorkersCustomDomains = CloudflareFunctions.getWorkersCustomDomains(GetWorkersCustomDomainsArgs.builder()
.accountId("9a7806061c88ada191ed06f989cc3dac")
.environment("production")
.hostname("foo.example.com")
.service("foo")
.zoneId("593c9c94de529bbbfaac7c53ced0447d")
.zoneName("example.com")
.build());
}
}
variables:
exampleWorkersCustomDomains:
fn::invoke:
function: cloudflare:getWorkersCustomDomains
arguments:
accountId: 9a7806061c88ada191ed06f989cc3dac
environment: production
hostname: foo.example.com
service: foo
zoneId: 593c9c94de529bbbfaac7c53ced0447d
zoneName: example.com
Using getWorkersCustomDomains
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 getWorkersCustomDomains(args: GetWorkersCustomDomainsArgs, opts?: InvokeOptions): Promise<GetWorkersCustomDomainsResult>
function getWorkersCustomDomainsOutput(args: GetWorkersCustomDomainsOutputArgs, opts?: InvokeOptions): Output<GetWorkersCustomDomainsResult>
def get_workers_custom_domains(account_id: Optional[str] = None,
environment: Optional[str] = None,
hostname: Optional[str] = None,
max_items: Optional[int] = None,
service: Optional[str] = None,
zone_id: Optional[str] = None,
zone_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersCustomDomainsResult
def get_workers_custom_domains_output(account_id: Optional[pulumi.Input[str]] = None,
environment: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
service: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
zone_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersCustomDomainsResult]
func LookupWorkersCustomDomains(ctx *Context, args *LookupWorkersCustomDomainsArgs, opts ...InvokeOption) (*LookupWorkersCustomDomainsResult, error)
func LookupWorkersCustomDomainsOutput(ctx *Context, args *LookupWorkersCustomDomainsOutputArgs, opts ...InvokeOption) LookupWorkersCustomDomainsResultOutput
> Note: This function is named LookupWorkersCustomDomains
in the Go SDK.
public static class GetWorkersCustomDomains
{
public static Task<GetWorkersCustomDomainsResult> InvokeAsync(GetWorkersCustomDomainsArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersCustomDomainsResult> Invoke(GetWorkersCustomDomainsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkersCustomDomainsResult> getWorkersCustomDomains(GetWorkersCustomDomainsArgs args, InvokeOptions options)
public static Output<GetWorkersCustomDomainsResult> getWorkersCustomDomains(GetWorkersCustomDomainsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersCustomDomains:getWorkersCustomDomains
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifer of the account.
- Environment string
- Worker environment associated with the zone and hostname.
- Hostname string
- Hostname of the Worker Domain.
- Max
Items int - Max items to fetch, default: 1000
- Service string
- Worker service associated with the zone and hostname.
- Zone
Id string - Identifier of the zone.
- Zone
Name string - Name of the zone.
- Account
Id string - Identifer of the account.
- Environment string
- Worker environment associated with the zone and hostname.
- Hostname string
- Hostname of the Worker Domain.
- Max
Items int - Max items to fetch, default: 1000
- Service string
- Worker service associated with the zone and hostname.
- Zone
Id string - Identifier of the zone.
- Zone
Name string - Name of the zone.
- account
Id String - Identifer of the account.
- environment String
- Worker environment associated with the zone and hostname.
- hostname String
- Hostname of the Worker Domain.
- max
Items Integer - Max items to fetch, default: 1000
- service String
- Worker service associated with the zone and hostname.
- zone
Id String - Identifier of the zone.
- zone
Name String - Name of the zone.
- account
Id string - Identifer of the account.
- environment string
- Worker environment associated with the zone and hostname.
- hostname string
- Hostname of the Worker Domain.
- max
Items number - Max items to fetch, default: 1000
- service string
- Worker service associated with the zone and hostname.
- zone
Id string - Identifier of the zone.
- zone
Name string - Name of the zone.
- account_
id str - Identifer of the account.
- environment str
- Worker environment associated with the zone and hostname.
- hostname str
- Hostname of the Worker Domain.
- max_
items int - Max items to fetch, default: 1000
- service str
- Worker service associated with the zone and hostname.
- zone_
id str - Identifier of the zone.
- zone_
name str - Name of the zone.
- account
Id String - Identifer of the account.
- environment String
- Worker environment associated with the zone and hostname.
- hostname String
- Hostname of the Worker Domain.
- max
Items Number - Max items to fetch, default: 1000
- service String
- Worker service associated with the zone and hostname.
- zone
Id String - Identifier of the zone.
- zone
Name String - Name of the zone.
getWorkersCustomDomains Result
The following output properties are available:
- Account
Id string - Identifer of the account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Workers Custom Domains Result> - The items returned by the data source
- Environment string
- Worker environment associated with the zone and hostname.
- Hostname string
- Hostname of the Worker Domain.
- Max
Items int - Max items to fetch, default: 1000
- Service string
- Worker service associated with the zone and hostname.
- Zone
Id string - Identifier of the zone.
- Zone
Name string - Name of the zone.
- Account
Id string - Identifer of the account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Workers Custom Domains Result - The items returned by the data source
- Environment string
- Worker environment associated with the zone and hostname.
- Hostname string
- Hostname of the Worker Domain.
- Max
Items int - Max items to fetch, default: 1000
- Service string
- Worker service associated with the zone and hostname.
- Zone
Id string - Identifier of the zone.
- Zone
Name string - Name of the zone.
- account
Id String - Identifer of the account.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Workers Custom Domains Result> - The items returned by the data source
- environment String
- Worker environment associated with the zone and hostname.
- hostname String
- Hostname of the Worker Domain.
- max
Items Integer - Max items to fetch, default: 1000
- service String
- Worker service associated with the zone and hostname.
- zone
Id String - Identifier of the zone.
- zone
Name String - Name of the zone.
- account
Id string - Identifer of the account.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Workers Custom Domains Result[] - The items returned by the data source
- environment string
- Worker environment associated with the zone and hostname.
- hostname string
- Hostname of the Worker Domain.
- max
Items number - Max items to fetch, default: 1000
- service string
- Worker service associated with the zone and hostname.
- zone
Id string - Identifier of the zone.
- zone
Name string - Name of the zone.
- account_
id str - Identifer of the account.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Workers Custom Domains Result] - The items returned by the data source
- environment str
- Worker environment associated with the zone and hostname.
- hostname str
- Hostname of the Worker Domain.
- max_
items int - Max items to fetch, default: 1000
- service str
- Worker service associated with the zone and hostname.
- zone_
id str - Identifier of the zone.
- zone_
name str - Name of the zone.
- account
Id String - Identifer of the account.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- environment String
- Worker environment associated with the zone and hostname.
- hostname String
- Hostname of the Worker Domain.
- max
Items Number - Max items to fetch, default: 1000
- service String
- Worker service associated with the zone and hostname.
- zone
Id String - Identifier of the zone.
- zone
Name String - Name of the zone.
Supporting Types
GetWorkersCustomDomainsResult
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.