1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getL2vpnTermination
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 = netbox.getL2vpnTermination({
        id: 123,
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_l2vpn_termination(id=123)
    
    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 {
    		_, err := netbox.LookupL2vpnTermination(ctx, &netbox.LookupL2vpnTerminationArgs{
    			Id: pulumi.Float64Ref(123),
    		}, nil)
    		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 = Netbox.GetL2vpnTermination.Invoke(new()
        {
            Id = 123,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.netbox.NetboxFunctions;
    import com.pulumi.netbox.inputs.GetL2vpnTerminationArgs;
    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) {
            final var test = NetboxFunctions.getL2vpnTermination(GetL2vpnTerminationArgs.builder()
                .id(123)
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getL2vpnTermination
          arguments:
            id: 123
    
    Example coming soon!
    

    Using getL2vpnTermination

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getL2vpnTermination(args: GetL2vpnTerminationArgs, opts?: InvokeOptions): Promise<GetL2vpnTerminationResult>
    function getL2vpnTerminationOutput(args: GetL2vpnTerminationOutputArgs, opts?: InvokeOutputOptions): Output<GetL2vpnTerminationResult>
    def get_l2vpn_termination(assigned_object_id: Optional[float] = None,
                              assigned_object_type: Optional[str] = None,
                              assigned_object_type_id: Optional[float] = None,
                              created: Optional[str] = None,
                              custom_field_filters: Optional[Mapping[str, str]] = None,
                              device_id: Optional[float] = None,
                              device_interface_id: Optional[float] = None,
                              device_name: Optional[str] = None,
                              id: Optional[float] = None,
                              interface_name: Optional[str] = None,
                              l2vpn_id: Optional[float] = None,
                              l2vpn_slug: Optional[str] = None,
                              last_updated: Optional[str] = None,
                              q: Optional[str] = None,
                              region_id: Optional[float] = None,
                              region_slug: Optional[str] = None,
                              site_id: Optional[float] = None,
                              site_slug: Optional[str] = None,
                              tag_id: Optional[float] = None,
                              tag_slug: Optional[str] = None,
                              virtual_machine_id: Optional[float] = None,
                              virtual_machine_interface_id: Optional[float] = None,
                              virtual_machine_name: Optional[str] = None,
                              vlan_id: Optional[float] = None,
                              vlan_name: Optional[str] = None,
                              vlan_vid: Optional[float] = None,
                              vminterface_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetL2vpnTerminationResult
    def get_l2vpn_termination_output(assigned_object_id: pulumi.Input[Optional[float]] = None,
                              assigned_object_type: pulumi.Input[Optional[str]] = None,
                              assigned_object_type_id: pulumi.Input[Optional[float]] = None,
                              created: pulumi.Input[Optional[str]] = None,
                              custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                              device_id: pulumi.Input[Optional[float]] = None,
                              device_interface_id: pulumi.Input[Optional[float]] = None,
                              device_name: pulumi.Input[Optional[str]] = None,
                              id: pulumi.Input[Optional[float]] = None,
                              interface_name: pulumi.Input[Optional[str]] = None,
                              l2vpn_id: pulumi.Input[Optional[float]] = None,
                              l2vpn_slug: pulumi.Input[Optional[str]] = None,
                              last_updated: pulumi.Input[Optional[str]] = None,
                              q: pulumi.Input[Optional[str]] = None,
                              region_id: pulumi.Input[Optional[float]] = None,
                              region_slug: pulumi.Input[Optional[str]] = None,
                              site_id: pulumi.Input[Optional[float]] = None,
                              site_slug: pulumi.Input[Optional[str]] = None,
                              tag_id: pulumi.Input[Optional[float]] = None,
                              tag_slug: pulumi.Input[Optional[str]] = None,
                              virtual_machine_id: pulumi.Input[Optional[float]] = None,
                              virtual_machine_interface_id: pulumi.Input[Optional[float]] = None,
                              virtual_machine_name: pulumi.Input[Optional[str]] = None,
                              vlan_id: pulumi.Input[Optional[float]] = None,
                              vlan_name: pulumi.Input[Optional[str]] = None,
                              vlan_vid: pulumi.Input[Optional[float]] = None,
                              vminterface_name: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetL2vpnTerminationResult]
    func LookupL2vpnTermination(ctx *Context, args *LookupL2vpnTerminationArgs, opts ...InvokeOption) (*LookupL2vpnTerminationResult, error)
    func LookupL2vpnTerminationOutput(ctx *Context, args *LookupL2vpnTerminationOutputArgs, opts ...InvokeOption) LookupL2vpnTerminationResultOutput

    > Note: This function is named LookupL2vpnTermination in the Go SDK.

    public static class GetL2vpnTermination 
    {
        public static Task<GetL2vpnTerminationResult> InvokeAsync(GetL2vpnTerminationArgs args, InvokeOptions? opts = null)
        public static Output<GetL2vpnTerminationResult> Invoke(GetL2vpnTerminationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetL2vpnTerminationResult> Invoke(GetL2vpnTerminationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetL2vpnTerminationResult> getL2vpnTermination(GetL2vpnTerminationArgs args, InvokeOptions options)
    public static Output<GetL2vpnTerminationResult> getL2vpnTermination(GetL2vpnTerminationArgs args, InvokeOptions options)
    public static Output<GetL2vpnTerminationResult> getL2vpnTermination(GetL2vpnTerminationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getL2vpnTermination:getL2vpnTermination
      arguments:
        # arguments dictionary
    data "netbox_get_l2vpn_termination" "name" {
        # arguments
    }

    The following 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.
    AssignedObjectTypeId double
    Id of the assigned object type.
    Created string
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceId double
    Id of the device.
    DeviceInterfaceId double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    DeviceName string
    Name of the device.
    Id double
    NetBox id.
    InterfaceName string
    Name of the interface.
    L2vpnId double
    Id of the L2VPN.
    L2vpnSlug string
    Slug of the L2VPN.
    LastUpdated string
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RegionId double
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualMachineId double
    Id of the virtual machine.
    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.
    VirtualMachineName string
    Name of the virtual machine.
    VlanId double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanName string
    Name of the VLAN.
    VlanVid double
    Id of the VLAN number (1-4094).
    VminterfaceName string
    Name of the VM interface.
    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.
    AssignedObjectTypeId float64
    Id of the assigned object type.
    Created string
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceId float64
    Id of the device.
    DeviceInterfaceId float64
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    DeviceName string
    Name of the device.
    Id float64
    NetBox id.
    InterfaceName string
    Name of the interface.
    L2vpnId float64
    Id of the L2VPN.
    L2vpnSlug string
    Slug of the L2VPN.
    LastUpdated string
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RegionId float64
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualMachineId float64
    Id of the virtual machine.
    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.
    VirtualMachineName string
    Name of the virtual machine.
    VlanId float64
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    VlanName string
    Name of the VLAN.
    VlanVid float64
    Id of the VLAN number (1-4094).
    VminterfaceName string
    Name of the VM interface.
    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.
    assigned_object_type_id number
    Id of the assigned object type.
    created string
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_id number
    Id of the device.
    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.
    device_name string
    Name of the device.
    id number
    NetBox id.
    interface_name string
    Name of the interface.
    l2vpn_id number
    Id of the L2VPN.
    l2vpn_slug string
    Slug of the L2VPN.
    last_updated string
    q string
    Search term, matched against the fields NetBox searches for this object type.
    region_id number
    Id of the region.
    region_slug string
    Slug of the region.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    virtual_machine_id number
    Id of the virtual machine.
    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.
    virtual_machine_name string
    Name of the virtual machine.
    vlan_id number
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlan_name string
    Name of the VLAN.
    vlan_vid number
    Id of the VLAN number (1-4094).
    vminterface_name string
    Name of the VM interface.
    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.
    assignedObjectTypeId Double
    Id of the assigned object type.
    created String
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId Double
    Id of the device.
    deviceInterfaceId Double
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    deviceName String
    Name of the device.
    id Double
    NetBox id.
    interfaceName String
    Name of the interface.
    l2vpnId Double
    Id of the L2VPN.
    l2vpnSlug String
    Slug of the L2VPN.
    lastUpdated String
    q String
    Search term, matched against the fields NetBox searches for this object type.
    regionId Double
    Id of the region.
    regionSlug String
    Slug of the region.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualMachineId Double
    Id of the virtual machine.
    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.
    virtualMachineName String
    Name of the virtual machine.
    vlanId Double
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanName String
    Name of the VLAN.
    vlanVid Double
    Id of the VLAN number (1-4094).
    vminterfaceName String
    Name of the VM interface.
    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.
    assignedObjectTypeId number
    Id of the assigned object type.
    created string
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId number
    Id of the device.
    deviceInterfaceId number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    deviceName string
    Name of the device.
    id number
    NetBox id.
    interfaceName string
    Name of the interface.
    l2vpnId number
    Id of the L2VPN.
    l2vpnSlug string
    Slug of the L2VPN.
    lastUpdated string
    q string
    Search term, matched against the fields NetBox searches for this object type.
    regionId number
    Id of the region.
    regionSlug string
    Slug of the region.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    virtualMachineId number
    Id of the virtual machine.
    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.
    virtualMachineName string
    Name of the virtual machine.
    vlanId number
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanName string
    Name of the VLAN.
    vlanVid number
    Id of the VLAN number (1-4094).
    vminterfaceName string
    Name of the VM interface.
    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.
    assigned_object_type_id float
    Id of the assigned object type.
    created str
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_id float
    Id of the device.
    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.
    device_name str
    Name of the device.
    id float
    NetBox id.
    interface_name str
    Name of the interface.
    l2vpn_id float
    Id of the L2VPN.
    l2vpn_slug str
    Slug of the L2VPN.
    last_updated str
    q str
    Search term, matched against the fields NetBox searches for this object type.
    region_id float
    Id of the region.
    region_slug str
    Slug of the region.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    virtual_machine_id float
    Id of the virtual machine.
    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.
    virtual_machine_name str
    Name of the virtual machine.
    vlan_id float
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlan_name str
    Name of the VLAN.
    vlan_vid float
    Id of the VLAN number (1-4094).
    vminterface_name str
    Name of the VM interface.
    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.
    assignedObjectTypeId Number
    Id of the assigned object type.
    created String
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId Number
    Id of the device.
    deviceInterfaceId Number
    Id of the terminating device interface (assignedobjecttype dcim.interface). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    deviceName String
    Name of the device.
    id Number
    NetBox id.
    interfaceName String
    Name of the interface.
    l2vpnId Number
    Id of the L2VPN.
    l2vpnSlug String
    Slug of the L2VPN.
    lastUpdated String
    q String
    Search term, matched against the fields NetBox searches for this object type.
    regionId Number
    Id of the region.
    regionSlug String
    Slug of the region.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualMachineId Number
    Id of the virtual machine.
    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.
    virtualMachineName String
    Name of the virtual machine.
    vlanId Number
    Id of the terminating VLAN (assignedobjecttype ipam.vlan). Conflicts with the other aliases and with setting the assigned*object** pair directly.
    vlanName String
    Name of the VLAN.
    vlanVid Number
    Id of the VLAN number (1-4094).
    vminterfaceName String
    Name of the VM interface.

    getL2vpnTermination Result

    The following output properties are available:

    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.
    Id double
    NetBox id.
    L2vpnId double
    Id of the L2VPN.
    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.
    AssignedObjectTypeId double
    Id of the assigned object type.
    CustomFieldFilters Dictionary<string, string>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceId double
    Id of the device.
    DeviceName string
    Name of the device.
    InterfaceName string
    Name of the interface.
    L2vpnSlug string
    Slug of the L2VPN.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RegionId double
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteId double
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualMachineId double
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    VlanName string
    Name of the VLAN.
    VlanVid double
    Id of the VLAN number (1-4094).
    VminterfaceName string
    Name of the VM interface.
    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.
    Id float64
    NetBox id.
    L2vpnId float64
    Id of the L2VPN.
    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.
    AssignedObjectTypeId float64
    Id of the assigned object type.
    CustomFieldFilters map[string]string
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    DeviceId float64
    Id of the device.
    DeviceName string
    Name of the device.
    InterfaceName string
    Name of the interface.
    L2vpnSlug string
    Slug of the L2VPN.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    RegionId float64
    Id of the region.
    RegionSlug string
    Slug of the region.
    SiteId float64
    Id of the site.
    SiteSlug string
    Slug of the site.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    VirtualMachineId float64
    Id of the virtual machine.
    VirtualMachineName string
    Name of the virtual machine.
    VlanName string
    Name of the VLAN.
    VlanVid float64
    Id of the VLAN number (1-4094).
    VminterfaceName string
    Name of the VM interface.
    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.
    id number
    NetBox id.
    l2vpn_id number
    Id of the L2VPN.
    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.
    assigned_object_type_id number
    Id of the assigned object type.
    custom_field_filters map(string)
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_id number
    Id of the device.
    device_name string
    Name of the device.
    interface_name string
    Name of the interface.
    l2vpn_slug string
    Slug of the L2VPN.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    region_id number
    Id of the region.
    region_slug string
    Slug of the region.
    site_id number
    Id of the site.
    site_slug string
    Slug of the site.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    virtual_machine_id number
    Id of the virtual machine.
    virtual_machine_name string
    Name of the virtual machine.
    vlan_name string
    Name of the VLAN.
    vlan_vid number
    Id of the VLAN number (1-4094).
    vminterface_name string
    Name of the VM interface.
    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.
    id Double
    NetBox id.
    l2vpnId Double
    Id of the L2VPN.
    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.
    assignedObjectTypeId Double
    Id of the assigned object type.
    customFieldFilters Map<String,String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId Double
    Id of the device.
    deviceName String
    Name of the device.
    interfaceName String
    Name of the interface.
    l2vpnSlug String
    Slug of the L2VPN.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    regionId Double
    Id of the region.
    regionSlug String
    Slug of the region.
    siteId Double
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualMachineId Double
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.
    vlanName String
    Name of the VLAN.
    vlanVid Double
    Id of the VLAN number (1-4094).
    vminterfaceName String
    Name of the VM interface.
    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.
    id number
    NetBox id.
    l2vpnId number
    Id of the L2VPN.
    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.
    assignedObjectTypeId number
    Id of the assigned object type.
    customFieldFilters {[key: string]: string}
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId number
    Id of the device.
    deviceName string
    Name of the device.
    interfaceName string
    Name of the interface.
    l2vpnSlug string
    Slug of the L2VPN.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    regionId number
    Id of the region.
    regionSlug string
    Slug of the region.
    siteId number
    Id of the site.
    siteSlug string
    Slug of the site.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    virtualMachineId number
    Id of the virtual machine.
    virtualMachineName string
    Name of the virtual machine.
    vlanName string
    Name of the VLAN.
    vlanVid number
    Id of the VLAN number (1-4094).
    vminterfaceName string
    Name of the VM interface.
    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.
    id float
    NetBox id.
    l2vpn_id float
    Id of the L2VPN.
    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.
    assigned_object_type_id float
    Id of the assigned object type.
    custom_field_filters Mapping[str, str]
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    device_id float
    Id of the device.
    device_name str
    Name of the device.
    interface_name str
    Name of the interface.
    l2vpn_slug str
    Slug of the L2VPN.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    region_id float
    Id of the region.
    region_slug str
    Slug of the region.
    site_id float
    Id of the site.
    site_slug str
    Slug of the site.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    virtual_machine_id float
    Id of the virtual machine.
    virtual_machine_name str
    Name of the virtual machine.
    vlan_name str
    Name of the VLAN.
    vlan_vid float
    Id of the VLAN number (1-4094).
    vminterface_name str
    Name of the VM interface.
    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.
    id Number
    NetBox id.
    l2vpnId Number
    Id of the L2VPN.
    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.
    assignedObjectTypeId Number
    Id of the assigned object type.
    customFieldFilters Map<String>
    Custom field values to match, by field name, e.g. { tier = "gold" }: each entry filters as cf_\n\n with the field's own filter logic, loose (case-insensitive substring) or exact.
    deviceId Number
    Id of the device.
    deviceName String
    Name of the device.
    interfaceName String
    Name of the interface.
    l2vpnSlug String
    Slug of the L2VPN.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    regionId Number
    Id of the region.
    regionSlug String
    Slug of the region.
    siteId Number
    Id of the site.
    siteSlug String
    Slug of the site.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    virtualMachineId Number
    Id of the virtual machine.
    virtualMachineName String
    Name of the virtual machine.
    vlanName String
    Name of the VLAN.
    vlanVid Number
    Id of the VLAN number (1-4094).
    vminterfaceName String
    Name of the VM interface.

    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