1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getOwners
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    Lists owner objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getOwners({
        filters: [{
            name: "name",
            value: "test-owner",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_owners(filters=[{
        "name": "name",
        "value": "test-owner",
    }])
    
    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.GetOwners(ctx, &netbox.GetOwnersArgs{
    			Filters: []netbox.GetOwnersFilter{
    				{
    					Name:  "name",
    					Value: "test-owner",
    				},
    			},
    		}, 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.GetOwners.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetOwnersFilterInputArgs
                {
                    Name = "name",
                    Value = "test-owner",
                },
            },
        });
    
    });
    
    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.GetOwnersArgs;
    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.getOwners(GetOwnersArgs.builder()
                .filters(GetOwnersFilterArgs.builder()
                    .name("name")
                    .value("test-owner")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getOwners
          arguments:
            filters:
              - name: name
                value: test-owner
    
    Example coming soon!
    

    Using getOwners

    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 getOwners(args: GetOwnersArgs, opts?: InvokeOptions): Promise<GetOwnersResult>
    function getOwnersOutput(args: GetOwnersOutputArgs, opts?: InvokeOutputOptions): Output<GetOwnersResult>
    def get_owners(filters: Optional[Sequence[GetOwnersFilter]] = None,
                   limit: Optional[float] = None,
                   opts: Optional[InvokeOptions] = None) -> GetOwnersResult
    def get_owners_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetOwnersFilterArgs]]]] = None,
                   limit: pulumi.Input[Optional[float]] = None,
                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetOwnersResult]
    func GetOwners(ctx *Context, args *GetOwnersArgs, opts ...InvokeOption) (*GetOwnersResult, error)
    func GetOwnersOutput(ctx *Context, args *GetOwnersOutputArgs, opts ...InvokeOption) GetOwnersResultOutput

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

    public static class GetOwners 
    {
        public static Task<GetOwnersResult> InvokeAsync(GetOwnersArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnersResult> Invoke(GetOwnersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnersResult> Invoke(GetOwnersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOwnersResult> getOwners(GetOwnersArgs args, InvokeOptions options)
    public static Output<GetOwnersResult> getOwners(GetOwnersArgs args, InvokeOptions options)
    public static Output<GetOwnersResult> getOwners(GetOwnersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getOwners:getOwners
      arguments:
        # arguments dictionary
    data "netbox_get_owners" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetOwnersFilter>
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetOwnersFilter
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetOwnersFilter>
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetOwnersFilter[]
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetOwnersFilter]
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getOwners Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Owners List<GetOwnersOwner>
    The matching owners.
    Filters List<GetOwnersFilter>
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    Owners []GetOwnersOwner
    The matching owners.
    Filters []GetOwnersFilter
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    owners list(object)
    The matching owners.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    owners List<GetOwnersOwner>
    The matching owners.
    filters List<GetOwnersFilter>
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    owners GetOwnersOwner[]
    The matching owners.
    filters GetOwnersFilter[]
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    owners Sequence[GetOwnersOwner]
    The matching owners.
    filters Sequence[GetOwnersFilter]
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    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.
    owners List<Property Map>
    The matching owners.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, name__regex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetOwnersFilter

    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.

    GetOwnersOwner

    Description string
    Id double
    NetBox id.
    Name string
    OwnerGroupId double
    Id of the owner group the owner belongs to.
    Url string
    UserGroupIds List<double>
    Ids of the user groups that make up the owner.
    UserIds List<double>
    Ids of the users that make up the owner.
    Description string
    Id float64
    NetBox id.
    Name string
    OwnerGroupId float64
    Id of the owner group the owner belongs to.
    Url string
    UserGroupIds []float64
    Ids of the user groups that make up the owner.
    UserIds []float64
    Ids of the users that make up the owner.
    description string
    id number
    NetBox id.
    name string
    owner_group_id number
    Id of the owner group the owner belongs to.
    url string
    user_group_ids list(number)
    Ids of the user groups that make up the owner.
    user_ids list(number)
    Ids of the users that make up the owner.
    description String
    id Double
    NetBox id.
    name String
    ownerGroupId Double
    Id of the owner group the owner belongs to.
    url String
    userGroupIds List<Double>
    Ids of the user groups that make up the owner.
    userIds List<Double>
    Ids of the users that make up the owner.
    description string
    id number
    NetBox id.
    name string
    ownerGroupId number
    Id of the owner group the owner belongs to.
    url string
    userGroupIds number[]
    Ids of the user groups that make up the owner.
    userIds number[]
    Ids of the users that make up the owner.
    description str
    id float
    NetBox id.
    name str
    owner_group_id float
    Id of the owner group the owner belongs to.
    url str
    user_group_ids Sequence[float]
    Ids of the user groups that make up the owner.
    user_ids Sequence[float]
    Ids of the users that make up the owner.
    description String
    id Number
    NetBox id.
    name String
    ownerGroupId Number
    Id of the owner group the owner belongs to.
    url String
    userGroupIds List<Number>
    Ids of the user groups that make up the owner.
    userIds List<Number>
    Ids of the users that make up the owner.

    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.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial