published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
An encrypted or virtual tunnel (vpn.tunnel).
From the official documentation:
NetBox can model private tunnels formed among virtual termination points across your network. Typical tunnel implementations include GRE, IP-in-IP, and IPSec. A tunnel may be terminated to two or more device or virtual machine interfaces. For convenient organization, tunnels may be assigned to user-defined groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.VpnTunnelGroup("test", {name: "test-vpn-tunnel-group"});
const testTenant = new netbox.Tenant("test", {name: "test-tenant"});
const testVpnTunnel = new netbox.VpnTunnel("test", {
name: "test-vpn-tunnel",
encapsulation: "gre",
status: "active",
vpnTunnelGroupId: test.vpnTunnelGroupId,
tenantId: testTenant.tenantId,
tunnelId: 42,
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.VpnTunnelGroup("test", name="test-vpn-tunnel-group")
test_tenant = netbox.Tenant("test", name="test-tenant")
test_vpn_tunnel = netbox.VpnTunnel("test",
name="test-vpn-tunnel",
encapsulation="gre",
status="active",
vpn_tunnel_group_id=test.vpn_tunnel_group_id,
tenant_id=test_tenant.tenant_id,
tunnel_id=42,
description="test-description")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/netbox/v6/netbox"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := netbox.NewVpnTunnelGroup(ctx, "test", &netbox.VpnTunnelGroupArgs{
Name: pulumi.String("test-vpn-tunnel-group"),
})
if err != nil {
return err
}
testTenant, err := netbox.NewTenant(ctx, "test", &netbox.TenantArgs{
Name: pulumi.String("test-tenant"),
})
if err != nil {
return err
}
_, err = netbox.NewVpnTunnel(ctx, "test", &netbox.VpnTunnelArgs{
Name: pulumi.String("test-vpn-tunnel"),
Encapsulation: pulumi.String("gre"),
Status: pulumi.String("active"),
VpnTunnelGroupId: test.VpnTunnelGroupId,
TenantId: testTenant.TenantId,
TunnelId: pulumi.Float64(42),
Description: pulumi.String("test-description"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Netbox = Pulumi.Netbox;
return await Deployment.RunAsync(() =>
{
var test = new Netbox.VpnTunnelGroup("test", new()
{
Name = "test-vpn-tunnel-group",
});
var testTenant = new Netbox.Tenant("test", new()
{
Name = "test-tenant",
});
var testVpnTunnel = new Netbox.VpnTunnel("test", new()
{
Name = "test-vpn-tunnel",
Encapsulation = "gre",
Status = "active",
VpnTunnelGroupId = test.VpnTunnelGroupId,
TenantId = testTenant.TenantId,
TunnelId = 42,
Description = "test-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.VpnTunnelGroup;
import com.pulumi.netbox.VpnTunnelGroupArgs;
import com.pulumi.netbox.Tenant;
import com.pulumi.netbox.TenantArgs;
import com.pulumi.netbox.VpnTunnel;
import com.pulumi.netbox.VpnTunnelArgs;
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 test = new VpnTunnelGroup("test", VpnTunnelGroupArgs.builder()
.name("test-vpn-tunnel-group")
.build());
var testTenant = new Tenant("testTenant", TenantArgs.builder()
.name("test-tenant")
.build());
var testVpnTunnel = new VpnTunnel("testVpnTunnel", VpnTunnelArgs.builder()
.name("test-vpn-tunnel")
.encapsulation("gre")
.status("active")
.vpnTunnelGroupId(test.vpnTunnelGroupId())
.tenantId(testTenant.tenantId())
.tunnelId(42.0)
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:VpnTunnelGroup
properties:
name: test-vpn-tunnel-group
testTenant:
type: netbox:Tenant
name: test
properties:
name: test-tenant
testVpnTunnel:
type: netbox:VpnTunnel
name: test
properties:
name: test-vpn-tunnel
encapsulation: gre
status: active
vpnTunnelGroupId: ${test.vpnTunnelGroupId}
tenantId: ${testTenant.tenantId}
tunnelId: 42
description: test-description
Example coming soon!
Create VpnTunnel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpnTunnel(name: string, args: VpnTunnelArgs, opts?: CustomResourceOptions);@overload
def VpnTunnel(resource_name: str,
args: VpnTunnelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpnTunnel(resource_name: str,
opts: Optional[ResourceOptions] = None,
encapsulation: Optional[str] = None,
owner_id: Optional[float] = None,
description: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
ipsec_profile_id: Optional[float] = None,
name: Optional[str] = None,
comments: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None,
tunnel_group_id: Optional[float] = None,
tunnel_id: Optional[float] = None,
vpn_tunnel_group_id: Optional[float] = None)func NewVpnTunnel(ctx *Context, name string, args VpnTunnelArgs, opts ...ResourceOption) (*VpnTunnel, error)public VpnTunnel(string name, VpnTunnelArgs args, CustomResourceOptions? opts = null)
public VpnTunnel(String name, VpnTunnelArgs args)
public VpnTunnel(String name, VpnTunnelArgs args, CustomResourceOptions options)
type: netbox:VpnTunnel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_vpn_tunnel" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VpnTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpnTunnelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpnTunnelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpnTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpnTunnelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var vpnTunnelResource = new Netbox.VpnTunnel("vpnTunnelResource", new()
{
Encapsulation = "string",
OwnerId = 0.0,
Description = "string",
CustomFields =
{
{ "string", "string" },
},
IpsecProfileId = 0.0,
Name = "string",
Comments = "string",
Status = "string",
Tags = new[]
{
"string",
},
TenantId = 0.0,
TunnelId = 0.0,
VpnTunnelGroupId = 0.0,
});
example, err := netbox.NewVpnTunnel(ctx, "vpnTunnelResource", &netbox.VpnTunnelArgs{
Encapsulation: pulumi.String("string"),
OwnerId: pulumi.Float64(0),
Description: pulumi.String("string"),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
IpsecProfileId: pulumi.Float64(0),
Name: pulumi.String("string"),
Comments: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.Float64(0),
TunnelId: pulumi.Float64(0),
VpnTunnelGroupId: pulumi.Float64(0),
})
resource "netbox_vpn_tunnel" "vpnTunnelResource" {
lifecycle {
create_before_destroy = true
}
encapsulation = "string"
owner_id = 0
description = "string"
custom_fields = {
"string" = "string"
}
ipsec_profile_id = 0
name = "string"
comments = "string"
status = "string"
tags = ["string"]
tenant_id = 0
tunnel_id = 0
vpn_tunnel_group_id = 0
}
var vpnTunnelResource = new VpnTunnel("vpnTunnelResource", VpnTunnelArgs.builder()
.encapsulation("string")
.ownerId(0.0)
.description("string")
.customFields(Map.of("string", "string"))
.ipsecProfileId(0.0)
.name("string")
.comments("string")
.status("string")
.tags("string")
.tenantId(0.0)
.tunnelId(0.0)
.vpnTunnelGroupId(0.0)
.build());
vpn_tunnel_resource = netbox.VpnTunnel("vpnTunnelResource",
encapsulation="string",
owner_id=float(0),
description="string",
custom_fields={
"string": "string",
},
ipsec_profile_id=float(0),
name="string",
comments="string",
status="string",
tags=["string"],
tenant_id=float(0),
tunnel_id=float(0),
vpn_tunnel_group_id=float(0))
const vpnTunnelResource = new netbox.VpnTunnel("vpnTunnelResource", {
encapsulation: "string",
ownerId: 0,
description: "string",
customFields: {
string: "string",
},
ipsecProfileId: 0,
name: "string",
comments: "string",
status: "string",
tags: ["string"],
tenantId: 0,
tunnelId: 0,
vpnTunnelGroupId: 0,
});
type: netbox:VpnTunnel
properties:
comments: string
customFields:
string: string
description: string
encapsulation: string
ipsecProfileId: 0
name: string
ownerId: 0
status: string
tags:
- string
tenantId: 0
tunnelId: 0
vpnTunnelGroupId: 0
VpnTunnel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpnTunnel resource accepts the following input properties:
- Encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- Comments string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Profile doubleId - Id of the IPsec profile.
- Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id double - Id of the tenant.
- Tunnel
Group doubleId - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Vpn
Tunnel doubleGroup Id - Id of the tunnel group.
- Encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- Comments string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Ipsec
Profile float64Id - Id of the IPsec profile.
- Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Tenant
Id float64 - Id of the tenant.
- Tunnel
Group float64Id - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id float64 - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Vpn
Tunnel float64Group Id - Id of the tunnel group.
- encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- comments string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec_
profile_ numberid - Id of the IPsec profile.
- name string
- owner_
id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, active, disabled.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant_
id number - Id of the tenant.
- tunnel_
group_ numberid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- vpn_
tunnel_ numbergroup_ id - Id of the tunnel group.
- encapsulation String
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- comments String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Profile DoubleId - Id of the IPsec profile.
- name String
- owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, active, disabled.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id Double - Id of the tenant.
- tunnel
Group DoubleId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- vpn
Tunnel DoubleGroup Id - Id of the tunnel group.
- encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- comments string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- ipsec
Profile numberId - Id of the IPsec profile.
- name string
- owner
Id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, active, disabled.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id number - Id of the tenant.
- tunnel
Group numberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- vpn
Tunnel numberGroup Id - Id of the tunnel group.
- encapsulation str
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- comments str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- ipsec_
profile_ floatid - Id of the IPsec profile.
- name str
- owner_
id float - Id of the owner the object is assigned to.
- status str
- Operational status. One of: planned, active, disabled.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant_
id float - Id of the tenant.
- tunnel_
group_ floatid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id float - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- vpn_
tunnel_ floatgroup_ id - Id of the tunnel group.
- encapsulation String
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- comments String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- ipsec
Profile NumberId - Id of the IPsec profile.
- name String
- owner
Id Number - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, active, disabled.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- tenant
Id Number - Id of the tenant.
- tunnel
Group NumberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- vpn
Tunnel NumberGroup Id - Id of the tunnel group.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpnTunnel resource produces the following output properties:
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Termination
Count double - Number of terminations of the tunnel.
- Url string
- Vpn
Tunnel doubleId - NetBox id.
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated string - []string
- Slugs of all tags on the object, including the provider's default_tags.
- Termination
Count float64 - Number of terminations of the tunnel.
- Url string
- Vpn
Tunnel float64Id - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated string - list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- termination_
count number - Number of terminations of the tunnel.
- url string
- vpn_
tunnel_ numberid - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- termination
Count Double - Number of terminations of the tunnel.
- url String
- vpn
Tunnel DoubleId - NetBox id.
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated string - string[]
- Slugs of all tags on the object, including the provider's default_tags.
- termination
Count number - Number of terminations of the tunnel.
- url string
- vpn
Tunnel numberId - NetBox id.
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated str - Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- termination_
count float - Number of terminations of the tunnel.
- url str
- vpn_
tunnel_ floatid - NetBox id.
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- termination
Count Number - Number of terminations of the tunnel.
- url String
- vpn
Tunnel NumberId - NetBox id.
Look up Existing VpnTunnel Resource
Get an existing VpnTunnel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VpnTunnelState, opts?: CustomResourceOptions): VpnTunnel@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
created: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
encapsulation: Optional[str] = None,
ipsec_profile_id: Optional[float] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
owner_id: Optional[float] = None,
status: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
tenant_id: Optional[float] = None,
termination_count: Optional[float] = None,
tunnel_group_id: Optional[float] = None,
tunnel_id: Optional[float] = None,
url: Optional[str] = None,
vpn_tunnel_group_id: Optional[float] = None,
vpn_tunnel_id: Optional[float] = None) -> VpnTunnelfunc GetVpnTunnel(ctx *Context, name string, id IDInput, state *VpnTunnelState, opts ...ResourceOption) (*VpnTunnel, error)public static VpnTunnel Get(string name, Input<string> id, VpnTunnelState? state, CustomResourceOptions? opts = null)public static VpnTunnel get(String name, Output<String> id, VpnTunnelState state, CustomResourceOptions options)resources: existingVpnTunnel: type: netbox:VpnTunnel get: id: ${id}import {
to = netbox_vpn_tunnel.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state VpnTunnelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state VpnTunnelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state VpnTunnelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state VpnTunnelState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Comments string
- Created string
- Custom
Fields Dictionary<string, string> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- Ipsec
Profile doubleId - Id of the IPsec profile.
- Last
Updated string - Name string
- Owner
Id double - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id double - Id of the tenant.
- Termination
Count double - Number of terminations of the tunnel.
- Tunnel
Group doubleId - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Url string
- Vpn
Tunnel doubleGroup Id - Id of the tunnel group.
- Vpn
Tunnel doubleId - NetBox id.
- Comments string
- Created string
- Custom
Fields map[string]string - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- Description string
- Encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- Ipsec
Profile float64Id - Id of the IPsec profile.
- Last
Updated string - Name string
- Owner
Id float64 - Id of the owner the object is assigned to.
- Status string
- Operational status. One of: planned, active, disabled.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- []string
- Slugs of all tags on the object, including the provider's default_tags.
- Tenant
Id float64 - Id of the tenant.
- Termination
Count float64 - Number of terminations of the tunnel.
- Tunnel
Group float64Id - Deprecated alias of vpntunnelgroup_id.
- Tunnel
Id float64 - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- Url string
- Vpn
Tunnel float64Group Id - Id of the tunnel group.
- Vpn
Tunnel float64Id - NetBox id.
- comments string
- created string
- custom_
fields map(string) - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- ipsec_
profile_ numberid - Id of the IPsec profile.
- last_
updated string - name string
- owner_
id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, active, disabled.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- tenant_
id number - Id of the tenant.
- termination_
count number - Number of terminations of the tunnel.
- tunnel_
group_ numberid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url string
- vpn_
tunnel_ numbergroup_ id - Id of the tunnel group.
- vpn_
tunnel_ numberid - NetBox id.
- comments String
- created String
- custom
Fields Map<String,String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- encapsulation String
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- ipsec
Profile DoubleId - Id of the IPsec profile.
- last
Updated String - name String
- owner
Id Double - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, active, disabled.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id Double - Id of the tenant.
- termination
Count Double - Number of terminations of the tunnel.
- tunnel
Group DoubleId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Double - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url String
- vpn
Tunnel DoubleGroup Id - Id of the tunnel group.
- vpn
Tunnel DoubleId - NetBox id.
- comments string
- created string
- custom
Fields {[key: string]: string} - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description string
- encapsulation string
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- ipsec
Profile numberId - Id of the IPsec profile.
- last
Updated string - name string
- owner
Id number - Id of the owner the object is assigned to.
- status string
- Operational status. One of: planned, active, disabled.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- string[]
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id number - Id of the tenant.
- termination
Count number - Number of terminations of the tunnel.
- tunnel
Group numberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url string
- vpn
Tunnel numberGroup Id - Id of the tunnel group.
- vpn
Tunnel numberId - NetBox id.
- comments str
- created str
- custom_
fields Mapping[str, str] - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description str
- encapsulation str
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- ipsec_
profile_ floatid - Id of the IPsec profile.
- last_
updated str - name str
- owner_
id float - Id of the owner the object is assigned to.
- status str
- Operational status. One of: planned, active, disabled.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- tenant_
id float - Id of the tenant.
- termination_
count float - Number of terminations of the tunnel.
- tunnel_
group_ floatid - Deprecated alias of vpntunnelgroup_id.
- tunnel_
id float - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url str
- vpn_
tunnel_ floatgroup_ id - Id of the tunnel group.
- vpn_
tunnel_ floatid - NetBox id.
- comments String
- created String
- custom
Fields Map<String> - Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
- description String
- encapsulation String
- Tunnel encapsulation protocol. One of: ipsec-transport, ipsec-tunnel, ip-ip, gre, wireguard, openvpn, l2tp, pptp.
- ipsec
Profile NumberId - Id of the IPsec profile.
- last
Updated String - name String
- owner
Id Number - Id of the owner the object is assigned to.
- status String
- Operational status. One of: planned, active, disabled.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- tenant
Id Number - Id of the tenant.
- termination
Count Number - Number of terminations of the tunnel.
- tunnel
Group NumberId - Deprecated alias of vpntunnelgroup_id.
- tunnel
Id Number - Numeric tunnel identifier on the wire (e.g. a GRE key), not the NetBox id.
- url String
- vpn
Tunnel NumberGroup Id - Id of the tunnel group.
- vpn
Tunnel NumberId - NetBox id.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_vpn_tunnel.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/vpnTunnel:VpnTunnel test 123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger