published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger
A NetBox owner group (users.ownergroup): a grouping of the owners objects can be assigned to.
From the official documentation:
Groups are used to correlate and organize owners. The assignment of an owner to a group has no bearing on the relationship of owned objects to their owners; groups exist purely as an organizational convenience for administrators.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getOwnerGroup({
name: "test-owner_group",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_owner_group(name="test-owner_group")
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.LookupOwnerGroup(ctx, &netbox.LookupOwnerGroupArgs{
Name: pulumi.StringRef("test-owner_group"),
}, 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.GetOwnerGroup.Invoke(new()
{
Name = "test-owner_group",
});
});
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.GetOwnerGroupArgs;
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.getOwnerGroup(GetOwnerGroupArgs.builder()
.name("test-owner_group")
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getOwnerGroup
arguments:
name: test-owner_group
Example coming soon!
Using getOwnerGroup
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 getOwnerGroup(args: GetOwnerGroupArgs, opts?: InvokeOptions): Promise<GetOwnerGroupResult>
function getOwnerGroupOutput(args: GetOwnerGroupOutputArgs, opts?: InvokeOutputOptions): Output<GetOwnerGroupResult>def get_owner_group(id: Optional[float] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOwnerGroupResult
def get_owner_group_output(id: pulumi.Input[Optional[float]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetOwnerGroupResult]func LookupOwnerGroup(ctx *Context, args *LookupOwnerGroupArgs, opts ...InvokeOption) (*LookupOwnerGroupResult, error)
func LookupOwnerGroupOutput(ctx *Context, args *LookupOwnerGroupOutputArgs, opts ...InvokeOption) LookupOwnerGroupResultOutput> Note: This function is named LookupOwnerGroup in the Go SDK.
public static class GetOwnerGroup
{
public static Task<GetOwnerGroupResult> InvokeAsync(GetOwnerGroupArgs args, InvokeOptions? opts = null)
public static Output<GetOwnerGroupResult> Invoke(GetOwnerGroupInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetOwnerGroupResult> Invoke(GetOwnerGroupInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetOwnerGroupResult> getOwnerGroup(GetOwnerGroupArgs args, InvokeOptions options)
public static Output<GetOwnerGroupResult> getOwnerGroup(GetOwnerGroupArgs args, InvokeOptions options)
public static Output<GetOwnerGroupResult> getOwnerGroup(GetOwnerGroupArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getOwnerGroup:getOwnerGroup
arguments:
# arguments dictionarydata "netbox_get_owner_group" "name" {
# arguments
}The following arguments are supported:
getOwnerGroup Result
The following output properties are available:
- Description string
- Id double
- NetBox id.
- Member
Count double - Number of members of the group.
- Name string
- Url string
- Description string
- Id float64
- NetBox id.
- Member
Count float64 - Number of members of the group.
- Name string
- Url string
- description string
- id number
- NetBox id.
- member_
count number - Number of members of the group.
- name string
- url string
- description String
- id Double
- NetBox id.
- member
Count Double - Number of members of the group.
- name String
- url String
- description string
- id number
- NetBox id.
- member
Count number - Number of members of the group.
- name string
- url string
- description str
- id float
- NetBox id.
- member_
count float - Number of members of the group.
- name str
- url str
- description String
- id Number
- NetBox id.
- member
Count Number - Number of members of the group.
- name String
- url String
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