TunnelRoute

class TunnelRoute : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

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

Description of the tunnel route.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val network: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tunnelId: Output<String>

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

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

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.