1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustTunnelCloudflaredRoute
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustTunnelCloudflaredRoute

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustTunnelCloudflaredRoute = cloudflare.getZeroTrustTunnelCloudflaredRoute({
        accountId: "699d98642c564d2e855e9661899b7252",
        routeId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_tunnel_cloudflared_route = cloudflare.get_zero_trust_tunnel_cloudflared_route(account_id="699d98642c564d2e855e9661899b7252",
        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.LookupZeroTrustTunnelCloudflaredRoute(ctx, &cloudflare.LookupZeroTrustTunnelCloudflaredRouteArgs{
    			AccountId: "699d98642c564d2e855e9661899b7252",
    			RouteId:   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 exampleZeroTrustTunnelCloudflaredRoute = Cloudflare.GetZeroTrustTunnelCloudflaredRoute.Invoke(new()
        {
            AccountId = "699d98642c564d2e855e9661899b7252",
            RouteId = "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.GetZeroTrustTunnelCloudflaredRouteArgs;
    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 exampleZeroTrustTunnelCloudflaredRoute = CloudflareFunctions.getZeroTrustTunnelCloudflaredRoute(GetZeroTrustTunnelCloudflaredRouteArgs.builder()
                .accountId("699d98642c564d2e855e9661899b7252")
                .routeId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustTunnelCloudflaredRoute:
        fn::invoke:
          function: cloudflare:getZeroTrustTunnelCloudflaredRoute
          arguments:
            accountId: 699d98642c564d2e855e9661899b7252
            routeId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
    

    Using getZeroTrustTunnelCloudflaredRoute

    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 getZeroTrustTunnelCloudflaredRoute(args: GetZeroTrustTunnelCloudflaredRouteArgs, opts?: InvokeOptions): Promise<GetZeroTrustTunnelCloudflaredRouteResult>
    function getZeroTrustTunnelCloudflaredRouteOutput(args: GetZeroTrustTunnelCloudflaredRouteOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustTunnelCloudflaredRouteResult>
    def get_zero_trust_tunnel_cloudflared_route(account_id: Optional[str] = None,
                                                filter: Optional[GetZeroTrustTunnelCloudflaredRouteFilter] = None,
                                                route_id: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetZeroTrustTunnelCloudflaredRouteResult
    def get_zero_trust_tunnel_cloudflared_route_output(account_id: Optional[pulumi.Input[str]] = None,
                                                filter: Optional[pulumi.Input[GetZeroTrustTunnelCloudflaredRouteFilterArgs]] = None,
                                                route_id: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustTunnelCloudflaredRouteResult]
    func LookupZeroTrustTunnelCloudflaredRoute(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRouteArgs, opts ...InvokeOption) (*LookupZeroTrustTunnelCloudflaredRouteResult, error)
    func LookupZeroTrustTunnelCloudflaredRouteOutput(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRouteOutputArgs, opts ...InvokeOption) LookupZeroTrustTunnelCloudflaredRouteResultOutput

    > Note: This function is named LookupZeroTrustTunnelCloudflaredRoute in the Go SDK.

    public static class GetZeroTrustTunnelCloudflaredRoute 
    {
        public static Task<GetZeroTrustTunnelCloudflaredRouteResult> InvokeAsync(GetZeroTrustTunnelCloudflaredRouteArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustTunnelCloudflaredRouteResult> Invoke(GetZeroTrustTunnelCloudflaredRouteInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustTunnelCloudflaredRouteResult> getZeroTrustTunnelCloudflaredRoute(GetZeroTrustTunnelCloudflaredRouteArgs args, InvokeOptions options)
    public static Output<GetZeroTrustTunnelCloudflaredRouteResult> getZeroTrustTunnelCloudflaredRoute(GetZeroTrustTunnelCloudflaredRouteArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustTunnelCloudflaredRoute:getZeroTrustTunnelCloudflaredRoute
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Cloudflare account ID
    Filter GetZeroTrustTunnelCloudflaredRouteFilter
    RouteId string
    UUID of the route.
    AccountId string
    Cloudflare account ID
    Filter GetZeroTrustTunnelCloudflaredRouteFilter
    RouteId string
    UUID of the route.
    accountId String
    Cloudflare account ID
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    routeId String
    UUID of the route.
    accountId string
    Cloudflare account ID
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    routeId string
    UUID of the route.
    account_id str
    Cloudflare account ID
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    route_id str
    UUID of the route.
    accountId String
    Cloudflare account ID
    filter Property Map
    routeId String
    UUID of the route.

    getZeroTrustTunnelCloudflaredRoute Result

    The following output properties are available:

    AccountId string
    Cloudflare account ID
    Comment string
    Optional remark describing the 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.
    Id string
    UUID of the route.
    Network string
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    TunnelId string
    UUID of the tunnel.
    VirtualNetworkId string
    UUID of the virtual network.
    Filter GetZeroTrustTunnelCloudflaredRouteFilter
    RouteId string
    UUID of the route.
    AccountId string
    Cloudflare account ID
    Comment string
    Optional remark describing the 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.
    Id string
    UUID of the route.
    Network string
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    TunnelId string
    UUID of the tunnel.
    VirtualNetworkId string
    UUID of the virtual network.
    Filter GetZeroTrustTunnelCloudflaredRouteFilter
    RouteId string
    UUID of the route.
    accountId String
    Cloudflare account ID
    comment String
    Optional remark describing the 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.
    id String
    UUID of the route.
    network String
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    tunnelId String
    UUID of the tunnel.
    virtualNetworkId String
    UUID of the virtual network.
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    routeId String
    UUID of the route.
    accountId string
    Cloudflare account ID
    comment string
    Optional remark describing the 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.
    id string
    UUID of the route.
    network string
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    tunnelId string
    UUID of the tunnel.
    virtualNetworkId string
    UUID of the virtual network.
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    routeId string
    UUID of the route.
    account_id str
    Cloudflare account ID
    comment str
    Optional remark describing the 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.
    id str
    UUID of the route.
    network str
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    tunnel_id str
    UUID of the tunnel.
    virtual_network_id str
    UUID of the virtual network.
    filter GetZeroTrustTunnelCloudflaredRouteFilter
    route_id str
    UUID of the route.
    accountId String
    Cloudflare account ID
    comment String
    Optional remark describing the 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.
    id String
    UUID of the route.
    network String
    The private IPv4 or IPv6 range connected by the route, in CIDR notation.
    tunnelId String
    UUID of the tunnel.
    virtualNetworkId String
    UUID of the virtual network.
    filter Property Map
    routeId String
    UUID of the route.

    Supporting Types

    GetZeroTrustTunnelCloudflaredRouteFilter

    Comment string
    Optional remark describing the route.
    ExistedAt string
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    IsDeleted bool
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    NetworkSubset string
    If set, only list routes that are contained within this IP range.
    NetworkSuperset string
    If set, only list routes that contain this IP range.
    RouteId string
    UUID of the route.
    TunTypes List<string>
    The types of tunnels to filter by, separated by commas.
    TunnelId string
    UUID of the tunnel.
    VirtualNetworkId string
    UUID of the virtual network.
    Comment string
    Optional remark describing the route.
    ExistedAt string
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    IsDeleted bool
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    NetworkSubset string
    If set, only list routes that are contained within this IP range.
    NetworkSuperset string
    If set, only list routes that contain this IP range.
    RouteId string
    UUID of the route.
    TunTypes []string
    The types of tunnels to filter by, separated by commas.
    TunnelId string
    UUID of the tunnel.
    VirtualNetworkId string
    UUID of the virtual network.
    comment String
    Optional remark describing the route.
    existedAt String
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    isDeleted Boolean
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    networkSubset String
    If set, only list routes that are contained within this IP range.
    networkSuperset String
    If set, only list routes that contain this IP range.
    routeId String
    UUID of the route.
    tunTypes List<String>
    The types of tunnels to filter by, separated by commas.
    tunnelId String
    UUID of the tunnel.
    virtualNetworkId String
    UUID of the virtual network.
    comment string
    Optional remark describing the route.
    existedAt string
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    isDeleted boolean
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    networkSubset string
    If set, only list routes that are contained within this IP range.
    networkSuperset string
    If set, only list routes that contain this IP range.
    routeId string
    UUID of the route.
    tunTypes string[]
    The types of tunnels to filter by, separated by commas.
    tunnelId string
    UUID of the tunnel.
    virtualNetworkId string
    UUID of the virtual network.
    comment str
    Optional remark describing the route.
    existed_at str
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    is_deleted bool
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    network_subset str
    If set, only list routes that are contained within this IP range.
    network_superset str
    If set, only list routes that contain this IP range.
    route_id str
    UUID of the route.
    tun_types Sequence[str]
    The types of tunnels to filter by, separated by commas.
    tunnel_id str
    UUID of the tunnel.
    virtual_network_id str
    UUID of the virtual network.
    comment String
    Optional remark describing the route.
    existedAt String
    If provided, include only resources that were created (and not deleted) before this time. URL encoded.
    isDeleted Boolean
    If true, only include deleted routes. If false, exclude deleted routes. If empty, all routes will be included.
    networkSubset String
    If set, only list routes that are contained within this IP range.
    networkSuperset String
    If set, only list routes that contain this IP range.
    routeId String
    UUID of the route.
    tunTypes List<String>
    The types of tunnels to filter by, separated by commas.
    tunnelId String
    UUID of the tunnel.
    virtualNetworkId String
    UUID of the virtual network.

    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.1.2 published on Monday, Apr 28, 2025 by Pulumi