1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustNetworkHostnameRoutes
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi

cloudflare.getZeroTrustNetworkHostnameRoutes

Deploy with Pulumi
cloudflare logo
Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 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 dictionary

    The following arguments are supported:

    AccountId string
    Cloudflare account ID
    Comment string
    If set, only list hostname routes with the given comment.
    ExistedAt 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.
    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    MaxItems int
    Max items to fetch, default: 1000
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    AccountId string
    Cloudflare account ID
    Comment string
    If set, only list hostname routes with the given comment.
    ExistedAt 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.
    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    MaxItems int
    Max items to fetch, default: 1000
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    accountId String
    Cloudflare account ID
    comment String
    If set, only list hostname routes with the given comment.
    existedAt 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.
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    maxItems Integer
    Max items to fetch, default: 1000
    tunnelId String
    If set, only list hostname routes that point to a specific tunnel.
    accountId string
    Cloudflare account ID
    comment string
    If set, only list hostname routes with the given comment.
    existedAt 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.
    isDeleted boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    maxItems number
    Max items to fetch, default: 1000
    tunnelId 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. If false, 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.
    accountId String
    Cloudflare account ID
    comment String
    If set, only list hostname routes with the given comment.
    existedAt 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.
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    maxItems Number
    Max items to fetch, default: 1000
    tunnelId String
    If set, only list hostname routes that point to a specific tunnel.

    getZeroTrustNetworkHostnameRoutes Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID
    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    Results List<GetZeroTrustNetworkHostnameRoutesResult>
    The items returned by the data source
    Comment string
    If set, only list hostname routes with the given comment.
    ExistedAt 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.
    MaxItems int
    Max items to fetch, default: 1000
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    AccountId string
    Cloudflare account ID
    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    Results []GetZeroTrustNetworkHostnameRoutesResult
    The items returned by the data source
    Comment string
    If set, only list hostname routes with the given comment.
    ExistedAt 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.
    MaxItems int
    Max items to fetch, default: 1000
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    accountId String
    Cloudflare account ID
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    results List<GetZeroTrustNetworkHostnameRoutesResult>
    The items returned by the data source
    comment String
    If set, only list hostname routes with the given comment.
    existedAt 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.
    maxItems Integer
    Max items to fetch, default: 1000
    tunnelId String
    If set, only list hostname routes that point to a specific tunnel.
    accountId string
    Cloudflare account ID
    isDeleted boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    results GetZeroTrustNetworkHostnameRoutesResult[]
    The items returned by the data source
    comment string
    If set, only list hostname routes with the given comment.
    existedAt 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.
    maxItems number
    Max items to fetch, default: 1000
    tunnelId 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. If false, exclude deleted hostname routes.
    results Sequence[GetZeroTrustNetworkHostnameRoutesResult]
    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.
    accountId String
    Cloudflare account ID
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, 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.
    existedAt 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.
    maxItems Number
    Max items to fetch, default: 1000
    tunnelId 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.
    CreatedAt string
    Timestamp of when the resource was created.
    DeletedAt 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.
    TunnelId string
    UUID of the tunnel.
    TunnelName string
    A user-friendly name for a tunnel.
    Comment string
    An optional description of the hostname route.
    CreatedAt string
    Timestamp of when the resource was created.
    DeletedAt 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.
    TunnelId string
    UUID of the tunnel.
    TunnelName string
    A user-friendly name for a tunnel.
    comment String
    An optional description of the hostname route.
    createdAt String
    Timestamp of when the resource was created.
    deletedAt 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.
    tunnelId String
    UUID of the tunnel.
    tunnelName String
    A user-friendly name for a tunnel.
    comment string
    An optional description of the hostname route.
    createdAt string
    Timestamp of when the resource was created.
    deletedAt 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.
    tunnelId string
    UUID of the tunnel.
    tunnelName 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.
    createdAt String
    Timestamp of when the resource was created.
    deletedAt 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.
    tunnelId String
    UUID of the tunnel.
    tunnelName 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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate