1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustTunnelCloudflaredRoutes
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getZeroTrustTunnelCloudflaredRoutes

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustTunnelCloudflaredRoutes = cloudflare.getZeroTrustTunnelCloudflaredRoutes({
    accountId: "699d98642c564d2e855e9661899b7252",
    comment: "Example comment for this route.",
    existedAt: "2019-10-12T07%3A20%3A50.52Z",
    isDeleted: true,
    networkSubset: "172.16.0.0/16",
    networkSuperset: "172.16.0.0/16",
    routeId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    tunTypes: ["cfd_tunnel"],
    tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    virtualNetworkId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_tunnel_cloudflared_routes = cloudflare.get_zero_trust_tunnel_cloudflared_routes(account_id="699d98642c564d2e855e9661899b7252",
    comment="Example comment for this route.",
    existed_at="2019-10-12T07%3A20%3A50.52Z",
    is_deleted=True,
    network_subset="172.16.0.0/16",
    network_superset="172.16.0.0/16",
    route_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    tun_types=["cfd_tunnel"],
    tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    virtual_network_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
Copy
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.LookupZeroTrustTunnelCloudflaredRoutes(ctx, &cloudflare.LookupZeroTrustTunnelCloudflaredRoutesArgs{
			AccountId:       "699d98642c564d2e855e9661899b7252",
			Comment:         pulumi.StringRef("Example comment for this route."),
			ExistedAt:       pulumi.StringRef("2019-10-12T07%3A20%3A50.52Z"),
			IsDeleted:       pulumi.BoolRef(true),
			NetworkSubset:   pulumi.StringRef("172.16.0.0/16"),
			NetworkSuperset: pulumi.StringRef("172.16.0.0/16"),
			RouteId:         pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
			TunTypes: []string{
				"cfd_tunnel",
			},
			TunnelId:         pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
			VirtualNetworkId: pulumi.StringRef("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustTunnelCloudflaredRoutes = Cloudflare.GetZeroTrustTunnelCloudflaredRoutes.Invoke(new()
    {
        AccountId = "699d98642c564d2e855e9661899b7252",
        Comment = "Example comment for this route.",
        ExistedAt = "2019-10-12T07%3A20%3A50.52Z",
        IsDeleted = true,
        NetworkSubset = "172.16.0.0/16",
        NetworkSuperset = "172.16.0.0/16",
        RouteId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
        TunTypes = new[]
        {
            "cfd_tunnel",
        },
        TunnelId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
        VirtualNetworkId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
    });

});
Copy
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.GetZeroTrustTunnelCloudflaredRoutesArgs;
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 exampleZeroTrustTunnelCloudflaredRoutes = CloudflareFunctions.getZeroTrustTunnelCloudflaredRoutes(GetZeroTrustTunnelCloudflaredRoutesArgs.builder()
            .accountId("699d98642c564d2e855e9661899b7252")
            .comment("Example comment for this route.")
            .existedAt("2019-10-12T07%3A20%3A50.52Z")
            .isDeleted(true)
            .networkSubset("172.16.0.0/16")
            .networkSuperset("172.16.0.0/16")
            .routeId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
            .tunTypes("cfd_tunnel")
            .tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
            .virtualNetworkId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
            .build());

    }
}
Copy
variables:
  exampleZeroTrustTunnelCloudflaredRoutes:
    fn::invoke:
      function: cloudflare:getZeroTrustTunnelCloudflaredRoutes
      arguments:
        accountId: 699d98642c564d2e855e9661899b7252
        comment: Example comment for this route.
        existedAt: 2019-10-12T07%3A20%3A50.52Z
        isDeleted: true
        networkSubset: 172.16.0.0/16
        networkSuperset: 172.16.0.0/16
        routeId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
        tunTypes:
          - cfd_tunnel
        tunnelId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
        virtualNetworkId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Copy

Using getZeroTrustTunnelCloudflaredRoutes

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 getZeroTrustTunnelCloudflaredRoutes(args: GetZeroTrustTunnelCloudflaredRoutesArgs, opts?: InvokeOptions): Promise<GetZeroTrustTunnelCloudflaredRoutesResult>
function getZeroTrustTunnelCloudflaredRoutesOutput(args: GetZeroTrustTunnelCloudflaredRoutesOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustTunnelCloudflaredRoutesResult>
Copy
def get_zero_trust_tunnel_cloudflared_routes(account_id: Optional[str] = None,
                                             comment: Optional[str] = None,
                                             existed_at: Optional[str] = None,
                                             is_deleted: Optional[bool] = None,
                                             max_items: Optional[int] = None,
                                             network_subset: Optional[str] = None,
                                             network_superset: Optional[str] = None,
                                             route_id: Optional[str] = None,
                                             tun_types: Optional[Sequence[str]] = None,
                                             tunnel_id: Optional[str] = None,
                                             virtual_network_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetZeroTrustTunnelCloudflaredRoutesResult
def get_zero_trust_tunnel_cloudflared_routes_output(account_id: Optional[pulumi.Input[str]] = None,
                                             comment: Optional[pulumi.Input[str]] = None,
                                             existed_at: Optional[pulumi.Input[str]] = None,
                                             is_deleted: Optional[pulumi.Input[bool]] = None,
                                             max_items: Optional[pulumi.Input[int]] = None,
                                             network_subset: Optional[pulumi.Input[str]] = None,
                                             network_superset: Optional[pulumi.Input[str]] = None,
                                             route_id: Optional[pulumi.Input[str]] = None,
                                             tun_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                             tunnel_id: Optional[pulumi.Input[str]] = None,
                                             virtual_network_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustTunnelCloudflaredRoutesResult]
Copy
func LookupZeroTrustTunnelCloudflaredRoutes(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRoutesArgs, opts ...InvokeOption) (*LookupZeroTrustTunnelCloudflaredRoutesResult, error)
func LookupZeroTrustTunnelCloudflaredRoutesOutput(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRoutesOutputArgs, opts ...InvokeOption) LookupZeroTrustTunnelCloudflaredRoutesResultOutput
Copy

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

public static class GetZeroTrustTunnelCloudflaredRoutes 
{
    public static Task<GetZeroTrustTunnelCloudflaredRoutesResult> InvokeAsync(GetZeroTrustTunnelCloudflaredRoutesArgs args, InvokeOptions? opts = null)
    public static Output<GetZeroTrustTunnelCloudflaredRoutesResult> Invoke(GetZeroTrustTunnelCloudflaredRoutesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetZeroTrustTunnelCloudflaredRoutesResult> getZeroTrustTunnelCloudflaredRoutes(GetZeroTrustTunnelCloudflaredRoutesArgs args, InvokeOptions options)
public static Output<GetZeroTrustTunnelCloudflaredRoutesResult> getZeroTrustTunnelCloudflaredRoutes(GetZeroTrustTunnelCloudflaredRoutesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getZeroTrustTunnelCloudflaredRoutes:getZeroTrustTunnelCloudflaredRoutes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
Cloudflare account ID
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.
MaxItems int
Max items to fetch, default: 1000
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.
AccountId This property is required. string
Cloudflare account ID
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.
MaxItems int
Max items to fetch, default: 1000
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.
accountId This property is required. String
Cloudflare account ID
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.
maxItems Integer
Max items to fetch, default: 1000
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.
accountId This property is required. string
Cloudflare account ID
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.
maxItems number
Max items to fetch, default: 1000
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.
account_id This property is required. str
Cloudflare account ID
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.
max_items int
Max items to fetch, default: 1000
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.
accountId This property is required. String
Cloudflare account ID
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.
maxItems Number
Max items to fetch, default: 1000
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.

getZeroTrustTunnelCloudflaredRoutes Result

The following output properties are available:

AccountId string
Cloudflare account ID
Id string
The provider-assigned unique ID for this managed resource.
Results List<GetZeroTrustTunnelCloudflaredRoutesResult>
The items returned by the data source
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.
MaxItems int
Max items to fetch, default: 1000
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.
AccountId string
Cloudflare account ID
Id string
The provider-assigned unique ID for this managed resource.
Results []GetZeroTrustTunnelCloudflaredRoutesResult
The items returned by the data source
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.
MaxItems int
Max items to fetch, default: 1000
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.
accountId String
Cloudflare account ID
id String
The provider-assigned unique ID for this managed resource.
results List<GetZeroTrustTunnelCloudflaredRoutesResult>
The items returned by the data source
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.
maxItems Integer
Max items to fetch, default: 1000
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.
accountId string
Cloudflare account ID
id string
The provider-assigned unique ID for this managed resource.
results GetZeroTrustTunnelCloudflaredRoutesResult[]
The items returned by the data source
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.
maxItems number
Max items to fetch, default: 1000
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.
account_id str
Cloudflare account ID
id str
The provider-assigned unique ID for this managed resource.
results Sequence[GetZeroTrustTunnelCloudflaredRoutesResult]
The items returned by the data source
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.
max_items int
Max items to fetch, default: 1000
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.
accountId String
Cloudflare account ID
id String
The provider-assigned unique ID for this managed resource.
results List<Property Map>
The items returned by the data source
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.
maxItems Number
Max items to fetch, default: 1000
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.

Supporting Types

GetZeroTrustTunnelCloudflaredRoutesResult

Comment This property is required. string
Optional remark describing the route.
CreatedAt This property is required. string
Timestamp of when the resource was created.
DeletedAt This property is required. string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
Id This property is required. string
UUID of the route.
Network This property is required. string
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
TunType This property is required. string
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
TunnelId This property is required. string
UUID of the tunnel.
TunnelName This property is required. string
A user-friendly name for a tunnel.
VirtualNetworkId This property is required. string
UUID of the virtual network.
VirtualNetworkName This property is required. string
A user-friendly name for the virtual network.
Comment This property is required. string
Optional remark describing the route.
CreatedAt This property is required. string
Timestamp of when the resource was created.
DeletedAt This property is required. string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
Id This property is required. string
UUID of the route.
Network This property is required. string
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
TunType This property is required. string
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
TunnelId This property is required. string
UUID of the tunnel.
TunnelName This property is required. string
A user-friendly name for a tunnel.
VirtualNetworkId This property is required. string
UUID of the virtual network.
VirtualNetworkName This property is required. string
A user-friendly name for the virtual network.
comment This property is required. String
Optional remark describing the route.
createdAt This property is required. String
Timestamp of when the resource was created.
deletedAt This property is required. String
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id This property is required. String
UUID of the route.
network This property is required. String
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
tunType This property is required. String
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
tunnelId This property is required. String
UUID of the tunnel.
tunnelName This property is required. String
A user-friendly name for a tunnel.
virtualNetworkId This property is required. String
UUID of the virtual network.
virtualNetworkName This property is required. String
A user-friendly name for the virtual network.
comment This property is required. string
Optional remark describing the route.
createdAt This property is required. string
Timestamp of when the resource was created.
deletedAt This property is required. string
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id This property is required. string
UUID of the route.
network This property is required. string
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
tunType This property is required. string
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
tunnelId This property is required. string
UUID of the tunnel.
tunnelName This property is required. string
A user-friendly name for a tunnel.
virtualNetworkId This property is required. string
UUID of the virtual network.
virtualNetworkName This property is required. string
A user-friendly name for the virtual network.
comment This property is required. str
Optional remark describing the route.
created_at This property is required. str
Timestamp of when the resource was created.
deleted_at This property is required. str
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id This property is required. str
UUID of the route.
network This property is required. str
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
tun_type This property is required. str
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
tunnel_id This property is required. str
UUID of the tunnel.
tunnel_name This property is required. str
A user-friendly name for a tunnel.
virtual_network_id This property is required. str
UUID of the virtual network.
virtual_network_name This property is required. str
A user-friendly name for the virtual network.
comment This property is required. String
Optional remark describing the route.
createdAt This property is required. String
Timestamp of when the resource was created.
deletedAt This property is required. String
Timestamp of when the resource was deleted. If null, the resource has not been deleted.
id This property is required. String
UUID of the route.
network This property is required. String
The private IPv4 or IPv6 range connected by the route, in CIDR notation.
tunType This property is required. String
The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
tunnelId This property is required. String
UUID of the tunnel.
tunnelName This property is required. String
A user-friendly name for a tunnel.
virtualNetworkId This property is required. String
UUID of the virtual network.
virtualNetworkName This property is required. String
A user-friendly name for 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.