TunnelRouteArgs

data class TunnelRouteArgs(val accountId: Output<String>? = null, val comment: Output<String>? = null, val network: Output<String>? = null, val tunnelId: Output<String>? = null, val virtualNetworkId: Output<String>? = null) : ConvertibleToJava<TunnelRouteArgs>

Provides a resource, that manages Cloudflare tunnel routes for Zero Trust. Tunnel routes are used to direct IP traffic through Cloudflare Tunnels.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.TunnelRoute;
import com.pulumi.cloudflare.TunnelRouteArgs;
import com.pulumi.cloudflare.ArgoTunnel;
import com.pulumi.cloudflare.ArgoTunnelArgs;
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) {
var exampleTunnelRoute = new TunnelRoute("exampleTunnelRoute", TunnelRouteArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.network("192.0.2.24/32")
.comment("New tunnel route for documentation")
.virtualNetworkId("bdc39a3c-3104-4c23-8ac0-9f455dda691a")
.build());
var tunnel = new ArgoTunnel("tunnel", ArgoTunnelArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("my_tunnel")
.secret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
.build());
var exampleIndex_tunnelRouteTunnelRoute = new TunnelRoute("exampleIndex/tunnelRouteTunnelRoute", TunnelRouteArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.tunnelId(tunnel.id())
.network("192.0.2.24/32")
.comment("New tunnel route for documentation")
.virtualNetworkId("bdc39a3c-3104-4c23-8ac0-9f455dda691a")
.build());
}
}

Import

$ pulumi import cloudflare:index/tunnelRoute:TunnelRoute example <account_id>/<network_cidr>/<virtual_network_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, comment: Output<String>? = null, network: Output<String>? = null, tunnelId: Output<String>? = null, virtualNetworkId: Output<String>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val comment: Output<String>? = null

Description of the tunnel route.

Link copied to clipboard
val network: Output<String>? = null

The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.

Link copied to clipboard
val tunnelId: Output<String>? = null

The ID of the tunnel that will service the tunnel route.

Link copied to clipboard
val virtualNetworkId: Output<String>? = null

The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. Modifying this attribute will force creation of a new resource.

Functions

Link copied to clipboard
open override fun toJava(): TunnelRouteArgs