1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getService
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 service running on a device or virtual machine (ipam.service).

    From the official documentation:

    An application service represents a layer seven application available on a device or virtual machine. For example, a service might be created in NetBox to represent an HTTP server running on TCP/8000. Each service may optionally be further bound to one or more specific interfaces assigned to the selected device or virtual machine.

    To aid in the efficient creation of application services, users may opt to first create an application service template from which service definitions can be quickly replicated.

    Changed in NetBox v4.4: Previously, application services were referred to simply as “services”. The name has been changed in the UI to better reflect their intended use. There is no change to the name of the model or in any programmatic NetBox APIs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getService({
        name: "test-service",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_service(name="test-service")
    
    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.LookupService(ctx, &netbox.LookupServiceArgs{
    			Name: pulumi.StringRef("test-service"),
    		}, 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.GetService.Invoke(new()
        {
            Name = "test-service",
        });
    
    });
    
    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.GetServiceArgs;
    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.getService(GetServiceArgs.builder()
                .name("test-service")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getService
          arguments:
            name: test-service
    
    Example coming soon!
    

    Using getService

    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 getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
    function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOutputOptions): Output<GetServiceResult>
    def get_service(contact: Optional[float] = None,
                    contact_group_slug: Optional[str] = None,
                    contact_role: Optional[float] = None,
                    created: Optional[str] = None,
                    custom_field_filters: Optional[Mapping[str, str]] = None,
                    description: Optional[str] = None,
                    device_id: Optional[float] = None,
                    device_name: Optional[str] = None,
                    fhrpgroup: Optional[str] = None,
                    fhrpgroup_id: Optional[float] = None,
                    id: Optional[float] = None,
                    ip_address: Optional[str] = None,
                    ip_address_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,
                    parent_object_id: Optional[float] = None,
                    parent_object_type: Optional[str] = None,
                    port: Optional[float] = None,
                    protocol: Optional[str] = None,
                    q: Optional[str] = None,
                    tag_id: Optional[float] = None,
                    tag_slug: Optional[str] = None,
                    virtual_machine_id: Optional[float] = None,
                    virtual_machine_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetServiceResult
    def get_service_output(contact: pulumi.Input[Optional[float]] = None,
                    contact_group_slug: pulumi.Input[Optional[str]] = None,
                    contact_role: pulumi.Input[Optional[float]] = None,
                    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_id: pulumi.Input[Optional[float]] = None,
                    device_name: pulumi.Input[Optional[str]] = None,
                    fhrpgroup: pulumi.Input[Optional[str]] = None,
                    fhrpgroup_id: pulumi.Input[Optional[float]] = None,
                    id: pulumi.Input[Optional[float]] = None,
                    ip_address: pulumi.Input[Optional[str]] = None,
                    ip_address_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,
                    parent_object_id: pulumi.Input[Optional[float]] = None,
                    parent_object_type: pulumi.Input[Optional[str]] = None,
                    port: pulumi.Input[Optional[float]] = None,
                    protocol: pulumi.Input[Optional[str]] = None,
                    q: 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_name: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetServiceResult]
    func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
    func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput

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

    public static class GetService 
    {
        public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
    public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getService:getService
      arguments:
        # arguments dictionary
    data "netbox_get_service" "name" {
        # arguments
    }

    The following arguments are supported:

    Contact double
    Id of the contact.
    ContactGroupSlug string
    Slug of the contact group.
    ContactRole double
    Id of the contact role.
    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
    DeviceId double
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    DeviceName string
    Name of the device.
    Fhrpgroup string
    Fhrpgroup to match.
    FhrpgroupId double
    Id of the fhrpgroup.
    Id double
    NetBox id.
    IpAddress string
    IP address.
    IpAddressId double
    Id of the IP address.
    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.
    ParentObjectId double
    Id of the object named by parentobjecttype.
    ParentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    Port double
    Port to match.
    Protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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.
    VirtualMachineId double
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    VirtualMachineName string
    Name of the virtual machine.
    Contact float64
    Id of the contact.
    ContactGroupSlug string
    Slug of the contact group.
    ContactRole float64
    Id of the contact role.
    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
    DeviceId float64
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    DeviceName string
    Name of the device.
    Fhrpgroup string
    Fhrpgroup to match.
    FhrpgroupId float64
    Id of the fhrpgroup.
    Id float64
    NetBox id.
    IpAddress string
    IP address.
    IpAddressId float64
    Id of the IP address.
    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.
    ParentObjectId float64
    Id of the object named by parentobjecttype.
    ParentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    Port float64
    Port to match.
    Protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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.
    VirtualMachineId float64
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    VirtualMachineName string
    Name of the virtual machine.
    contact number
    Id of the contact.
    contact_group_slug string
    Slug of the contact group.
    contact_role number
    Id of the contact role.
    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_id number
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    device_name string
    Name of the device.
    fhrpgroup string
    Fhrpgroup to match.
    fhrpgroup_id number
    Id of the fhrpgroup.
    id number
    NetBox id.
    ip_address string
    IP address.
    ip_address_id number
    Id of the IP address.
    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.
    parent_object_id number
    Id of the object named by parentobjecttype.
    parent_object_type string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    port number
    Port to match.
    protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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.
    virtual_machine_id number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    virtual_machine_name string
    Name of the virtual machine.
    contact Double
    Id of the contact.
    contactGroupSlug String
    Slug of the contact group.
    contactRole Double
    Id of the contact role.
    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
    deviceId Double
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    deviceName String
    Name of the device.
    fhrpgroup String
    Fhrpgroup to match.
    fhrpgroupId Double
    Id of the fhrpgroup.
    id Double
    NetBox id.
    ipAddress String
    IP address.
    ipAddressId Double
    Id of the IP address.
    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.
    parentObjectId Double
    Id of the object named by parentobjecttype.
    parentObjectType String
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    port Double
    Port to match.
    protocol String
    Transport protocol. One of: tcp, udp, sctp.
    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.
    virtualMachineId Double
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    virtualMachineName String
    Name of the virtual machine.
    contact number
    Id of the contact.
    contactGroupSlug string
    Slug of the contact group.
    contactRole number
    Id of the contact role.
    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
    deviceId number
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    deviceName string
    Name of the device.
    fhrpgroup string
    Fhrpgroup to match.
    fhrpgroupId number
    Id of the fhrpgroup.
    id number
    NetBox id.
    ipAddress string
    IP address.
    ipAddressId number
    Id of the IP address.
    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.
    parentObjectId number
    Id of the object named by parentobjecttype.
    parentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    port number
    Port to match.
    protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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.
    virtualMachineId number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    virtualMachineName string
    Name of the virtual machine.
    contact float
    Id of the contact.
    contact_group_slug str
    Slug of the contact group.
    contact_role float
    Id of the contact role.
    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_id float
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    device_name str
    Name of the device.
    fhrpgroup str
    Fhrpgroup to match.
    fhrpgroup_id float
    Id of the fhrpgroup.
    id float
    NetBox id.
    ip_address str
    IP address.
    ip_address_id float
    Id of the IP address.
    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.
    parent_object_id float
    Id of the object named by parentobjecttype.
    parent_object_type str
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    port float
    Port to match.
    protocol str
    Transport protocol. One of: tcp, udp, sctp.
    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.
    virtual_machine_id float
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    virtual_machine_name str
    Name of the virtual machine.
    contact Number
    Id of the contact.
    contactGroupSlug String
    Slug of the contact group.
    contactRole Number
    Id of the contact role.
    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
    deviceId Number
    Id of the device the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    deviceName String
    Name of the device.
    fhrpgroup String
    Fhrpgroup to match.
    fhrpgroupId Number
    Id of the fhrpgroup.
    id Number
    NetBox id.
    ipAddress String
    IP address.
    ipAddressId Number
    Id of the IP address.
    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.
    parentObjectId Number
    Id of the object named by parentobjecttype.
    parentObjectType String
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    port Number
    Port to match.
    protocol String
    Transport protocol. One of: tcp, udp, sctp.
    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.
    virtualMachineId Number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    virtualMachineName String
    Name of the virtual machine.

    getService 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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    Id double
    NetBox id.
    IpAddressIds List<double>
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    LastUpdated string
    Name string
    OwnerId double
    Id of the owner the object is assigned to.
    ParentObjectId double
    Id of the object named by parentobjecttype.
    ParentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    Ports List<double>
    Port numbers the service listens on.
    Protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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
    VirtualMachineId double
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    Contact double
    Id of the contact.
    ContactGroupSlug string
    Slug of the contact group.
    ContactRole double
    Id of the contact role.
    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.
    DeviceName string
    Name of the device.
    Fhrpgroup string
    Fhrpgroup to match.
    FhrpgroupId double
    Id of the fhrpgroup.
    IpAddress string
    IP address.
    IpAddressId double
    Id of the IP address.
    OwnerGroupId double
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Port double
    Port to match.
    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.
    VirtualMachineName string
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    Id float64
    NetBox id.
    IpAddressIds []float64
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    LastUpdated string
    Name string
    OwnerId float64
    Id of the owner the object is assigned to.
    ParentObjectId float64
    Id of the object named by parentobjecttype.
    ParentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    Ports []float64
    Port numbers the service listens on.
    Protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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
    VirtualMachineId float64
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    Contact float64
    Id of the contact.
    ContactGroupSlug string
    Slug of the contact group.
    ContactRole float64
    Id of the contact role.
    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.
    DeviceName string
    Name of the device.
    Fhrpgroup string
    Fhrpgroup to match.
    FhrpgroupId float64
    Id of the fhrpgroup.
    IpAddress string
    IP address.
    IpAddressId float64
    Id of the IP address.
    OwnerGroupId float64
    Id of the owner group.
    OwnerGroupName string
    Name of the owner group.
    OwnerName string
    Name of the owner.
    Port float64
    Port to match.
    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.
    VirtualMachineName string
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    id number
    NetBox id.
    ip_address_ids list(number)
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    last_updated string
    name string
    owner_id number
    Id of the owner the object is assigned to.
    parent_object_id number
    Id of the object named by parentobjecttype.
    parent_object_type string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    ports list(number)
    Port numbers the service listens on.
    protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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_id number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    contact number
    Id of the contact.
    contact_group_slug string
    Slug of the contact group.
    contact_role number
    Id of the contact role.
    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_name string
    Name of the device.
    fhrpgroup string
    Fhrpgroup to match.
    fhrpgroup_id number
    Id of the fhrpgroup.
    ip_address string
    IP address.
    ip_address_id number
    Id of the IP address.
    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.
    port number
    Port to match.
    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.
    virtual_machine_name string
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    id Double
    NetBox id.
    ipAddressIds List<Double>
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    lastUpdated String
    name String
    ownerId Double
    Id of the owner the object is assigned to.
    parentObjectId Double
    Id of the object named by parentobjecttype.
    parentObjectType String
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    ports List<Double>
    Port numbers the service listens on.
    protocol String
    Transport protocol. One of: tcp, udp, sctp.
    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
    virtualMachineId Double
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    contact Double
    Id of the contact.
    contactGroupSlug String
    Slug of the contact group.
    contactRole Double
    Id of the contact role.
    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.
    deviceName String
    Name of the device.
    fhrpgroup String
    Fhrpgroup to match.
    fhrpgroupId Double
    Id of the fhrpgroup.
    ipAddress String
    IP address.
    ipAddressId Double
    Id of the IP address.
    ownerGroupId Double
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    port Double
    Port to match.
    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.
    virtualMachineName String
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    id number
    NetBox id.
    ipAddressIds number[]
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    lastUpdated string
    name string
    ownerId number
    Id of the owner the object is assigned to.
    parentObjectId number
    Id of the object named by parentobjecttype.
    parentObjectType string
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    ports number[]
    Port numbers the service listens on.
    protocol string
    Transport protocol. One of: tcp, udp, sctp.
    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
    virtualMachineId number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    contact number
    Id of the contact.
    contactGroupSlug string
    Slug of the contact group.
    contactRole number
    Id of the contact role.
    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.
    deviceName string
    Name of the device.
    fhrpgroup string
    Fhrpgroup to match.
    fhrpgroupId number
    Id of the fhrpgroup.
    ipAddress string
    IP address.
    ipAddressId number
    Id of the IP address.
    ownerGroupId number
    Id of the owner group.
    ownerGroupName string
    Name of the owner group.
    ownerName string
    Name of the owner.
    port number
    Port to match.
    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.
    virtualMachineName string
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    id float
    NetBox id.
    ip_address_ids Sequence[float]
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    last_updated str
    name str
    owner_id float
    Id of the owner the object is assigned to.
    parent_object_id float
    Id of the object named by parentobjecttype.
    parent_object_type str
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    ports Sequence[float]
    Port numbers the service listens on.
    protocol str
    Transport protocol. One of: tcp, udp, sctp.
    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_id float
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    contact float
    Id of the contact.
    contact_group_slug str
    Slug of the contact group.
    contact_role float
    Id of the contact role.
    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_name str
    Name of the device.
    fhrpgroup str
    Fhrpgroup to match.
    fhrpgroup_id float
    Id of the fhrpgroup.
    ip_address str
    IP address.
    ip_address_id float
    Id of the IP address.
    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.
    port float
    Port to match.
    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.
    virtual_machine_name str
    Name of the virtual machine.
    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 the service runs on (parentobjecttype dcim.device). Conflicts with virtualmachineid and with setting the parent*object** pair directly.
    id Number
    NetBox id.
    ipAddressIds List<Number>
    Ids of the IP addresses the service is bound to; all of the parent object's addresses when unset.
    lastUpdated String
    name String
    ownerId Number
    Id of the owner the object is assigned to.
    parentObjectId Number
    Id of the object named by parentobjecttype.
    parentObjectType String
    Content type of the object the service runs on. Derived from deviceid or virtualmachineid when one of those is set; set it together with parentobject_id to address the object directly. One of: dcim.device, virtualization.virtualmachine.
    ports List<Number>
    Port numbers the service listens on.
    protocol String
    Transport protocol. One of: tcp, udp, sctp.
    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
    virtualMachineId Number
    Id of the virtual machine the service runs on (parentobjecttype virtualization.virtualmachine). Conflicts with deviceid and with setting the parentobject_* pair directly.
    contact Number
    Id of the contact.
    contactGroupSlug String
    Slug of the contact group.
    contactRole Number
    Id of the contact role.
    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.
    deviceName String
    Name of the device.
    fhrpgroup String
    Fhrpgroup to match.
    fhrpgroupId Number
    Id of the fhrpgroup.
    ipAddress String
    IP address.
    ipAddressId Number
    Id of the IP address.
    ownerGroupId Number
    Id of the owner group.
    ownerGroupName String
    Name of the owner group.
    ownerName String
    Name of the owner.
    port Number
    Port to match.
    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.
    virtualMachineName String
    Name of the virtual machine.

    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