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 = new netbox.OwnerGroup("test", {
name: "test-owner-group",
description: "test-description",
});
import pulumi
import pulumi_netbox as netbox
test = netbox.OwnerGroup("test",
name="test-owner-group",
description="test-description")
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.NewOwnerGroup(ctx, "test", &netbox.OwnerGroupArgs{
Name: pulumi.String("test-owner-group"),
Description: pulumi.String("test-description"),
})
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 = new Netbox.OwnerGroup("test", new()
{
Name = "test-owner-group",
Description = "test-description",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.netbox.OwnerGroup;
import com.pulumi.netbox.OwnerGroupArgs;
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) {
var test = new OwnerGroup("test", OwnerGroupArgs.builder()
.name("test-owner-group")
.description("test-description")
.build());
}
}
resources:
test:
type: netbox:OwnerGroup
properties:
name: test-owner-group
description: test-description
Example coming soon!
Create OwnerGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OwnerGroup(name: string, args?: OwnerGroupArgs, opts?: CustomResourceOptions);@overload
def OwnerGroup(resource_name: str,
args: Optional[OwnerGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def OwnerGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewOwnerGroup(ctx *Context, name string, args *OwnerGroupArgs, opts ...ResourceOption) (*OwnerGroup, error)public OwnerGroup(string name, OwnerGroupArgs? args = null, CustomResourceOptions? opts = null)
public OwnerGroup(String name, OwnerGroupArgs args)
public OwnerGroup(String name, OwnerGroupArgs args, CustomResourceOptions options)
type: netbox:OwnerGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "netbox_owner_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OwnerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OwnerGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OwnerGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OwnerGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OwnerGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ownerGroupResource = new Netbox.OwnerGroup("ownerGroupResource", new()
{
Description = "string",
Name = "string",
});
example, err := netbox.NewOwnerGroup(ctx, "ownerGroupResource", &netbox.OwnerGroupArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "netbox_owner_group" "ownerGroupResource" {
lifecycle {
create_before_destroy = true
}
description = "string"
name = "string"
}
var ownerGroupResource = new OwnerGroup("ownerGroupResource", OwnerGroupArgs.builder()
.description("string")
.name("string")
.build());
owner_group_resource = netbox.OwnerGroup("ownerGroupResource",
description="string",
name="string")
const ownerGroupResource = new netbox.OwnerGroup("ownerGroupResource", {
description: "string",
name: "string",
});
type: netbox:OwnerGroup
properties:
description: string
name: string
OwnerGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OwnerGroup resource accepts the following input properties:
- Description string
- Name string
- Description string
- Name string
- description string
- name string
- description String
- name String
- description string
- name string
- description str
- name str
- description String
- name String
Outputs
All input properties are implicitly available as output properties. Additionally, the OwnerGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Count double - Number of members of the group.
- Owner
Group doubleId - NetBox id.
- Url string
- Id string
- The provider-assigned unique ID for this managed resource.
- Member
Count float64 - Number of members of the group.
- Owner
Group float64Id - NetBox id.
- Url string
- id string
- The provider-assigned unique ID for this managed resource.
- member_
count number - Number of members of the group.
- owner_
group_ numberid - NetBox id.
- url string
- id String
- The provider-assigned unique ID for this managed resource.
- member
Count Double - Number of members of the group.
- owner
Group DoubleId - NetBox id.
- url String
- id string
- The provider-assigned unique ID for this managed resource.
- member
Count number - Number of members of the group.
- owner
Group numberId - NetBox id.
- url string
- id str
- The provider-assigned unique ID for this managed resource.
- member_
count float - Number of members of the group.
- owner_
group_ floatid - NetBox id.
- url str
- id String
- The provider-assigned unique ID for this managed resource.
- member
Count Number - Number of members of the group.
- owner
Group NumberId - NetBox id.
- url String
Look up Existing OwnerGroup Resource
Get an existing OwnerGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OwnerGroupState, opts?: CustomResourceOptions): OwnerGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
member_count: Optional[float] = None,
name: Optional[str] = None,
owner_group_id: Optional[float] = None,
url: Optional[str] = None) -> OwnerGroupfunc GetOwnerGroup(ctx *Context, name string, id IDInput, state *OwnerGroupState, opts ...ResourceOption) (*OwnerGroup, error)public static OwnerGroup Get(string name, Input<string> id, OwnerGroupState? state, CustomResourceOptions? opts = null)public static OwnerGroup get(String name, Output<String> id, OwnerGroupState state, CustomResourceOptions options)resources: _: type: netbox:OwnerGroup get: id: ${id}import {
to = netbox_owner_group.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- Member
Count double - Number of members of the group.
- Name string
- Owner
Group doubleId - NetBox id.
- Url string
- Description string
- Member
Count float64 - Number of members of the group.
- Name string
- Owner
Group float64Id - NetBox id.
- Url string
- description string
- member_
count number - Number of members of the group.
- name string
- owner_
group_ numberid - NetBox id.
- url string
- description String
- member
Count Double - Number of members of the group.
- name String
- owner
Group DoubleId - NetBox id.
- url String
- description string
- member
Count number - Number of members of the group.
- name string
- owner
Group numberId - NetBox id.
- url string
- description str
- member_
count float - Number of members of the group.
- name str
- owner_
group_ floatid - NetBox id.
- url str
- description String
- member
Count Number - Number of members of the group.
- name String
- owner
Group NumberId - NetBox id.
- url String
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = netbox_owner_group.test
id = “123”
}
The pulumi import command can be used, for example:
$ pulumi import netbox:index/ownerGroup:OwnerGroup test 123
To learn more about importing existing cloud resources, see Importing resources.
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