get Workers Custom Domains
suspend fun getWorkersCustomDomains(argument: GetWorkersCustomDomainsPlainArgs): GetWorkersCustomDomainsInvokeResult
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",
});
Content copied to clipboard
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")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
exampleWorkersCustomDomains:
fn::invoke:
function: cloudflare:getWorkersCustomDomains
arguments:
accountId: 9a7806061c88ada191ed06f989cc3dac
environment: production
hostname: foo.example.com
service: foo
zoneId: 593c9c94de529bbbfaac7c53ced0447d
zoneName: example.com
Content copied to clipboard
Return
A collection of values returned by getWorkersCustomDomains.
Parameters
argument
A collection of arguments for invoking getWorkersCustomDomains.
suspend fun getWorkersCustomDomains(accountId: String, environment: String? = null, hostname: String? = null, maxItems: Int? = null, service: String? = null, zoneId: String? = null, zoneName: String? = null): GetWorkersCustomDomainsInvokeResult
Return
A collection of values returned by getWorkersCustomDomains.
Parameters
account Id
Identifer of the account.
environment
Worker environment associated with the zone and hostname.
hostname
Hostname of the Worker Domain.
max Items
Max items to fetch, default: 1000
service
Worker service associated with the zone and hostname.
zone Id
Identifier of the zone.
zone Name
Name of the zone.
See also
suspend fun getWorkersCustomDomains(argument: suspend GetWorkersCustomDomainsPlainArgsBuilder.() -> Unit): GetWorkersCustomDomainsInvokeResult
Return
A collection of values returned by getWorkersCustomDomains.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetWorkersCustomDomainsPlainArgs.