Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustNetworkHostnameRoute = cloudflare.getZeroTrustNetworkHostnameRoute({
accountId: "699d98642c564d2e855e9661899b7252",
hostnameRouteId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_network_hostname_route = cloudflare.get_zero_trust_network_hostname_route(account_id="699d98642c564d2e855e9661899b7252",
hostname_route_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
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.LookupZeroTrustNetworkHostnameRoute(ctx, &cloudflare.LookupZeroTrustNetworkHostnameRouteArgs{
AccountId: "699d98642c564d2e855e9661899b7252",
HostnameRouteId: pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
}, 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 exampleZeroTrustNetworkHostnameRoute = Cloudflare.GetZeroTrustNetworkHostnameRoute.Invoke(new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
HostnameRouteId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
});
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.GetZeroTrustNetworkHostnameRouteArgs;
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 exampleZeroTrustNetworkHostnameRoute = CloudflareFunctions.getZeroTrustNetworkHostnameRoute(GetZeroTrustNetworkHostnameRouteArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.hostnameRouteId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.build());
}
}
variables:
exampleZeroTrustNetworkHostnameRoute:
fn::invoke:
function: cloudflare:getZeroTrustNetworkHostnameRoute
arguments:
accountId: 699d98642c564d2e855e9661899b7252
hostnameRouteId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Using getZeroTrustNetworkHostnameRoute
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 getZeroTrustNetworkHostnameRoute(args: GetZeroTrustNetworkHostnameRouteArgs, opts?: InvokeOptions): Promise<GetZeroTrustNetworkHostnameRouteResult>
function getZeroTrustNetworkHostnameRouteOutput(args: GetZeroTrustNetworkHostnameRouteOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustNetworkHostnameRouteResult>def get_zero_trust_network_hostname_route(account_id: Optional[str] = None,
filter: Optional[GetZeroTrustNetworkHostnameRouteFilter] = None,
hostname_route_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustNetworkHostnameRouteResult
def get_zero_trust_network_hostname_route_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetZeroTrustNetworkHostnameRouteFilterArgs]] = None,
hostname_route_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustNetworkHostnameRouteResult]func LookupZeroTrustNetworkHostnameRoute(ctx *Context, args *LookupZeroTrustNetworkHostnameRouteArgs, opts ...InvokeOption) (*LookupZeroTrustNetworkHostnameRouteResult, error)
func LookupZeroTrustNetworkHostnameRouteOutput(ctx *Context, args *LookupZeroTrustNetworkHostnameRouteOutputArgs, opts ...InvokeOption) LookupZeroTrustNetworkHostnameRouteResultOutput> Note: This function is named LookupZeroTrustNetworkHostnameRoute in the Go SDK.
public static class GetZeroTrustNetworkHostnameRoute
{
public static Task<GetZeroTrustNetworkHostnameRouteResult> InvokeAsync(GetZeroTrustNetworkHostnameRouteArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustNetworkHostnameRouteResult> Invoke(GetZeroTrustNetworkHostnameRouteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZeroTrustNetworkHostnameRouteResult> getZeroTrustNetworkHostnameRoute(GetZeroTrustNetworkHostnameRouteArgs args, InvokeOptions options)
public static Output<GetZeroTrustNetworkHostnameRouteResult> getZeroTrustNetworkHostnameRoute(GetZeroTrustNetworkHostnameRouteArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustNetworkHostnameRoute:getZeroTrustNetworkHostnameRoute
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Cloudflare account ID
- Filter
Get
Zero Trust Network Hostname Route Filter - Hostname
Route stringId - The hostname route ID.
- Account
Id string - Cloudflare account ID
- Filter
Get
Zero Trust Network Hostname Route Filter - Hostname
Route stringId - The hostname route ID.
- account
Id String - Cloudflare account ID
- filter
Get
Zero Trust Network Hostname Route Filter - hostname
Route StringId - The hostname route ID.
- account
Id string - Cloudflare account ID
- filter
Get
Zero Trust Network Hostname Route Filter - hostname
Route stringId - The hostname route ID.
- account_
id str - Cloudflare account ID
- filter
Get
Zero Trust Network Hostname Route Filter - hostname_
route_ strid - The hostname route ID.
- account
Id String - Cloudflare account ID
- filter Property Map
- hostname
Route StringId - The hostname route ID.
getZeroTrustNetworkHostnameRoute Result
The following output properties are available:
- Account
Id string - Cloudflare account ID
- Comment string
- An optional description of the hostname route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - Hostname string
- The hostname of the route.
- Id string
- The hostname route ID.
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Filter
Get
Zero Trust Network Hostname Route Filter - Hostname
Route stringId - The hostname route ID.
- Account
Id string - Cloudflare account ID
- Comment string
- An optional description of the hostname route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - Hostname string
- The hostname of the route.
- Id string
- The hostname route ID.
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Filter
Get
Zero Trust Network Hostname Route Filter - Hostname
Route stringId - The hostname route ID.
- account
Id String - Cloudflare account ID
- comment String
- An optional description of the hostname route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - hostname String
- The hostname of the route.
- id String
- The hostname route ID.
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
- filter
Get
Zero Trust Network Hostname Route Filter - hostname
Route StringId - The hostname route ID.
- account
Id string - Cloudflare account ID
- comment string
- An optional description of the hostname route.
- created
At string - Timestamp of when the resource was created.
- deleted
At string - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - hostname string
- The hostname of the route.
- id string
- The hostname route ID.
- tunnel
Id string - UUID of the tunnel.
- tunnel
Name string - A user-friendly name for a tunnel.
- filter
Get
Zero Trust Network Hostname Route Filter - hostname
Route stringId - The hostname route ID.
- account_
id str - Cloudflare account ID
- comment str
- An optional description of the hostname route.
- created_
at str - Timestamp of when the resource was created.
- deleted_
at str - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - hostname str
- The hostname of the route.
- id str
- The hostname route ID.
- tunnel_
id str - UUID of the tunnel.
- tunnel_
name str - A user-friendly name for a tunnel.
- filter
Get
Zero Trust Network Hostname Route Filter - hostname_
route_ strid - The hostname route ID.
- account
Id String - Cloudflare account ID
- comment String
- An optional description of the hostname route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null, the resource has not been deleted. - hostname String
- The hostname of the route.
- id String
- The hostname route ID.
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
- filter Property Map
- hostname
Route StringId - The hostname route ID.
Supporting Types
GetZeroTrustNetworkHostnameRouteFilter
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Comment string
- If set, only list hostname routes with the given comment.
- Existed
At string - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- Hostname string
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- Id string
- The hostname route ID.
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Comment string
- If set, only list hostname routes with the given comment.
- Existed
At string - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- Hostname string
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- Id string
- The hostname route ID.
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - comment String
- If set, only list hostname routes with the given comment.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- hostname String
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- id String
- The hostname route ID.
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
- is
Deleted boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - comment string
- If set, only list hostname routes with the given comment.
- existed
At string - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- hostname string
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- id string
- The hostname route ID.
- tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- is_
deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - comment str
- If set, only list hostname routes with the given comment.
- existed_
at str - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- hostname str
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- id str
- The hostname route ID.
- tunnel_
id str - If set, only list hostname routes that point to a specific tunnel.
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - comment String
- If set, only list hostname routes with the given comment.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- hostname String
- If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.
- id String
- The hostname route ID.
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
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.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
