published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
An L2VPN termination attaching an interface or VLAN to an L2VPN (vpn.l2vpntermination).
From the official documentation:
A L2VPN termination is the attachment of an L2VPN to an interface or VLAN. Note that the L2VPNs of the following types may have only two terminations assigned to them:
- VPWS
- EPL
- EP-LAN
- EP-TREE
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = new netbox.L2vpn("test", {
name: "test-l2vpn",
type: "vxlan",
});
const testVlan = new netbox.Vlan("test", {
name: "test-vlan",
vid: 100,
});
const testL2vpnTermination = new netbox.L2vpnTermination("test", {
l2vpnId: test.l2vpnId,
vlanId: testVlan.vlanId,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.L2vpn("test",
name="test-l2vpn",
type="vxlan")
test_vlan = netbox.Vlan("test",
name="test-vlan",
vid=100)
test_l2vpn_termination = netbox.L2vpnTermination("test",
l2vpn_id=test.l2vpn_id,
vlan_id=test_vlan.vlan_id)
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.NewL2vpn(ctx, "test", &netbox.L2vpnArgs{
Name: pulumi.String("test-l2vpn"),
Type: pulumi.String("vxlan"),
})
if err != nil {
return err
}
testVlan, err := netbox.NewVlan(ctx, "test", &netbox.VlanArgs{
Name: pulumi.String("test-vlan"),
Vid: pulumi.Float64(100),
})
if err != nil {
return err
}
_, err = netbox.NewL2vpnTermination(ctx, "test", &netbox.L2vpnTerminationArgs{
L2vpnId: test.L2vpnId,
VlanId: testVlan.VlanId,
})
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.L2vpn("test", new()
{
Name = "test-l2vpn",
Type = "vxlan",
});
var testVlan = new Netbox.Vlan("test", new()
{
Name = "test-vlan",
Vid = 100,
});
var testL2vpnTermination = new Netbox.L2vpnTermination("test", new()
{
L2vpnId = test.L2vpnId,
VlanId = testVlan.VlanId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.L2vpn;
import com.pulumi.netbox.L2vpnArgs;
import com.pulumi.netbox.Vlan;
import com.pulumi.netbox.VlanArgs;
import com.pulumi.netbox.L2vpnTermination;
import com.pulumi.netbox.L2vpnTerminationArgs;
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 L2vpn("test", L2vpnArgs.builder()
.name("test-l2vpn")
.type("vxlan")
.build());
var testVlan = new Vlan("testVlan", VlanArgs.builder()
.name("test-vlan")
.vid(100.0)
.build());
var testL2vpnTermination = new L2vpnTermination("testL2vpnTermination", L2vpnTerminationArgs.builder()
.l2vpnId(test.l2vpnId())
.vlanId(testVlan.vlanId())
.build());
}
}
resources:
test:
type: netbox:L2vpn
properties:
name: test-l2vpn
type: vxlan
testVlan:
type: netbox:Vlan
name: test
properties:
name: test-vlan
vid: 100
testL2vpnTermination:
type: netbox:L2vpnTermination
name: test
properties:
l2vpnId: ${test.l2vpnId}
vlanId: ${testVlan.vlanId}
Example coming soon!
Create L2vpnTermination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new L2vpnTermination(name: string, args: L2vpnTerminationArgs, opts?: CustomResourceOptions);@overload
def L2vpnTermination(resource_name: str,
args: L2vpnTerminationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def L2vpnTermination(resource_name: str,
opts: Optional[ResourceOptions] = None,
l2vpn_id: Optional[float] = None,
assigned_object_id: Optional[float] = None,
assigned_object_type: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
device_interface_id: Optional[float] = None,
tags: Optional[Sequence[str]] = None,
virtual_machine_interface_id: Optional[float] = None,
vlan_id: Optional[float] = None)func NewL2vpnTermination(ctx *Context, name string, args L2vpnTerminationArgs, opts ...ResourceOption) (*L2vpnTermination, error)public L2vpnTermination(string name, L2vpnTerminationArgs args, CustomResourceOptions? opts = null)
public L2vpnTermination(String name, L2vpnTerminationArgs args)
public L2vpnTermination(String name, L2vpnTerminationArgs args, CustomResourceOptions options)
type: netbox:L2vpnTermination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_l2vpn_termination" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args L2vpnTerminationArgs
- 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 L2vpnTerminationArgs
- 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 L2vpnTerminationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args L2vpnTerminationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args L2vpnTerminationArgs
- 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 l2vpnTerminationResource = new Netbox.L2vpnTermination("l2vpnTerminationResource", new()
{
L2vpnId = 0.0,
AssignedObjectId = 0.0,
AssignedObjectType = "string",
CustomFields =
{
{ "string", "string" },
},
DeviceInterfaceId = 0.0,
Tags = new[]
{
"string",
},
VirtualMachineInterfaceId = 0.0,
VlanId = 0.0,
});
example, err := netbox.NewL2vpnTermination(ctx, "l2vpnTerminationResource", &netbox.L2vpnTerminationArgs{
L2vpnId: pulumi.Float64(0),
AssignedObjectId: pulumi.Float64(0),
AssignedObjectType: pulumi.String("string"),
CustomFields: pulumi.StringMap{
"string": pulumi.String("string"),
},
DeviceInterfaceId: pulumi.Float64(0),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
VirtualMachineInterfaceId: pulumi.Float64(0),
VlanId: pulumi.Float64(0),
})
resource "netbox_l2vpn_termination" "l2vpnTerminationResource" {
lifecycle {
create_before_destroy = true
}
l2vpn_id = 0
assigned_object_id = 0
assigned_object_type = "string"
custom_fields = {
"string" = "string"
}
device_interface_id = 0
tags = ["string"]
virtual_machine_interface_id = 0
vlan_id = 0
}
var l2vpnTerminationResource = new L2vpnTermination("l2vpnTerminationResource", L2vpnTerminationArgs.builder()
.l2vpnId(0.0)
.assignedObjectId(0.0)
.assignedObjectType("string")
.customFields(Map.of("string", "string"))
.deviceInterfaceId(0.0)
.tags("string")
.virtualMachineInterfaceId(0.0)
.vlanId(0.0)
.build());
l2vpn_termination_resource = netbox.L2vpnTermination("l2vpnTerminationResource",
l2vpn_id=float(0),
assigned_object_id=float(0),
assigned_object_type="string",
custom_fields={
"string": "string",
},
device_interface_id=float(0),
tags=["string"],
virtual_machine_interface_id=float(0),
vlan_id=float(0))
const l2vpnTerminationResource = new netbox.L2vpnTermination("l2vpnTerminationResource", {
l2vpnId: 0,
assignedObjectId: 0,
assignedObjectType: "string",
customFields: {
string: "string",
},
deviceInterfaceId: 0,
tags: ["string"],
virtualMachineInterfaceId: 0,
vlanId: 0,
});
type: netbox:L2vpnTermination
properties:
assignedObjectId: 0
assignedObjectType: string
customFields:
string: string
deviceInterfaceId: 0
l2vpnId: 0
tags:
- string
virtualMachineInterfaceId: 0
vlanId: 0
L2vpnTermination 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 L2vpnTermination resource accepts the following input properties:
- L2vpn
Id double - Id of the L2VPN.
- Assigned
Object doubleId - Id of the terminating object (see assignedobjecttype).
- Assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- Device
Interface doubleId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- List<string>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Virtual
Machine doubleInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Vlan
Id double - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- L2vpn
Id float64 - Id of the L2VPN.
- Assigned
Object float64Id - Id of the terminating object (see assignedobjecttype).
- Assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- Device
Interface float64Id - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- []string
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- Virtual
Machine float64Interface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Vlan
Id float64 - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn_
id number - Id of the L2VPN.
- assigned_
object_ numberid - Id of the terminating object (see assignedobjecttype).
- assigned_
object_ stringtype - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device_
interface_ numberid - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- list(string)
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- virtual_
machine_ numberinterface_ id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan_
id number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id Double - Id of the L2VPN.
- assigned
Object DoubleId - Id of the terminating object (see assignedobjecttype).
- assigned
Object StringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface DoubleId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- virtual
Machine DoubleInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id Double - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id number - Id of the L2VPN.
- assigned
Object numberId - Id of the terminating object (see assignedobjecttype).
- assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface numberId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- string[]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- virtual
Machine numberInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn_
id float - Id of the L2VPN.
- assigned_
object_ floatid - Id of the terminating object (see assignedobjecttype).
- assigned_
object_ strtype - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device_
interface_ floatid - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Sequence[str]
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- virtual_
machine_ floatinterface_ id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan_
id float - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id Number - Id of the L2VPN.
- assigned
Object NumberId - Id of the terminating object (see assignedobjecttype).
- assigned
Object StringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface NumberId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- List<String>
- Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
- virtual
Machine NumberInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id Number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
Outputs
All input properties are implicitly available as output properties. Additionally, the L2vpnTermination resource produces the following output properties:
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- L2vpn
Termination doubleId - NetBox id.
- Last
Updated string - List<string>
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- L2vpn
Termination float64Id - NetBox id.
- Last
Updated string - []string
- Slugs of all tags on the object, including the provider's default_tags.
- Url string
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- l2vpn_
termination_ numberid - NetBox id.
- last_
updated string - list(string)
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- l2vpn
Termination DoubleId - NetBox id.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- l2vpn
Termination numberId - NetBox id.
- last
Updated string - string[]
- Slugs of all tags on the object, including the provider's default_tags.
- url string
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- l2vpn_
termination_ floatid - NetBox id.
- last_
updated str - Sequence[str]
- Slugs of all tags on the object, including the provider's default_tags.
- url str
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- l2vpn
Termination NumberId - NetBox id.
- last
Updated String - List<String>
- Slugs of all tags on the object, including the provider's default_tags.
- url String
Look up Existing L2vpnTermination Resource
Get an existing L2vpnTermination 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?: L2vpnTerminationState, opts?: CustomResourceOptions): L2vpnTermination@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
assigned_object_id: Optional[float] = None,
assigned_object_type: Optional[str] = None,
created: Optional[str] = None,
custom_fields: Optional[Mapping[str, str]] = None,
device_interface_id: Optional[float] = None,
l2vpn_id: Optional[float] = None,
l2vpn_termination_id: Optional[float] = None,
last_updated: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
tags_alls: Optional[Sequence[str]] = None,
url: Optional[str] = None,
virtual_machine_interface_id: Optional[float] = None,
vlan_id: Optional[float] = None) -> L2vpnTerminationfunc GetL2vpnTermination(ctx *Context, name string, id IDInput, state *L2vpnTerminationState, opts ...ResourceOption) (*L2vpnTermination, error)public static L2vpnTermination Get(string name, Input<string> id, L2vpnTerminationState? state, CustomResourceOptions? opts = null)public static L2vpnTermination get(String name, Output<String> id, L2vpnTerminationState state, CustomResourceOptions options)resources: existingL2vpnTermination: type: netbox:L2vpnTermination get: id: ${id}import {
to = netbox_l2vpn_termination.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 L2vpnTerminationState
- 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 L2vpnTerminationState
- 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 L2vpnTerminationState
- 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 L2vpnTerminationState
- 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.
- Assigned
Object doubleId - Id of the terminating object (see assignedobjecttype).
- Assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- Device
Interface doubleId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- L2vpn
Id double - Id of the L2VPN.
- L2vpn
Termination doubleId - NetBox id.
- Last
Updated string - 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.
- Url string
- Virtual
Machine doubleInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Vlan
Id double - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Assigned
Object float64Id - Id of the terminating object (see assignedobjecttype).
- Assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- Device
Interface float64Id - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- L2vpn
Id float64 - Id of the L2VPN.
- L2vpn
Termination float64Id - NetBox id.
- Last
Updated string - []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.
- Url string
- Virtual
Machine float64Interface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- Vlan
Id float64 - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- assigned_
object_ numberid - Id of the terminating object (see assignedobjecttype).
- assigned_
object_ stringtype - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device_
interface_ numberid - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn_
id number - Id of the L2VPN.
- l2vpn_
termination_ numberid - NetBox id.
- last_
updated string - 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.
- url string
- virtual_
machine_ numberinterface_ id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan_
id number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- assigned
Object DoubleId - Id of the terminating object (see assignedobjecttype).
- assigned
Object StringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface DoubleId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id Double - Id of the L2VPN.
- l2vpn
Termination DoubleId - NetBox id.
- last
Updated String - 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.
- url String
- virtual
Machine DoubleInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id Double - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- assigned
Object numberId - Id of the terminating object (see assignedobjecttype).
- assigned
Object stringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface numberId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id number - Id of the L2VPN.
- l2vpn
Termination numberId - NetBox id.
- last
Updated string - 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.
- url string
- virtual
Machine numberInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- assigned_
object_ floatid - Id of the terminating object (see assignedobjecttype).
- assigned_
object_ strtype - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device_
interface_ floatid - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn_
id float - Id of the L2VPN.
- l2vpn_
termination_ floatid - NetBox id.
- last_
updated str - 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.
- url str
- virtual_
machine_ floatinterface_ id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan_
id float - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- assigned
Object NumberId - Id of the terminating object (see assignedobjecttype).
- assigned
Object StringType - Content type of the terminating object. Derived from deviceinterfaceid, virtualmachineinterfaceid or vlanid when one of those is set; set it together with assignedobjectid otherwise. One assignment is required. One of: dcim.interface, virtualization.vminterface, ipam.vlan.
- 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).
- device
Interface NumberId - Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- l2vpn
Id Number - Id of the L2VPN.
- l2vpn
Termination NumberId - NetBox id.
- last
Updated String - 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.
- url String
- virtual
Machine NumberInterface Id - Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
- vlan
Id Number - Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_l2vpn_termination.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/l2vpnTermination:L2vpnTermination 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