ZeroTrustTunnelCloudflared

class ZeroTrustTunnelCloudflared : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustTunnelCloudflared = new cloudflare.ZeroTrustTunnelCloudflared("example_zero_trust_tunnel_cloudflared", {
accountId: "699d98642c564d2e855e9661899b7252",
name: "blog",
configSrc: "local",
tunnelSecret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_tunnel_cloudflared = cloudflare.ZeroTrustTunnelCloudflared("example_zero_trust_tunnel_cloudflared",
account_id="699d98642c564d2e855e9661899b7252",
name="blog",
config_src="local",
tunnel_secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustTunnelCloudflared = new Cloudflare.ZeroTrustTunnelCloudflared("example_zero_trust_tunnel_cloudflared", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Name = "blog",
ConfigSrc = "local",
TunnelSecret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
});
});
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.NewZeroTrustTunnelCloudflared(ctx, "example_zero_trust_tunnel_cloudflared", &cloudflare.ZeroTrustTunnelCloudflaredArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Name: pulumi.String("blog"),
ConfigSrc: pulumi.String("local"),
TunnelSecret: pulumi.String("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustTunnelCloudflared;
import com.pulumi.cloudflare.ZeroTrustTunnelCloudflaredArgs;
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 exampleZeroTrustTunnelCloudflared = new ZeroTrustTunnelCloudflared("exampleZeroTrustTunnelCloudflared", ZeroTrustTunnelCloudflaredArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.name("blog")
.configSrc("local")
.tunnelSecret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
.build());
}
}
resources:
exampleZeroTrustTunnelCloudflared:
type: cloudflare:ZeroTrustTunnelCloudflared
name: example_zero_trust_tunnel_cloudflared
properties:
accountId: 699d98642c564d2e855e9661899b7252
name: blog
configSrc: local
tunnelSecret: AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=

Import

$ pulumi import cloudflare:index/zeroTrustTunnelCloudflared:ZeroTrustTunnelCloudflared example '<account_id>/<tunnel_id>'

Properties

Link copied to clipboard
val accountId: Output<String>

Cloudflare account ID

Link copied to clipboard
val accountTag: Output<String>

Cloudflare account ID

Link copied to clipboard
val configSrc: Output<String>

Indicates if this is a locally or remotely configured tunnel. If local, manage the tunnel using a YAML file on the origin machine. If cloudflare, manage the tunnel on the Zero Trust dashboard. Available values: "local", "cloudflare".

Link copied to clipboard

The Cloudflare Tunnel connections between your origin and Cloudflare's edge.

Link copied to clipboard
val connsActiveAt: Output<String>

Timestamp of when the tunnel established at least one connection to Cloudflare's edge. If null, the tunnel is inactive.

Link copied to clipboard
val connsInactiveAt: Output<String>

Timestamp of when the tunnel became inactive (no connections to Cloudflare's edge). If null, the tunnel is active.

Link copied to clipboard
val createdAt: Output<String>

Timestamp of when the resource was created.

Link copied to clipboard
val deletedAt: Output<String>

Timestamp of when the resource was deleted. If null, the resource has not been deleted.

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

Metadata associated with the tunnel.

Link copied to clipboard
val name: Output<String>

A user-friendly name for a tunnel.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val remoteConfig: Output<Boolean>

If true, the tunnel can be configured remotely from the Zero Trust dashboard. If false, the tunnel must be configured locally on the origin machine.

Link copied to clipboard
val status: Output<String>

The status of the tunnel. Valid values are inactive (tunnel has never been run), degraded (tunnel is active and able to serve traffic but in an unhealthy state), healthy (tunnel is active and able to serve traffic), or down (tunnel can not serve traffic as it has no connections to the Cloudflare Edge). Available values: "inactive", "degraded", "healthy", "down".

Link copied to clipboard
val tunnelSecret: Output<String>?

Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.

Link copied to clipboard
val tunType: Output<String>

The type of tunnel. Available values: "cfdtunnel", "warpconnector", "warp", "magic", "ip_sec", "gre", "cni".

Link copied to clipboard
val urn: Output<String>