1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getVirtualDeviceContext
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

    A virtual device context: a logical partition of a device with its own interfaces and addresses (dcim.virtualdevicecontext).

    From the official documentation:

    A virtual device context (VDC) represents a logical partition within a physical device, to which interfaces from the parent device can be allocated. Each VDC effectively provides an isolated control plane, but relies on shared resources of the parent device. A VDC is somewhat similar to a virtual machine in that it effects isolation between various components, but stops short of delivering a fully virtualized environment.

    Each VDC must be assigned to a device upon creation, after which interfaces belonging to that device can be assigned to one or more of its VDCs. A VDC can have any number of interfaces assigned to it, and an interface can belong to any number of VDCs.

    A VDC by Any Other Name: Network vendors use differing names for this concept. Cisco uses the term VDC, whereas Juniper refers to it as a Virtual Routing Instance, and Fortinet uses Virtual Domain, for instance. While there may be some nuance among the vendors’ unique implementations, the general concept remains the same for each.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getVirtualDeviceContext({
        name: "test-virtual_device_context",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_virtual_device_context(name="test-virtual_device_context")
    
    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.LookupVirtualDeviceContext(ctx, &netbox.LookupVirtualDeviceContextArgs{
    			Name: pulumi.StringRef("test-virtual_device_context"),
    		}, 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.GetVirtualDeviceContext.Invoke(new()
        {
            Name = "test-virtual_device_context",
        });
    
    });
    
    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.GetVirtualDeviceContextArgs;
    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.getVirtualDeviceContext(GetVirtualDeviceContextArgs.builder()
                .name("test-virtual_device_context")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getVirtualDeviceContext
          arguments:
            name: test-virtual_device_context
    
    Example coming soon!
    

    Using getVirtualDeviceContext

    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 getVirtualDeviceContext(args: GetVirtualDeviceContextArgs, opts?: InvokeOptions): Promise<GetVirtualDeviceContextResult>
    function getVirtualDeviceContextOutput(args: GetVirtualDeviceContextOutputArgs, opts?: InvokeOutputOptions): Output<GetVirtualDeviceContextResult>
    def get_virtual_device_context(created: Optional[str] = None,
                                   custom_field_filters: Optional[Mapping[str, str]] = None,
                                   description: Optional[str] = None,
                                   device: Optional[float] = None,
                                   device_id: Optional[float] = None,
                                   has_primary_ip: Optional[bool] = None,
                                   id: Optional[float] = None,
                                   identifier: Optional[float] = None,
                                   interface_id: Optional[float] = None,
                                   last_updated: Optional[str] = None,
                                   name: Optional[str] = None,
                                   owner_group_id: Optional[float] = None,
                                   owner_group_name: Optional[str] = None,
                                   owner_id: Optional[float] = None,
                                   owner_name: Optional[str] = None,
                                   primary_ip4: Optional[str] = None,
                                   primary_ip4_id: Optional[float] = None,
                                   primary_ip6: Optional[str] = None,
                                   primary_ip6_id: Optional[float] = None,
                                   q: Optional[str] = None,
                                   status: Optional[str] = None,
                                   tag_id: Optional[float] = None,
                                   tag_slug: Optional[str] = None,
                                   tenant_group_id: Optional[str] = None,
                                   tenant_group_slug: Optional[str] = None,
                                   tenant_id: Optional[float] = None,
                                   tenant_slug: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetVirtualDeviceContextResult
    def get_virtual_device_context_output(created: pulumi.Input[Optional[str]] = None,
                                   custom_field_filters: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                                   description: pulumi.Input[Optional[str]] = None,
                                   device: pulumi.Input[Optional[float]] = None,
                                   device_id: pulumi.Input[Optional[float]] = None,
                                   has_primary_ip: pulumi.Input[Optional[bool]] = None,
                                   id: pulumi.Input[Optional[float]] = None,
                                   identifier: pulumi.Input[Optional[float]] = None,
                                   interface_id: pulumi.Input[Optional[float]] = None,
                                   last_updated: pulumi.Input[Optional[str]] = None,
                                   name: pulumi.Input[Optional[str]] = None,
                                   owner_group_id: pulumi.Input[Optional[float]] = None,
                                   owner_group_name: pulumi.Input[Optional[str]] = None,
                                   owner_id: pulumi.Input[Optional[float]] = None,
                                   owner_name: pulumi.Input[Optional[str]] = None,
                                   primary_ip4: pulumi.Input[Optional[str]] = None,
                                   primary_ip4_id: pulumi.Input[Optional[float]] = None,
                                   primary_ip6: pulumi.Input[Optional[str]] = None,
                                   primary_ip6_id: pulumi.Input[Optional[float]] = None,
                                   q: pulumi.Input[Optional[str]] = None,
                                   status: pulumi.Input[Optional[str]] = None,
                                   tag_id: pulumi.Input[Optional[float]] = None,
                                   tag_slug: pulumi.Input[Optional[str]] = None,
                                   tenant_group_id: pulumi.Input[Optional[str]] = None,
                                   tenant_group_slug: pulumi.Input[Optional[str]] = None,
                                   tenant_id: pulumi.Input[Optional[float]] = None,
                                   tenant_slug: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetVirtualDeviceContextResult]
    func LookupVirtualDeviceContext(ctx *Context, args *LookupVirtualDeviceContextArgs, opts ...InvokeOption) (*LookupVirtualDeviceContextResult, error)
    func LookupVirtualDeviceContextOutput(ctx *Context, args *LookupVirtualDeviceContextOutputArgs, opts ...InvokeOption) LookupVirtualDeviceContextResultOutput

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

    public static class GetVirtualDeviceContext 
    {
        public static Task<GetVirtualDeviceContextResult> InvokeAsync(GetVirtualDeviceContextArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualDeviceContextResult> Invoke(GetVirtualDeviceContextInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualDeviceContextResult> Invoke(GetVirtualDeviceContextInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetVirtualDeviceContextResult> getVirtualDeviceContext(GetVirtualDeviceContextArgs args, InvokeOptions options)
    public static Output<GetVirtualDeviceContextResult> getVirtualDeviceContext(GetVirtualDeviceContextArgs args, InvokeOptions options)
    public static Output<GetVirtualDeviceContextResult> getVirtualDeviceContext(GetVirtualDeviceContextArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getVirtualDeviceContext:getVirtualDeviceContext
      arguments:
        # arguments dictionary
    data "netbox_get_virtual_device_context" "name" {
        # arguments
    }

    The following arguments are supported:

    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.
    Description string
    Device double
    Id of the device model.
    DeviceId double
    Id of the device.
    HasPrimaryIp bool
    Has a primary IP.
    Id double
    NetBox id.
    Identifier double
    Numeric identifier, unique within the device. Must be a whole number.
    InterfaceId double
    Id of the interface.
    LastUpdated string
    Name string
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId double
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    PrimaryIp4 string
    Primary IPv4 (address).
    PrimaryIp4Id double
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    PrimaryIp6 string
    Primary IPv6 (address).
    PrimaryIp6Id double
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    Status string
    Operational status. One of: active, planned, offline.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantGroupId string
    Id of the tenant group.
    TenantGroupSlug string
    Slug of the tenant group.
    TenantId double
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    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.
    Description string
    Device float64
    Id of the device model.
    DeviceId float64
    Id of the device.
    HasPrimaryIp bool
    Has a primary IP.
    Id float64
    NetBox id.
    Identifier float64
    Numeric identifier, unique within the device. Must be a whole number.
    InterfaceId float64
    Id of the interface.
    LastUpdated string
    Name string
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerId float64
    Id of the owner the object is assigned to.
    OwnerName string
    Name of the owner.
    PrimaryIp4 string
    Primary IPv4 (address).
    PrimaryIp4Id float64
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    PrimaryIp6 string
    Primary IPv6 (address).
    PrimaryIp6Id float64
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    Status string
    Operational status. One of: active, planned, offline.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantGroupId string
    Id of the tenant group.
    TenantGroupSlug string
    Slug of the tenant group.
    TenantId float64
    Id of the tenant.
    TenantSlug string
    Slug of the tenant.
    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.
    description string
    device number
    Id of the device model.
    device_id number
    Id of the device.
    has_primary_ip bool
    Has a primary IP.
    id number
    NetBox id.
    identifier number
    Numeric identifier, unique within the device. Must be a whole number.
    interface_id number
    Id of the interface.
    last_updated string
    name string
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_id number
    Id of the owner the object is assigned to.
    owner_name string
    Name of the owner.
    primary_ip4 string
    Primary IPv4 (address).
    primary_ip4_id number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primary_ip6 string
    Primary IPv6 (address).
    primary_ip6_id number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    status string
    Operational status. One of: active, planned, offline.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_group_id string
    Id of the tenant group.
    tenant_group_slug string
    Slug of the tenant group.
    tenant_id number
    Id of the tenant.
    tenant_slug string
    Slug of the tenant.
    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.
    description String
    device Double
    Id of the device model.
    deviceId Double
    Id of the device.
    hasPrimaryIp Boolean
    Has a primary IP.
    id Double
    NetBox id.
    identifier Double
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceId Double
    Id of the interface.
    lastUpdated String
    name String
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Double
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    primaryIp4 String
    Primary IPv4 (address).
    primaryIp4Id Double
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6 String
    Primary IPv6 (address).
    primaryIp6Id Double
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    status String
    Operational status. One of: active, planned, offline.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantGroupId String
    Id of the tenant group.
    tenantGroupSlug String
    Slug of the tenant group.
    tenantId Double
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.
    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.
    description string
    device number
    Id of the device model.
    deviceId number
    Id of the device.
    hasPrimaryIp boolean
    Has a primary IP.
    id number
    NetBox id.
    identifier number
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceId number
    Id of the interface.
    lastUpdated string
    name string
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerId number
    Id of the owner the object is assigned to.
    ownerName string
    Name of the owner.
    primaryIp4 string
    Primary IPv4 (address).
    primaryIp4Id number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6 string
    Primary IPv6 (address).
    primaryIp6Id number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    status string
    Operational status. One of: active, planned, offline.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantGroupId string
    Id of the tenant group.
    tenantGroupSlug string
    Slug of the tenant group.
    tenantId number
    Id of the tenant.
    tenantSlug string
    Slug of the tenant.
    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.
    description str
    device float
    Id of the device model.
    device_id float
    Id of the device.
    has_primary_ip bool
    Has a primary IP.
    id float
    NetBox id.
    identifier float
    Numeric identifier, unique within the device. Must be a whole number.
    interface_id float
    Id of the interface.
    last_updated str
    name str
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_id float
    Id of the owner the object is assigned to.
    owner_name str
    Name of the owner.
    primary_ip4 str
    Primary IPv4 (address).
    primary_ip4_id float
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primary_ip6 str
    Primary IPv6 (address).
    primary_ip6_id float
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    status str
    Operational status. One of: active, planned, offline.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_group_id str
    Id of the tenant group.
    tenant_group_slug str
    Slug of the tenant group.
    tenant_id float
    Id of the tenant.
    tenant_slug str
    Slug of the tenant.
    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.
    description String
    device Number
    Id of the device model.
    deviceId Number
    Id of the device.
    hasPrimaryIp Boolean
    Has a primary IP.
    id Number
    NetBox id.
    identifier Number
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceId Number
    Id of the interface.
    lastUpdated String
    name String
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerId Number
    Id of the owner the object is assigned to.
    ownerName String
    Name of the owner.
    primaryIp4 String
    Primary IPv4 (address).
    primaryIp4Id Number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6 String
    Primary IPv6 (address).
    primaryIp6Id Number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    status String
    Operational status. One of: active, planned, offline.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantGroupId String
    Id of the tenant group.
    tenantGroupSlug String
    Slug of the tenant group.
    tenantId Number
    Id of the tenant.
    tenantSlug String
    Slug of the tenant.

    getVirtualDeviceContext Result

    The following output properties are available:

    Comments string
    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).
    Description string
    DeviceId double
    Id of the device.
    Id double
    NetBox id.
    Identifier double
    Numeric identifier, unique within the device. Must be a whole number.
    InterfaceCount double
    Number of interfaces assigned to the context.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    PrimaryIp4Id double
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    PrimaryIp6Id double
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    Status string
    Operational status. One of: active, planned, offline.
    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.
    TenantId double
    Id of the tenant.
    Url 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.
    Device double
    Id of the device model.
    HasPrimaryIp bool
    Has a primary IP.
    InterfaceId double
    Id of the interface.
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    PrimaryIp4 string
    Primary IPv4 (address).
    PrimaryIp6 string
    Primary IPv6 (address).
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId double
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantGroupId string
    Id of the tenant group.
    TenantGroupSlug string
    Slug of the tenant group.
    TenantSlug string
    Slug of the tenant.
    Comments string
    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).
    Description string
    DeviceId float64
    Id of the device.
    Id float64
    NetBox id.
    Identifier float64
    Numeric identifier, unique within the device. Must be a whole number.
    InterfaceCount float64
    Number of interfaces assigned to the context.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    PrimaryIp4Id float64
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    PrimaryIp6Id float64
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    Status string
    Operational status. One of: active, planned, offline.
    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.
    TenantId float64
    Id of the tenant.
    Url 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.
    Device float64
    Id of the device model.
    HasPrimaryIp bool
    Has a primary IP.
    InterfaceId float64
    Id of the interface.
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    PrimaryIp4 string
    Primary IPv4 (address).
    PrimaryIp6 string
    Primary IPv6 (address).
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    TagId float64
    Id of a tag the object carries.
    TagSlug string
    Slug of a tag the object carries.
    TenantGroupId string
    Id of the tenant group.
    TenantGroupSlug string
    Slug of the tenant group.
    TenantSlug string
    Slug of the tenant.
    comments string
    created string
    custom_fields map(string)
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description string
    device_id number
    Id of the device.
    id number
    NetBox id.
    identifier number
    Numeric identifier, unique within the device. Must be a whole number.
    interface_count number
    Number of interfaces assigned to the context.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    primary_ip4_id number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primary_ip6_id number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    status string
    Operational status. One of: active, planned, offline.
    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.
    tenant_id number
    Id of the tenant.
    url 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 number
    Id of the device model.
    has_primary_ip bool
    Has a primary IP.
    interface_id number
    Id of the interface.
    owner_group_id number
    Id of the owner group.
    owner_group_name string
    Name of the owner group.
    owner_name string
    Name of the owner.
    primary_ip4 string
    Primary IPv4 (address).
    primary_ip6 string
    Primary IPv6 (address).
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tag_id number
    Id of a tag the object carries.
    tag_slug string
    Slug of a tag the object carries.
    tenant_group_id string
    Id of the tenant group.
    tenant_group_slug string
    Slug of the tenant group.
    tenant_slug string
    Slug of the tenant.
    comments String
    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).
    description String
    deviceId Double
    Id of the device.
    id Double
    NetBox id.
    identifier Double
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceCount Double
    Number of interfaces assigned to the context.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    primaryIp4Id Double
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6Id Double
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    status String
    Operational status. One of: active, planned, offline.
    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.
    tenantId Double
    Id of the tenant.
    url 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.
    device Double
    Id of the device model.
    hasPrimaryIp Boolean
    Has a primary IP.
    interfaceId Double
    Id of the interface.
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    primaryIp4 String
    Primary IPv4 (address).
    primaryIp6 String
    Primary IPv6 (address).
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Double
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantGroupId String
    Id of the tenant group.
    tenantGroupSlug String
    Slug of the tenant group.
    tenantSlug String
    Slug of the tenant.
    comments string
    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).
    description string
    deviceId number
    Id of the device.
    id number
    NetBox id.
    identifier number
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceCount number
    Number of interfaces assigned to the context.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    primaryIp4Id number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6Id number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    status string
    Operational status. One of: active, planned, offline.
    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.
    tenantId number
    Id of the tenant.
    url 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.
    device number
    Id of the device model.
    hasPrimaryIp boolean
    Has a primary IP.
    interfaceId number
    Id of the interface.
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerName string
    Name of the owner.
    primaryIp4 string
    Primary IPv4 (address).
    primaryIp6 string
    Primary IPv6 (address).
    q string
    Search term, matched against the fields NetBox searches for this object type.
    tagId number
    Id of a tag the object carries.
    tagSlug string
    Slug of a tag the object carries.
    tenantGroupId string
    Id of the tenant group.
    tenantGroupSlug string
    Slug of the tenant group.
    tenantSlug string
    Slug of the tenant.
    comments str
    created str
    custom_fields Mapping[str, str]
    Custom field values by field name. Every value is a string; NetBox coerces numbers and booleans. An object field holds the related object's id, e.g. "12", a multiobject field a JSON list of ids in any order, e.g. jsonencode([12, 13]). A key removed from the map is cleared in NetBox (set {} to clear all).
    description str
    device_id float
    Id of the device.
    id float
    NetBox id.
    identifier float
    Numeric identifier, unique within the device. Must be a whole number.
    interface_count float
    Number of interfaces assigned to the context.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    primary_ip4_id float
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primary_ip6_id float
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    status str
    Operational status. One of: active, planned, offline.
    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.
    tenant_id float
    Id of the tenant.
    url 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 float
    Id of the device model.
    has_primary_ip bool
    Has a primary IP.
    interface_id float
    Id of the interface.
    owner_group_id float
    Id of the owner group.
    owner_group_name str
    Name of the owner group.
    owner_name str
    Name of the owner.
    primary_ip4 str
    Primary IPv4 (address).
    primary_ip6 str
    Primary IPv6 (address).
    q str
    Search term, matched against the fields NetBox searches for this object type.
    tag_id float
    Id of a tag the object carries.
    tag_slug str
    Slug of a tag the object carries.
    tenant_group_id str
    Id of the tenant group.
    tenant_group_slug str
    Slug of the tenant group.
    tenant_slug str
    Slug of the tenant.
    comments String
    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).
    description String
    deviceId Number
    Id of the device.
    id Number
    NetBox id.
    identifier Number
    Numeric identifier, unique within the device. Must be a whole number.
    interfaceCount Number
    Number of interfaces assigned to the context.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    primaryIp4Id Number
    Id of the primary IPv4 address; it must be assigned to an interface of the device.
    primaryIp6Id Number
    Id of the primary IPv6 address; it must be assigned to an interface of the device.
    status String
    Operational status. One of: active, planned, offline.
    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.
    tenantId Number
    Id of the tenant.
    url 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.
    device Number
    Id of the device model.
    hasPrimaryIp Boolean
    Has a primary IP.
    interfaceId Number
    Id of the interface.
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    primaryIp4 String
    Primary IPv4 (address).
    primaryIp6 String
    Primary IPv6 (address).
    q String
    Search term, matched against the fields NetBox searches for this object type.
    tagId Number
    Id of a tag the object carries.
    tagSlug String
    Slug of a tag the object carries.
    tenantGroupId String
    Id of the tenant group.
    tenantGroupSlug String
    Slug of the tenant group.
    tenantSlug String
    Slug of the tenant.

    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