MagicWanGreTunnelArgs

data class MagicWanGreTunnelArgs(val accountId: Output<String>? = null, val cloudflareGreEndpoint: Output<String>? = null, val customerGreEndpoint: Output<String>? = null, val description: Output<String>? = null, val healthCheckEnabled: Output<Boolean>? = null, val healthCheckTarget: Output<String>? = null, val healthCheckType: Output<String>? = null, val interfaceAddress: Output<String>? = null, val mtu: Output<Int>? = null, val name: Output<String>? = null, val ttl: Output<Int>? = null) : ConvertibleToJava<MagicWanGreTunnelArgs>

Provides a resource, that manages GRE tunnels for Magic Transit.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.MagicWanGreTunnel("example", {
accountId: "f037e56e89293a057740de681ac9abbe",
name: "GRE_1",
customerGreEndpoint: "203.0.113.1",
cloudflareGreEndpoint: "203.0.113.2",
interfaceAddress: "192.0.2.0/31",
description: "Tunnel for ISP X",
ttl: 64,
mtu: 1476,
healthCheckEnabled: true,
healthCheckTarget: "203.0.113.1",
healthCheckType: "reply",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.MagicWanGreTunnel("example",
account_id="f037e56e89293a057740de681ac9abbe",
name="GRE_1",
customer_gre_endpoint="203.0.113.1",
cloudflare_gre_endpoint="203.0.113.2",
interface_address="192.0.2.0/31",
description="Tunnel for ISP X",
ttl=64,
mtu=1476,
health_check_enabled=True,
health_check_target="203.0.113.1",
health_check_type="reply")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.MagicWanGreTunnel("example", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "GRE_1",
CustomerGreEndpoint = "203.0.113.1",
CloudflareGreEndpoint = "203.0.113.2",
InterfaceAddress = "192.0.2.0/31",
Description = "Tunnel for ISP X",
Ttl = 64,
Mtu = 1476,
HealthCheckEnabled = true,
HealthCheckTarget = "203.0.113.1",
HealthCheckType = "reply",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewMagicWanGreTunnel(ctx, "example", &cloudflare.MagicWanGreTunnelArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Name: pulumi.String("GRE_1"),
CustomerGreEndpoint: pulumi.String("203.0.113.1"),
CloudflareGreEndpoint: pulumi.String("203.0.113.2"),
InterfaceAddress: pulumi.String("192.0.2.0/31"),
Description: pulumi.String("Tunnel for ISP X"),
Ttl: pulumi.Int(64),
Mtu: pulumi.Int(1476),
HealthCheckEnabled: pulumi.Bool(true),
HealthCheckTarget: pulumi.String("203.0.113.1"),
HealthCheckType: pulumi.String("reply"),
})
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.MagicWanGreTunnel;
import com.pulumi.cloudflare.MagicWanGreTunnelArgs;
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 example = new MagicWanGreTunnel("example", MagicWanGreTunnelArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("GRE_1")
.customerGreEndpoint("203.0.113.1")
.cloudflareGreEndpoint("203.0.113.2")
.interfaceAddress("192.0.2.0/31")
.description("Tunnel for ISP X")
.ttl(64)
.mtu(1476)
.healthCheckEnabled(true)
.healthCheckTarget("203.0.113.1")
.healthCheckType("reply")
.build());
}
}
resources:
example:
type: cloudflare:MagicWanGreTunnel
properties:
accountId: f037e56e89293a057740de681ac9abbe
name: GRE_1
customerGreEndpoint: 203.0.113.1
cloudflareGreEndpoint: 203.0.113.2
interfaceAddress: 192.0.2.0/31
description: Tunnel for ISP X
ttl: 64
mtu: 1476
healthCheckEnabled: true
healthCheckTarget: 203.0.113.1
healthCheckType: reply

Import

$ pulumi import cloudflare:index/magicWanGreTunnel:MagicWanGreTunnel example <account_id>/<tunnel_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, cloudflareGreEndpoint: Output<String>? = null, customerGreEndpoint: Output<String>? = null, description: Output<String>? = null, healthCheckEnabled: Output<Boolean>? = null, healthCheckTarget: Output<String>? = null, healthCheckType: Output<String>? = null, interfaceAddress: Output<String>? = null, mtu: Output<Int>? = null, name: Output<String>? = null, ttl: Output<Int>? = 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 cloudflareGreEndpoint: Output<String>? = null

The IP address assigned to the Cloudflare side of the GRE tunnel.

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

The IP address assigned to the customer side of the GRE tunnel.

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

Description of the GRE tunnel intent.

Link copied to clipboard
val healthCheckEnabled: Output<Boolean>? = null

Specifies if ICMP tunnel health checks are enabled.

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

The IP address of the customer endpoint that will receive tunnel health checks.

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

Specifies the ICMP echo type for the health check. Available values: request, reply.

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

31-bit prefix (/31 in CIDR notation) supporting 2 hosts, one for each side of the tunnel.

Link copied to clipboard
val mtu: Output<Int>? = null

Maximum Transmission Unit (MTU) in bytes for the GRE tunnel.

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

Name of the GRE tunnel.

Link copied to clipboard
val ttl: Output<Int>? = null

Time To Live (TTL) in number of hops of the GRE tunnel.

Functions

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