1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getOwnerGroups
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger

    Lists owner_group objects matching the given filters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getOwnerGroups({
        filters: [{
            name: "name",
            value: "test-owner_group",
        }],
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_owner_groups(filters=[{
        "name": "name",
        "value": "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.GetOwnerGroups(ctx, &netbox.GetOwnerGroupsArgs{
    			Filters: []netbox.GetOwnerGroupsFilter{
    				{
    					Name:  "name",
    					Value: "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.GetOwnerGroups.Invoke(new()
        {
            Filters = new[]
            {
                new Netbox.Inputs.GetOwnerGroupsFilterInputArgs
                {
                    Name = "name",
                    Value = "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.GetOwnerGroupsArgs;
    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.getOwnerGroups(GetOwnerGroupsArgs.builder()
                .filters(GetOwnerGroupsFilterArgs.builder()
                    .name("name")
                    .value("test-owner_group")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getOwnerGroups
          arguments:
            filters:
              - name: name
                value: test-owner_group
    
    Example coming soon!
    

    Using getOwnerGroups

    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 getOwnerGroups(args: GetOwnerGroupsArgs, opts?: InvokeOptions): Promise<GetOwnerGroupsResult>
    function getOwnerGroupsOutput(args: GetOwnerGroupsOutputArgs, opts?: InvokeOutputOptions): Output<GetOwnerGroupsResult>
    def get_owner_groups(filters: Optional[Sequence[GetOwnerGroupsFilter]] = None,
                         limit: Optional[float] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOwnerGroupsResult
    def get_owner_groups_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetOwnerGroupsFilterArgs]]]] = None,
                         limit: pulumi.Input[Optional[float]] = None,
                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetOwnerGroupsResult]
    func GetOwnerGroups(ctx *Context, args *GetOwnerGroupsArgs, opts ...InvokeOption) (*GetOwnerGroupsResult, error)
    func GetOwnerGroupsOutput(ctx *Context, args *GetOwnerGroupsOutputArgs, opts ...InvokeOption) GetOwnerGroupsResultOutput

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

    public static class GetOwnerGroups 
    {
        public static Task<GetOwnerGroupsResult> InvokeAsync(GetOwnerGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnerGroupsResult> Invoke(GetOwnerGroupsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetOwnerGroupsResult> Invoke(GetOwnerGroupsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetOwnerGroupsResult> getOwnerGroups(GetOwnerGroupsArgs args, InvokeOptions options)
    public static Output<GetOwnerGroupsResult> getOwnerGroups(GetOwnerGroupsArgs args, InvokeOptions options)
    public static Output<GetOwnerGroupsResult> getOwnerGroups(GetOwnerGroupsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getOwnerGroups:getOwnerGroups
      arguments:
        # arguments dictionary
    data "netbox_get_owner_groups" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetOwnerGroupsFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Filters []GetOwnerGroupsFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<GetOwnerGroupsFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters GetOwnerGroupsFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters Sequence[GetOwnerGroupsFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    getOwnerGroups Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerGroups List<GetOwnerGroupsOwnerGroup>
    The matching owner*groups.
    Filters List<GetOwnerGroupsFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    Limit double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerGroups []GetOwnerGroupsOwnerGroup
    The matching owner*groups.
    Filters []GetOwnerGroupsFilter
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    Limit float64
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    owner_groups list(object)
    The matching owner*groups.
    filters list(object)
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerGroups List<GetOwnerGroupsOwnerGroup>
    The matching owner*groups.
    filters List<GetOwnerGroupsFilter>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit Double
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id string
    The provider-assigned unique ID for this managed resource.
    ownerGroups GetOwnerGroupsOwnerGroup[]
    The matching owner*groups.
    filters GetOwnerGroupsFilter[]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit number
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id str
    The provider-assigned unique ID for this managed resource.
    owner_groups Sequence[GetOwnerGroupsOwnerGroup]
    The matching owner*groups.
    filters Sequence[GetOwnerGroupsFilter]
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit float
    The maximum number of objects to return from the API lookup. Defaults to 1000.
    id String
    The provider-assigned unique ID for this managed resource.
    ownerGroups List<Property Map>
    The matching owner*groups.
    filters List<Property Map>
    Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex. Repeating a name sends that parameter once per value.
    limit Number
    The maximum number of objects to return from the API lookup. Defaults to 1000.

    Supporting Types

    GetOwnerGroupsFilter

    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    Name string
    Name of the query filter (the API list parameter).
    Value string
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.
    name string
    Name of the query filter (the API list parameter).
    value string
    Value to filter by.
    name str
    Name of the query filter (the API list parameter).
    value str
    Value to filter by.
    name String
    Name of the query filter (the API list parameter).
    value String
    Value to filter by.

    GetOwnerGroupsOwnerGroup

    Description string
    Id double
    NetBox id.
    MemberCount double
    Number of members of the group.
    Name string
    Url string
    Description string
    Id float64
    NetBox id.
    MemberCount 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.
    memberCount Double
    Number of members of the group.
    name String
    url String
    description string
    id number
    NetBox id.
    memberCount 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.
    memberCount 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 netbox Terraform Provider.
    netbox
    Viewing docs for netbox 6.0.0
    published on Wednesday, Nov 4, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial