published on Monday, Nov 16, 2026 by e-breuninger
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 dictionarydata "netbox_get_owner" "name" {
# arguments
}The following arguments are supported:
- Description string
- Group
Name string - Name of the group.
- Id double
- NetBox id.
- Name string
- Owner
Group doubleId - 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 doubleId - Id of the user group.
- User
Group stringName - Name of the user group.
- User
Id double - Id of the user.
- Description string
- Group
Name string - Name of the group.
- Id float64
- NetBox id.
- Name string
- Owner
Group float64Id - 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 float64Id - Id of the user group.
- User
Group stringName - Name of the user group.
- User
Id float64 - Id of the user.
- description string
- group_
name string - Name of the group.
- id number
- NetBox id.
- name string
- owner_
group_ numberid - 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_ numberid - Id of the user group.
- user_
group_ stringname - Name of the user group.
- user_
id number - Id of the user.
- description String
- group
Name String - Name of the group.
- id Double
- NetBox id.
- name String
- owner
Group DoubleId - 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 DoubleId - Id of the user group.
- user
Group StringName - Name of the user group.
- user
Id Double - Id of the user.
- description string
- group
Name string - Name of the group.
- id number
- NetBox id.
- name string
- owner
Group numberId - 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 numberId - Id of the user group.
- user
Group stringName - Name of the user group.
- user
Id number - Id of the user.
- description str
- group_
name str - Name of the group.
- id float
- NetBox id.
- name str
- owner_
group_ floatid - 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_ floatid - Id of the user group.
- user_
group_ strname - Name of the user group.
- user_
id float - Id of the user.
- description String
- group
Name String - Name of the group.
- id Number
- NetBox id.
- name String
- owner
Group NumberId - 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 NumberId - Id of the user group.
- user
Group StringName - Name of the user group.
- user
Id Number - Id of the user.
getOwner Result
The following output properties are available:
- Description string
- Id double
- NetBox id.
- Name string
- Owner
Group doubleId - Id of the owner group the owner belongs to.
- Url string
- User
Group List<double>Ids - Ids of the user groups that make up the owner.
- User
Ids List<double> - 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 doubleId - Id of the user group.
- User
Group stringName - Name of the user group.
- User
Id double - Id of the user.
- Description string
- Id float64
- NetBox id.
- Name string
- Owner
Group float64Id - Id of the owner group the owner belongs to.
- Url string
- User
Group []float64Ids - Ids of the user groups that make up the owner.
- User
Ids []float64 - 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 float64Id - Id of the user group.
- User
Group stringName - Name of the user group.
- User
Id float64 - Id of the user.
- description string
- id number
- NetBox id.
- name string
- owner_
group_ numberid - Id of the owner group the owner belongs to.
- url string
- user_
group_ list(number)ids - 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_ numberid - Id of the user group.
- user_
group_ stringname - Name of the user group.
- user_
id number - Id of the user.
- description String
- id Double
- NetBox id.
- name String
- owner
Group DoubleId - Id of the owner group the owner belongs to.
- url String
- user
Group List<Double>Ids - Ids of the user groups that make up the owner.
- user
Ids List<Double> - 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 DoubleId - Id of the user group.
- user
Group StringName - Name of the user group.
- user
Id Double - Id of the user.
- description string
- id number
- NetBox id.
- name string
- owner
Group numberId - Id of the owner group the owner belongs to.
- url string
- user
Group number[]Ids - Ids of the user groups that make up the owner.
- user
Ids 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 numberId - Id of the user group.
- user
Group stringName - Name of the user group.
- user
Id number - Id of the user.
- description str
- id float
- NetBox id.
- name str
- owner_
group_ floatid - Id of the owner group the owner belongs to.
- url str
- user_
group_ Sequence[float]ids - 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_ floatid - Id of the user group.
- user_
group_ strname - Name of the user group.
- user_
id float - Id of the user.
- description String
- id Number
- NetBox id.
- name String
- owner
Group NumberId - Id of the owner group the owner belongs to.
- url String
- user
Group List<Number>Ids - 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 NumberId - Id of the user group.
- user
Group StringName - Name of the user group.
- user
Id Number - Id of the user.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Monday, Nov 16, 2026 by e-breuninger