Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
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
published on Wednesday, Nov 4, 2026 by e-breuninger
Lists user objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getUsers({
limit: 10,
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_users(limit=10)
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.GetUsers(ctx, &netbox.GetUsersArgs{
Limit: pulumi.Float64Ref(10),
}, 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.GetUsers.Invoke(new()
{
Limit = 10,
});
});
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.GetUsersArgs;
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.getUsers(GetUsersArgs.builder()
.limit(10)
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getUsers
arguments:
limit: 10
Example coming soon!
Using getUsers
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 getUsers(args: GetUsersArgs, opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(args: GetUsersOutputArgs, opts?: InvokeOutputOptions): Output<GetUsersResult>def get_users(filters: Optional[Sequence[GetUsersFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetUsersFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetUsersResult]func GetUsers(ctx *Context, args *GetUsersArgs, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, args *GetUsersOutputArgs, opts ...InvokeOption) GetUsersResultOutput> Note: This function is named GetUsers in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(GetUsersArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(GetUsersInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOptions options)
public static Output<GetUsersResult> getUsers(GetUsersArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getUsers:getUsers
arguments:
# arguments dictionarydata "netbox_get_users" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Users Filter> - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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
[]Get
Users Filter - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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<Get
Users Filter> - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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
Get
Users Filter[] - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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[Get
Users Filter] - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
getUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Get
Users User> - The matching users.
- Filters
List<Get
Users Filter> - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- Users
[]Get
Users User - The matching users.
- Filters
[]Get
Users Filter - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- users list(object)
- The matching users.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- users
List<Get
Users User> - The matching users.
- filters
List<Get
Users Filter> - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- users
Get
Users User[] - The matching users.
- filters
Get
Users Filter[] - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- users
Sequence[Get
Users User] - The matching users.
- filters
Sequence[Get
Users Filter] - Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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.
- users List<Property Map>
- The matching users.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: id, idempty, idgt, idgte, idlt, idlte, idn, username, usernameempty, usernameic, usernameie, usernameiew, usernameiregex, usernameisw, usernamen, usernamenic, usernamenie, usernameniew, usernamenisw, usernameregex. 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
GetUsersFilter
GetUsersUser
- Active bool
- Deprecated alias of is_active.
- Date
Joined string - When the account was created.
- Email string
- Email address.
- First
Name string - Group
Ids List<double> - Ids of the groups the user belongs to.
- Id double
- NetBox id.
- Is
Active bool - Whether the user may log in.
- Last
Login string - When the user last logged in; null until the first login.
- Last
Name string - Password string
- Url string
- Username string
- Active bool
- Deprecated alias of is_active.
- Date
Joined string - When the account was created.
- Email string
- Email address.
- First
Name string - Group
Ids []float64 - Ids of the groups the user belongs to.
- Id float64
- NetBox id.
- Is
Active bool - Whether the user may log in.
- Last
Login string - When the user last logged in; null until the first login.
- Last
Name string - Password string
- Url string
- Username string
- active bool
- Deprecated alias of is_active.
- date_
joined string - When the account was created.
- email string
- Email address.
- first_
name string - group_
ids list(number) - Ids of the groups the user belongs to.
- id number
- NetBox id.
- is_
active bool - Whether the user may log in.
- last_
login string - When the user last logged in; null until the first login.
- last_
name string - password string
- url string
- username string
- active Boolean
- Deprecated alias of is_active.
- date
Joined String - When the account was created.
- email String
- Email address.
- first
Name String - group
Ids List<Double> - Ids of the groups the user belongs to.
- id Double
- NetBox id.
- is
Active Boolean - Whether the user may log in.
- last
Login String - When the user last logged in; null until the first login.
- last
Name String - password String
- url String
- username String
- active boolean
- Deprecated alias of is_active.
- date
Joined string - When the account was created.
- email string
- Email address.
- first
Name string - group
Ids number[] - Ids of the groups the user belongs to.
- id number
- NetBox id.
- is
Active boolean - Whether the user may log in.
- last
Login string - When the user last logged in; null until the first login.
- last
Name string - password string
- url string
- username string
- active bool
- Deprecated alias of is_active.
- date_
joined str - When the account was created.
- email str
- Email address.
- first_
name str - group_
ids Sequence[float] - Ids of the groups the user belongs to.
- id float
- NetBox id.
- is_
active bool - Whether the user may log in.
- last_
login str - When the user last logged in; null until the first login.
- last_
name str - password str
- url str
- username str
- active Boolean
- Deprecated alias of is_active.
- date
Joined String - When the account was created.
- email String
- Email address.
- first
Name String - group
Ids List<Number> - Ids of the groups the user belongs to.
- id Number
- NetBox id.
- is
Active Boolean - Whether the user may log in.
- last
Login String - When the user last logged in; null until the first login.
- last
Name String - password String
- url String
- username String
Package Details
- Repository
- netbox e-breuninger/terraform-provider-netbox
- License
- Notes
- This Pulumi package is based on the
netboxTerraform Provider.
netbox
Viewing docs for netbox 6.0.0
published on Wednesday, Nov 4, 2026 by e-breuninger
published on Wednesday, Nov 4, 2026 by e-breuninger