get Custom Hostnames
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCustomHostnames = cloudflare.getCustomHostnames({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
id: "0d89c70d-ad9f-4843-b99f-6cc0252067e9",
direction: "asc",
hostname: "app.example.com",
ssl: 0,
});
import pulumi
import pulumi_cloudflare as cloudflare
example_custom_hostnames = cloudflare.get_custom_hostnames(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
id="0d89c70d-ad9f-4843-b99f-6cc0252067e9",
direction="asc",
hostname="app.example.com",
ssl=0)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleCustomHostnames = Cloudflare.GetCustomHostnames.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Id = "0d89c70d-ad9f-4843-b99f-6cc0252067e9",
Direction = "asc",
Hostname = "app.example.com",
Ssl = 0,
});
});
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.LookupCustomHostnames(ctx, &cloudflare.LookupCustomHostnamesArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
Id: pulumi.StringRef("0d89c70d-ad9f-4843-b99f-6cc0252067e9"),
Direction: pulumi.StringRef("asc"),
Hostname: pulumi.StringRef("app.example.com"),
Ssl: pulumi.Float64Ref(0),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetCustomHostnamesArgs;
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 exampleCustomHostnames = CloudflareFunctions.getCustomHostnames(GetCustomHostnamesArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.id("0d89c70d-ad9f-4843-b99f-6cc0252067e9")
.direction("asc")
.hostname("app.example.com")
.ssl(0)
.build());
}
}
variables:
exampleCustomHostnames:
fn::invoke:
function: cloudflare:getCustomHostnames
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
id: 0d89c70d-ad9f-4843-b99f-6cc0252067e9
direction: asc
hostname: app.example.com
ssl: 0
Return
A collection of values returned by getCustomHostnames.
Parameters
A collection of arguments for invoking getCustomHostnames.
Return
A collection of values returned by getCustomHostnames.
Parameters
Direction to order hostnames. Available values: "asc", "desc".
Fully qualified domain name to match against. This parameter cannot be used with the 'id' parameter.
Hostname ID to match against. This ID was generated and returned during the initial custom_hostname creation. This parameter cannot be used with the 'hostname' parameter.
Max items to fetch, default: 1000
Field to order hostnames by. Available values: "ssl", "ssl_status".
Whether to filter hostnames based on if they have SSL enabled. Available values: 0, 1.
Identifier
See also
Return
A collection of values returned by getCustomHostnames.
Parameters
Builder for com.pulumi.cloudflare.kotlin.inputs.GetCustomHostnamesPlainArgs.