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

    Lists service objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getServices({
        filters: [{
            name: "name",
            value: "test-service",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_services(filters=[{
        "name": "name",
        "value": "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.GetServices(ctx, &netbox.GetServicesArgs{
    			Filters: []netbox.GetServicesFilter{
    				{
    					Name:  "name",
    					Value: "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.GetServices.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetServicesFilterInputArgs
                {
                    Name = "name",
                    Value = "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.GetServicesArgs;
    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.getServices(GetServicesArgs.builder()
                .filters(GetServicesFilterArgs.builder()
                    .name("name")
                    .value("test-service")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getServices
          arguments:
            filters:
              - name: name
                value: test-service
    
    Example coming soon!
    

    Using getServices

    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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
    function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOutputOptions): Output<GetServicesResult>
    def get_services(filters: Optional[Sequence[GetServicesFilter]] = None,
                     limit: Optional[float] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetServicesFilterArgs]]]] = None,
                     limit: pulumi.Input[Optional[float]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetServicesResult]
    func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
    func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput

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

    public static class GetServices 
    {
        public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getServices:getServices
      arguments:
        # arguments dictionary
    data "netbox_get_services" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetServicesFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetServicesFilter
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetServicesFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetServicesFilter[]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetServicesFilter]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Services List<GetServicesService>
    The matching services.
    Filters List<GetServicesFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    Services []GetServicesService
    The matching services.
    Filters []GetServicesFilter
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    services list(object)
    The matching services.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    services List<GetServicesService>
    The matching services.
    filters List<GetServicesFilter>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    services GetServicesService[]
    The matching services.
    filters GetServicesFilter[]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    services Sequence[GetServicesService]
    The matching services.
    filters Sequence[GetServicesFilter]
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    services List<Property Map>
    The matching services.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: contact, contactn, contactgroup, contactgroupn, contactrole, contactrolen, created, createdempty, createdgt, createdgte, createdlt, createdlte, createdn, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, device, deviceid, fhrpgroup, fhrpgroupid, id, idempty, idgt, idgte, idlt, idlte, idn, ipaddress, ipaddressn, ipaddressid, ipaddressidn, lastupdated, lastupdatedempty, last_updatedgt, last_updatedgte, last_updatedlt, last_updatedlte, last_updatedn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, owner, ownern, ownergroup, ownergroupn, ownergroupid, ownergroupidn, ownerid, owneridn, parentobjectid, parentobjectidempty, parentobjectidgt, parentobjectidgte, parentobjectidlt, parentobjectidlte, parentobjectidn, parentobjecttype, parentobjecttypen, port, portempty, portgt, portgte, portlt, portlte, portn, protocol, protocolempty, protocolic, protocolie, protocoliew, protocoliregex, protocolisw, protocoln, protocolnic, protocolnie, protocolniew, protocolnisw, protocolregex, q, tag, tagany, tagn, tagid, tagidany, tag_idn, virtualmachine, virtualmachineid. Repeating a name sends that parameter once per value. Custom fields filter as cf\n\n, e.g. cf_tier, with the field's own filter logic: loose is a case-insensitive substring match, exact an exact match. NetBox ignores names it has no custom field for, and such an entry does not narrow the result.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetServicesFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetServicesService

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    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