Cloudflare v6.1.2 published on Monday, Apr 28, 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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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>
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]
func LookupZeroTrustTunnelCloudflaredRoutes(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRoutesArgs, opts ...InvokeOption) (*LookupZeroTrustTunnelCloudflaredRoutesResult, error)
func LookupZeroTrustTunnelCloudflaredRoutesOutput(ctx *Context, args *LookupZeroTrustTunnelCloudflaredRoutesOutputArgs, opts ...InvokeOption) LookupZeroTrustTunnelCloudflaredRoutesResultOutput
> 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)
}
public static CompletableFuture<GetZeroTrustTunnelCloudflaredRoutesResult> getZeroTrustTunnelCloudflaredRoutes(GetZeroTrustTunnelCloudflaredRoutesArgs args, InvokeOptions options)
public static Output<GetZeroTrustTunnelCloudflaredRoutesResult> getZeroTrustTunnelCloudflaredRoutes(GetZeroTrustTunnelCloudflaredRoutesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustTunnelCloudflaredRoutes:getZeroTrustTunnelCloudflaredRoutes
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Cloudflare account ID
- Comment string
- Optional remark describing the route.
- Existed
At string - 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. Iffalse
, exclude deleted routes. If empty, all routes will be included. - Max
Items int - Max items to fetch, default: 1000
- Network
Subset string - If set, only list routes that are contained within this IP range.
- Network
Superset string - If set, only list routes that contain this IP range.
- Route
Id string - UUID of the route.
- Tun
Types List<string> - The types of tunnels to filter by, separated by commas.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- Account
Id string - Cloudflare account ID
- Comment string
- Optional remark describing the route.
- Existed
At string - 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. Iffalse
, exclude deleted routes. If empty, all routes will be included. - Max
Items int - Max items to fetch, default: 1000
- Network
Subset string - If set, only list routes that are contained within this IP range.
- Network
Superset string - If set, only list routes that contain this IP range.
- Route
Id string - UUID of the route.
- Tun
Types []string - The types of tunnels to filter by, separated by commas.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- comment String
- Optional remark describing the route.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted Boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items Integer - Max items to fetch, default: 1000
- network
Subset String - If set, only list routes that are contained within this IP range.
- network
Superset String - If set, only list routes that contain this IP range.
- route
Id String - UUID of the route.
- tun
Types List<String> - The types of tunnels to filter by, separated by commas.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
- account
Id string - Cloudflare account ID
- comment string
- Optional remark describing the route.
- existed
At string - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items number - Max items to fetch, default: 1000
- network
Subset string - If set, only list routes that are contained within this IP range.
- network
Superset string - If set, only list routes that contain this IP range.
- route
Id string - UUID of the route.
- tun
Types string[] - The types of tunnels to filter by, separated by commas.
- tunnel
Id string - UUID of the tunnel.
- virtual
Network stringId - UUID of the virtual network.
- account_
id 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. Iffalse
, 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_ strid - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- comment String
- Optional remark describing the route.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted Boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items Number - Max items to fetch, default: 1000
- network
Subset String - If set, only list routes that are contained within this IP range.
- network
Superset String - If set, only list routes that contain this IP range.
- route
Id String - UUID of the route.
- tun
Types List<String> - The types of tunnels to filter by, separated by commas.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
getZeroTrustTunnelCloudflaredRoutes Result
The following output properties are available:
- Account
Id string - Cloudflare account ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Zero Trust Tunnel Cloudflared Routes Result> - The items returned by the data source
- Comment string
- Optional remark describing the route.
- Existed
At string - 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. Iffalse
, exclude deleted routes. If empty, all routes will be included. - Max
Items int - Max items to fetch, default: 1000
- Network
Subset string - If set, only list routes that are contained within this IP range.
- Network
Superset string - If set, only list routes that contain this IP range.
- Route
Id string - UUID of the route.
- Tun
Types List<string> - The types of tunnels to filter by, separated by commas.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- Account
Id string - Cloudflare account ID
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Zero Trust Tunnel Cloudflared Routes Result - The items returned by the data source
- Comment string
- Optional remark describing the route.
- Existed
At string - 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. Iffalse
, exclude deleted routes. If empty, all routes will be included. - Max
Items int - Max items to fetch, default: 1000
- Network
Subset string - If set, only list routes that are contained within this IP range.
- Network
Superset string - If set, only list routes that contain this IP range.
- Route
Id string - UUID of the route.
- Tun
Types []string - The types of tunnels to filter by, separated by commas.
- Tunnel
Id string - UUID of the tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- account
Id String - Cloudflare account ID
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Zero Trust Tunnel Cloudflared Routes Result> - The items returned by the data source
- comment String
- Optional remark describing the route.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted Boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items Integer - Max items to fetch, default: 1000
- network
Subset String - If set, only list routes that are contained within this IP range.
- network
Superset String - If set, only list routes that contain this IP range.
- route
Id String - UUID of the route.
- tun
Types List<String> - The types of tunnels to filter by, separated by commas.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
- account
Id string - Cloudflare account ID
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Zero Trust Tunnel Cloudflared Routes Result[] - The items returned by the data source
- comment string
- Optional remark describing the route.
- existed
At string - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items number - Max items to fetch, default: 1000
- network
Subset string - If set, only list routes that are contained within this IP range.
- network
Superset string - If set, only list routes that contain this IP range.
- route
Id string - UUID of the route.
- tun
Types string[] - The types of tunnels to filter by, separated by commas.
- tunnel
Id string - UUID of the tunnel.
- virtual
Network stringId - UUID of the virtual network.
- account_
id str - Cloudflare account ID
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Zero Trust Tunnel Cloudflared Routes Result] - 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. Iffalse
, 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_ strid - UUID of the virtual network.
- account
Id 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.
- existed
At String - If provided, include only resources that were created (and not deleted) before this time. URL encoded.
- is
Deleted Boolean - If
true
, only include deleted routes. Iffalse
, exclude deleted routes. If empty, all routes will be included. - max
Items Number - Max items to fetch, default: 1000
- network
Subset String - If set, only list routes that are contained within this IP range.
- network
Superset String - If set, only list routes that contain this IP range.
- route
Id String - UUID of the route.
- tun
Types List<String> - The types of tunnels to filter by, separated by commas.
- tunnel
Id String - UUID of the tunnel.
- virtual
Network StringId - UUID of the virtual network.
Supporting Types
GetZeroTrustTunnelCloudflaredRoutesResult
- Comment string
- Optional remark describing the 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. - Id string
- UUID of the route.
- Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tun
Type string - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- Virtual
Network stringName - A user-friendly name for the virtual network.
- Comment string
- Optional remark describing the 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. - Id string
- UUID of the route.
- Network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- Tun
Type string - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Virtual
Network stringId - UUID of the virtual network.
- Virtual
Network stringName - A user-friendly name for the virtual network.
- comment String
- Optional remark describing the 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. - id String
- UUID of the route.
- network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tun
Type String - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
- virtual
Network StringId - UUID of the virtual network.
- virtual
Network StringName - A user-friendly name for the virtual network.
- comment string
- Optional remark describing the 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. - id string
- UUID of the route.
- network string
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tun
Type string - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- tunnel
Id string - UUID of the tunnel.
- tunnel
Name string - A user-friendly name for a tunnel.
- virtual
Network stringId - UUID of the virtual network.
- virtual
Network stringName - A user-friendly name for the virtual network.
- 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.
- tun_
type str - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- tunnel_
id str - UUID of the tunnel.
- tunnel_
name str - A user-friendly name for a tunnel.
- virtual_
network_ strid - UUID of the virtual network.
- virtual_
network_ strname - A user-friendly name for the virtual network.
- comment String
- Optional remark describing the 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. - id String
- UUID of the route.
- network String
- The private IPv4 or IPv6 range connected by the route, in CIDR notation.
- tun
Type String - The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
- virtual
Network StringId - UUID of the virtual network.
- virtual
Network StringName - 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.