1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. L2vpnTermination
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
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:

    L2vpnId double
    Id of the L2VPN.
    AssignedObjectId double
    Id of the terminating object (see assignedobjecttype).
    AssignedObjectType string
    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.
    CustomFields 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).
    DeviceInterfaceId double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    VirtualMachineInterfaceId double
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanId double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    L2vpnId float64
    Id of the L2VPN.
    AssignedObjectId float64
    Id of the terminating object (see assignedobjecttype).
    AssignedObjectType string
    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.
    CustomFields 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).
    DeviceInterfaceId float64
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    VirtualMachineInterfaceId float64
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanId 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_id number
    Id of the terminating object (see assignedobjecttype).
    assigned_object_type string
    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_id number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    virtual_machine_interface_id number
    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.
    l2vpnId Double
    Id of the L2VPN.
    assignedObjectId Double
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType String
    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.
    customFields 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).
    deviceInterfaceId Double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    virtualMachineInterfaceId Double
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId Double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    l2vpnId number
    Id of the L2VPN.
    assignedObjectId number
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType string
    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.
    customFields {[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).
    deviceInterfaceId number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    virtualMachineInterfaceId number
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId 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_id float
    Id of the terminating object (see assignedobjecttype).
    assigned_object_type str
    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_id float
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    virtual_machine_interface_id float
    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.
    l2vpnId Number
    Id of the L2VPN.
    assignedObjectId Number
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType String
    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.
    customFields 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).
    deviceInterfaceId Number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    virtualMachineInterfaceId Number
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId 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.
    L2vpnTerminationId double
    NetBox id.
    LastUpdated string
    TagsAlls 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.
    L2vpnTerminationId float64
    NetBox id.
    LastUpdated string
    TagsAlls []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_id number
    NetBox id.
    last_updated string
    tags_alls 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.
    l2vpnTerminationId Double
    NetBox id.
    lastUpdated String
    tagsAlls 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.
    l2vpnTerminationId number
    NetBox id.
    lastUpdated string
    tagsAlls 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_id float
    NetBox id.
    last_updated str
    tags_alls 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.
    l2vpnTerminationId Number
    NetBox id.
    lastUpdated String
    tagsAlls 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) -> L2vpnTermination
    func 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.
    The following state arguments are supported:
    AssignedObjectId double
    Id of the terminating object (see assignedobjecttype).
    AssignedObjectType string
    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
    CustomFields 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).
    DeviceInterfaceId double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    L2vpnId double
    Id of the L2VPN.
    L2vpnTerminationId double
    NetBox id.
    LastUpdated string
    Tags List<string>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls List<string>
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualMachineInterfaceId double
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanId double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    AssignedObjectId float64
    Id of the terminating object (see assignedobjecttype).
    AssignedObjectType string
    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
    CustomFields 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).
    DeviceInterfaceId float64
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    L2vpnId float64
    Id of the L2VPN.
    L2vpnTerminationId float64
    NetBox id.
    LastUpdated string
    Tags []string
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    TagsAlls []string
    Slugs of all tags on the object, including the provider's default_tags.
    Url string
    VirtualMachineInterfaceId float64
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanId float64
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    assigned_object_id number
    Id of the terminating object (see assignedobjecttype).
    assigned_object_type string
    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_id number
    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_id number
    NetBox id.
    last_updated string
    tags list(string)
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls list(string)
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtual_machine_interface_id number
    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.
    assignedObjectId Double
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType String
    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
    customFields 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).
    deviceInterfaceId Double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    l2vpnId Double
    Id of the L2VPN.
    l2vpnTerminationId Double
    NetBox id.
    lastUpdated String
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualMachineInterfaceId Double
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId Double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    assignedObjectId number
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType string
    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
    customFields {[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).
    deviceInterfaceId number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    l2vpnId number
    Id of the L2VPN.
    l2vpnTerminationId number
    NetBox id.
    lastUpdated string
    tags string[]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls string[]
    Slugs of all tags on the object, including the provider's default_tags.
    url string
    virtualMachineInterfaceId number
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId number
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    assigned_object_id float
    Id of the terminating object (see assignedobjecttype).
    assigned_object_type str
    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_id float
    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_id float
    NetBox id.
    last_updated str
    tags Sequence[str]
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tags_alls Sequence[str]
    Slugs of all tags on the object, including the provider's default_tags.
    url str
    virtual_machine_interface_id float
    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.
    assignedObjectId Number
    Id of the terminating object (see assignedobjecttype).
    assignedObjectType String
    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
    customFields 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).
    deviceInterfaceId Number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    l2vpnId Number
    Id of the L2VPN.
    l2vpnTerminationId Number
    NetBox id.
    lastUpdated String
    tags List<String>
    Slugs of the tags assigned to the object (the provider's defaulttags are added on top, see tagsall).
    tagsAlls List<String>
    Slugs of all tags on the object, including the provider's default_tags.
    url String
    virtualMachineInterfaceId Number
    Id of the terminating virtual machine interface (assignedobjecttype virtualization.vminterface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanId 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 netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial