published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 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(id: Optional[float] = None,
name: Optional[str] = None,
owner_group_id: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetOwnerResult
def get_owner_output(id: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
owner_group_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:
- Id double
- NetBox id.
- Name string
- Owner
Group doubleId - Id of the owner group the owner belongs to.
- Id float64
- NetBox id.
- Name string
- Owner
Group float64Id - Id of the owner group the owner belongs to.
- id number
- NetBox id.
- name string
- owner_
group_ numberid - Id of the owner group the owner belongs to.
- id Double
- NetBox id.
- name String
- owner
Group DoubleId - Id of the owner group the owner belongs to.
- id number
- NetBox id.
- name string
- owner
Group numberId - Id of the owner group the owner belongs to.
- id float
- NetBox id.
- name str
- owner_
group_ floatid - Id of the owner group the owner belongs to.
- id Number
- NetBox id.
- name String
- owner
Group NumberId - Id of the owner group the owner belongs to.
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
published on Wednesday, Nov 4, 2026 by e-breuninger