1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getOwner
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 NetBox owner (users.owner): the users and groups an object can be assigned to as its owner.

    From the official documentation:

    An owner is a set of users and/or groups who are responsible for the administration of certain resources within NetBox. The users and groups assigned to an owner are referred to as its members. Owner assignments are useful for indicating which parties are responsible for the administration of a particular object.

    Most objects within NetBox can be assigned an owner, although this is not required.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getOwner({
        name: "test-owner",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_owner(name="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.LookupOwner(ctx, &netbox.LookupOwnerArgs{
    			Name: pulumi.StringRef("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.GetOwner.Invoke(new()
        {
            Name = "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.GetOwnerArgs;
    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.getOwner(GetOwnerArgs.builder()
                .name("test-owner")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getOwner
          arguments:
            name: test-owner
    
    Example coming soon!
    

    Using getOwner

    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 getOwner(args: GetOwnerArgs, opts?: InvokeOptions): Promise<GetOwnerResult>
    function getOwnerOutput(args: GetOwnerOutputArgs, opts?: InvokeOutputOptions): Output<GetOwnerResult>
    def get_owner(description: Optional[str] = None,
                  group_name: Optional[str] = None,
                  id: Optional[float] = None,
                  name: Optional[str] = None,
                  owner_group_id: Optional[float] = None,
                  q: Optional[str] = None,
                  user: Optional[str] = None,
                  user_group_id: Optional[float] = None,
                  user_group_name: Optional[str] = None,
                  user_id: Optional[float] = None,
                  opts: Optional[InvokeOptions] = None) -> GetOwnerResult
    def get_owner_output(description: pulumi.Input[Optional[str]] = None,
                  group_name: pulumi.Input[Optional[str]] = None,
                  id: pulumi.Input[Optional[float]] = None,
                  name: pulumi.Input[Optional[str]] = None,
                  owner_group_id: pulumi.Input[Optional[float]] = None,
                  q: pulumi.Input[Optional[str]] = None,
                  user: pulumi.Input[Optional[str]] = None,
                  user_group_id: pulumi.Input[Optional[float]] = None,
                  user_group_name: pulumi.Input[Optional[str]] = None,
                  user_id: pulumi.Input[Optional[float]] = None,
                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetOwnerResult]
    func LookupOwner(ctx *Context, args *LookupOwnerArgs, opts ...InvokeOption) (*LookupOwnerResult, error)
    func LookupOwnerOutput(ctx *Context, args *LookupOwnerOutputArgs, opts ...InvokeOption) LookupOwnerResultOutput

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

    public static class GetOwner 
    {
        public static Task<GetOwnerResult> InvokeAsync(GetOwnerArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnerResult> Invoke(GetOwnerInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnerResult> Invoke(GetOwnerInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOwnerResult> getOwner(GetOwnerArgs args, InvokeOptions options)
    public static Output<GetOwnerResult> getOwner(GetOwnerArgs args, InvokeOptions options)
    public static Output<GetOwnerResult> getOwner(GetOwnerArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getOwner:getOwner
      arguments:
        # arguments dictionary
    data "netbox_get_owner" "name" {
        # arguments
    }

    The following arguments are supported:

    Description string
    GroupName string
    Name of the group.
    Id double
    NetBox id.
    Name string
    OwnerGroupId double
    Id of the owner group the owner belongs to.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    User string
    User (username).
    UserGroupId double
    Id of the user group.
    UserGroupName string
    Name of the user group.
    UserId double
    Id of the user.
    Description string
    GroupName string
    Name of the group.
    Id float64
    NetBox id.
    Name string
    OwnerGroupId float64
    Id of the owner group the owner belongs to.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    User string
    User (username).
    UserGroupId float64
    Id of the user group.
    UserGroupName string
    Name of the user group.
    UserId float64
    Id of the user.
    description string
    group_name string
    Name of the group.
    id number
    NetBox id.
    name string
    owner_group_id number
    Id of the owner group the owner belongs to.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user string
    User (username).
    user_group_id number
    Id of the user group.
    user_group_name string
    Name of the user group.
    user_id number
    Id of the user.
    description String
    groupName String
    Name of the group.
    id Double
    NetBox id.
    name String
    ownerGroupId Double
    Id of the owner group the owner belongs to.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    user String
    User (username).
    userGroupId Double
    Id of the user group.
    userGroupName String
    Name of the user group.
    userId Double
    Id of the user.
    description string
    groupName string
    Name of the group.
    id number
    NetBox id.
    name string
    ownerGroupId number
    Id of the owner group the owner belongs to.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user string
    User (username).
    userGroupId number
    Id of the user group.
    userGroupName string
    Name of the user group.
    userId number
    Id of the user.
    description str
    group_name str
    Name of the group.
    id float
    NetBox id.
    name str
    owner_group_id float
    Id of the owner group the owner belongs to.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    user str
    User (username).
    user_group_id float
    Id of the user group.
    user_group_name str
    Name of the user group.
    user_id float
    Id of the user.
    description String
    groupName String
    Name of the group.
    id Number
    NetBox id.
    name String
    ownerGroupId Number
    Id of the owner group the owner belongs to.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    user String
    User (username).
    userGroupId Number
    Id of the user group.
    userGroupName String
    Name of the user group.
    userId Number
    Id of the user.

    getOwner Result

    The following output properties are available:

    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.
    GroupName string
    Name of the group.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    User string
    User (username).
    UserGroupId double
    Id of the user group.
    UserGroupName string
    Name of the user group.
    UserId double
    Id of the user.
    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.
    GroupName string
    Name of the group.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    User string
    User (username).
    UserGroupId float64
    Id of the user group.
    UserGroupName string
    Name of the user group.
    UserId float64
    Id of the user.
    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.
    group_name string
    Name of the group.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user string
    User (username).
    user_group_id number
    Id of the user group.
    user_group_name string
    Name of the user group.
    user_id number
    Id of the user.
    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.
    groupName String
    Name of the group.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    user String
    User (username).
    userGroupId Double
    Id of the user group.
    userGroupName String
    Name of the user group.
    userId Double
    Id of the user.
    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.
    groupName string
    Name of the group.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user string
    User (username).
    userGroupId number
    Id of the user group.
    userGroupName string
    Name of the user group.
    userId number
    Id of the user.
    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.
    group_name str
    Name of the group.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    user str
    User (username).
    user_group_id float
    Id of the user group.
    user_group_name str
    Name of the user group.
    user_id float
    Id of the user.
    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.
    groupName String
    Name of the group.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    user String
    User (username).
    userGroupId Number
    Id of the user group.
    userGroupName String
    Name of the user group.
    userId Number
    Id of the user.

    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