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 exampleZeroTrustNetworkHostnameRoutes = cloudflare.getZeroTrustNetworkHostnameRoutes({
accountId: "699d98642c564d2e855e9661899b7252",
id: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
comment: "example%20comment",
existedAt: "2019-10-12T07%3A20%3A50.52Z",
hostname: "office-1.local",
tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_network_hostname_routes = cloudflare.get_zero_trust_network_hostname_routes(account_id="699d98642c564d2e855e9661899b7252",
id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
comment="example%20comment",
existed_at="2019-10-12T07%3A20%3A50.52Z",
hostname="office-1.local",
tunnel_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.LookupZeroTrustNetworkHostnameRoutes(ctx, &cloudflare.LookupZeroTrustNetworkHostnameRoutesArgs{
AccountId: "699d98642c564d2e855e9661899b7252",
Id: pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
Comment: pulumi.StringRef("example%20comment"),
ExistedAt: pulumi.StringRef("2019-10-12T07%3A20%3A50.52Z"),
Hostname: pulumi.StringRef("office-1.local"),
TunnelId: 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 exampleZeroTrustNetworkHostnameRoutes = Cloudflare.GetZeroTrustNetworkHostnameRoutes.Invoke(new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Id = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
Comment = "example%20comment",
ExistedAt = "2019-10-12T07%3A20%3A50.52Z",
Hostname = "office-1.local",
TunnelId = "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.GetZeroTrustNetworkHostnameRoutesArgs;
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 exampleZeroTrustNetworkHostnameRoutes = CloudflareFunctions.getZeroTrustNetworkHostnameRoutes(GetZeroTrustNetworkHostnameRoutesArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.id("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.comment("example%20comment")
.existedAt("2019-10-12T07%3A20%3A50.52Z")
.hostname("office-1.local")
.tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.build());
}
}
variables:
exampleZeroTrustNetworkHostnameRoutes:
fn::invoke:
function: cloudflare:getZeroTrustNetworkHostnameRoutes
arguments:
accountId: 699d98642c564d2e855e9661899b7252
id: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
comment: example%20comment
existedAt: 2019-10-12T07%3A20%3A50.52Z
hostname: office-1.local
tunnelId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Using getZeroTrustNetworkHostnameRoutes
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 getZeroTrustNetworkHostnameRoutes(args: GetZeroTrustNetworkHostnameRoutesArgs, opts?: InvokeOptions): Promise<GetZeroTrustNetworkHostnameRoutesResult>
function getZeroTrustNetworkHostnameRoutesOutput(args: GetZeroTrustNetworkHostnameRoutesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustNetworkHostnameRoutesResult>def get_zero_trust_network_hostname_routes(account_id: Optional[str] = None,
comment: Optional[str] = None,
existed_at: Optional[str] = None,
hostname: Optional[str] = None,
id: Optional[str] = None,
is_deleted: Optional[bool] = None,
max_items: Optional[int] = None,
tunnel_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustNetworkHostnameRoutesResult
def get_zero_trust_network_hostname_routes_output(account_id: Optional[pulumi.Input[str]] = None,
comment: Optional[pulumi.Input[str]] = None,
existed_at: Optional[pulumi.Input[str]] = None,
hostname: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
is_deleted: Optional[pulumi.Input[bool]] = None,
max_items: Optional[pulumi.Input[int]] = None,
tunnel_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustNetworkHostnameRoutesResult]func LookupZeroTrustNetworkHostnameRoutes(ctx *Context, args *LookupZeroTrustNetworkHostnameRoutesArgs, opts ...InvokeOption) (*LookupZeroTrustNetworkHostnameRoutesResult, error)
func LookupZeroTrustNetworkHostnameRoutesOutput(ctx *Context, args *LookupZeroTrustNetworkHostnameRoutesOutputArgs, opts ...InvokeOption) LookupZeroTrustNetworkHostnameRoutesResultOutput> Note: This function is named LookupZeroTrustNetworkHostnameRoutes in the Go SDK.
public static class GetZeroTrustNetworkHostnameRoutes
{
public static Task<GetZeroTrustNetworkHostnameRoutesResult> InvokeAsync(GetZeroTrustNetworkHostnameRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustNetworkHostnameRoutesResult> Invoke(GetZeroTrustNetworkHostnameRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZeroTrustNetworkHostnameRoutesResult> getZeroTrustNetworkHostnameRoutes(GetZeroTrustNetworkHostnameRoutesArgs args, InvokeOptions options)
public static Output<GetZeroTrustNetworkHostnameRoutesResult> getZeroTrustNetworkHostnameRoutes(GetZeroTrustNetworkHostnameRoutesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustNetworkHostnameRoutes:getZeroTrustNetworkHostnameRoutes
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Cloudflare account ID
- 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.
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Max
Items int - Max items to fetch, default: 1000
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- Account
Id string - Cloudflare account ID
- 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.
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Max
Items int - Max items to fetch, default: 1000
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- account
Id String - Cloudflare account ID
- 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.
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - max
Items Integer - Max items to fetch, default: 1000
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
- account
Id string - Cloudflare account ID
- 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.
- is
Deleted boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - max
Items number - Max items to fetch, default: 1000
- tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- account_
id str - Cloudflare account ID
- 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.
- is_
deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - max_
items int - Max items to fetch, default: 1000
- tunnel_
id str - If set, only list hostname routes that point to a specific tunnel.
- account
Id String - Cloudflare account ID
- 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.
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - max
Items Number - Max items to fetch, default: 1000
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
getZeroTrustNetworkHostnameRoutes Result
The following output properties are available:
- Account
Id string - Cloudflare account ID
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Results
List<Get
Zero Trust Network Hostname Routes Result> - The items returned by the data source
- 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.
- Max
Items int - Max items to fetch, default: 1000
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- Account
Id string - Cloudflare account ID
- Is
Deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - Results
[]Get
Zero Trust Network Hostname Routes Result - The items returned by the data source
- 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.
- Max
Items int - Max items to fetch, default: 1000
- Tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- account
Id String - Cloudflare account ID
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - results
List<Get
Zero Trust Network Hostname Routes Result> - The items returned by the data source
- 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.
- max
Items Integer - Max items to fetch, default: 1000
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
- account
Id string - Cloudflare account ID
- is
Deleted boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - results
Get
Zero Trust Network Hostname Routes Result[] - The items returned by the data source
- 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.
- max
Items number - Max items to fetch, default: 1000
- tunnel
Id string - If set, only list hostname routes that point to a specific tunnel.
- account_
id str - Cloudflare account ID
- is_
deleted bool - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - results
Sequence[Get
Zero Trust Network Hostname Routes Result] - The items returned by the data source
- 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.
- max_
items int - Max items to fetch, default: 1000
- tunnel_
id str - If set, only list hostname routes that point to a specific tunnel.
- account
Id String - Cloudflare account ID
- is
Deleted Boolean - If
true, only return deleted hostname routes. Iffalse, exclude deleted hostname routes. - results List<Property Map>
- The items returned by the data source
- 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.
- max
Items Number - Max items to fetch, default: 1000
- tunnel
Id String - If set, only list hostname routes that point to a specific tunnel.
Supporting Types
GetZeroTrustNetworkHostnameRoutesResult
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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
