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

cloudflare.getZeroTrustNetworkHostnameRoute

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 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 dictionary

    The following arguments are supported:

    AccountId string
    Cloudflare account ID
    Filter GetZeroTrustNetworkHostnameRouteFilter
    HostnameRouteId string
    The hostname route ID.
    AccountId string
    Cloudflare account ID
    Filter GetZeroTrustNetworkHostnameRouteFilter
    HostnameRouteId string
    The hostname route ID.
    accountId String
    Cloudflare account ID
    filter GetZeroTrustNetworkHostnameRouteFilter
    hostnameRouteId String
    The hostname route ID.
    accountId string
    Cloudflare account ID
    filter GetZeroTrustNetworkHostnameRouteFilter
    hostnameRouteId string
    The hostname route ID.
    account_id str
    Cloudflare account ID
    filter GetZeroTrustNetworkHostnameRouteFilter
    hostname_route_id str
    The hostname route ID.
    accountId String
    Cloudflare account ID
    filter Property Map
    hostnameRouteId String
    The hostname route ID.

    getZeroTrustNetworkHostnameRoute Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID
    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.
    Filter GetZeroTrustNetworkHostnameRouteFilter
    HostnameRouteId string
    The hostname route ID.
    AccountId string
    Cloudflare account ID
    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.
    Filter GetZeroTrustNetworkHostnameRouteFilter
    HostnameRouteId string
    The hostname route ID.
    accountId String
    Cloudflare account ID
    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.
    filter GetZeroTrustNetworkHostnameRouteFilter
    hostnameRouteId String
    The hostname route ID.
    accountId string
    Cloudflare account ID
    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.
    filter GetZeroTrustNetworkHostnameRouteFilter
    hostnameRouteId string
    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 GetZeroTrustNetworkHostnameRouteFilter
    hostname_route_id str
    The hostname route ID.
    accountId String
    Cloudflare account ID
    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.
    filter Property Map
    hostnameRouteId String
    The hostname route ID.

    Supporting Types

    GetZeroTrustNetworkHostnameRouteFilter

    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    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.
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    IsDeleted bool
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    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.
    TunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    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.
    tunnelId String
    If set, only list hostname routes that point to a specific tunnel.
    isDeleted boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    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.
    tunnelId string
    If set, only list hostname routes that point to a specific tunnel.
    is_deleted bool
    If true, only return deleted hostname routes. If false, 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.
    isDeleted Boolean
    If true, only return deleted hostname routes. If false, exclude deleted hostname routes.
    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.
    tunnelId 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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.10.0 published on Thursday, Oct 2, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate