Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
netbox
Viewing docs for netbox 6.0.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger
Lists permission objects matching the given filters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as netbox from "@pulumi/netbox";
const test = netbox.getPermissions({
filters: [{
name: "name",
value: "test-permission",
}],
});
import pulumi
import pulumi_netbox as netbox
test = netbox.get_permissions(filters=[{
"name": "name",
"value": "test-permission",
}])
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.GetPermissions(ctx, &netbox.GetPermissionsArgs{
Filters: []netbox.GetPermissionsFilter{
{
Name: "name",
Value: "test-permission",
},
},
}, 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.GetPermissions.Invoke(new()
{
Filters = new[]
{
new Netbox.Inputs.GetPermissionsFilterInputArgs
{
Name = "name",
Value = "test-permission",
},
},
});
});
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.GetPermissionsArgs;
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.getPermissions(GetPermissionsArgs.builder()
.filters(GetPermissionsFilterArgs.builder()
.name("name")
.value("test-permission")
.build())
.build());
}
}
variables:
test:
fn::invoke:
function: netbox:getPermissions
arguments:
filters:
- name: name
value: test-permission
Example coming soon!
Using getPermissions
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 getPermissions(args: GetPermissionsArgs, opts?: InvokeOptions): Promise<GetPermissionsResult>
function getPermissionsOutput(args: GetPermissionsOutputArgs, opts?: InvokeOutputOptions): Output<GetPermissionsResult>def get_permissions(filters: Optional[Sequence[GetPermissionsFilter]] = None,
limit: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetPermissionsResult
def get_permissions_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetPermissionsFilterArgs]]]] = None,
limit: pulumi.Input[Optional[float]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetPermissionsResult]func GetPermissions(ctx *Context, args *GetPermissionsArgs, opts ...InvokeOption) (*GetPermissionsResult, error)
func GetPermissionsOutput(ctx *Context, args *GetPermissionsOutputArgs, opts ...InvokeOption) GetPermissionsResultOutput> Note: This function is named GetPermissions in the Go SDK.
public static class GetPermissions
{
public static Task<GetPermissionsResult> InvokeAsync(GetPermissionsArgs args, InvokeOptions? opts = null)
public static Output<GetPermissionsResult> Invoke(GetPermissionsInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetPermissionsResult> Invoke(GetPermissionsInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
public static Output<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
public static Output<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOutputOptions options)
fn::invoke:
function: netbox:index/getPermissions:getPermissions
arguments:
# arguments dictionarydata "netbox_get_permissions" "name" {
# arguments
}The following arguments are supported:
- Filters
List<Get
Permissions Filter> - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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
Permissions Filter - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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
Permissions Filter> - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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
Permissions Filter[] - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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
Permissions Filter] - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
getPermissions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permissions
List<Get
Permissions Permission> - The matching permissions.
- Filters
List<Get
Permissions Filter> - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- Permissions
[]Get
Permissions Permission - The matching permissions.
- Filters
[]Get
Permissions Filter - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- permissions list(object)
- The matching permissions.
- filters list(object)
- Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- permissions
List<Get
Permissions Permission> - The matching permissions.
- filters
List<Get
Permissions Filter> - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- permissions
Get
Permissions Permission[] - The matching permissions.
- filters
Get
Permissions Filter[] - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- permissions
Sequence[Get
Permissions Permission] - The matching permissions.
- filters
Sequence[Get
Permissions Filter] - Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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.
- permissions List<Property Map>
- The matching permissions.
- filters List<Property Map>
- Query filters, sent as API list parameters. Supported names: canadd, canchange, candelete, canview, description, descriptionempty, descriptionic, descriptionie, descriptioniew, descriptioniregex, descriptionisw, descriptionn, descriptionnic, descriptionnie, descriptionniew, descriptionnisw, descriptionregex, enabled, group, groupn, groupid, groupidn, id, idempty, idgt, idgte, idlt, idlte, idn, name, nameempty, nameic, nameie, nameiew, nameiregex, nameisw, namen, namenic, namenie, nameniew, namenisw, nameregex, objecttype, objecttypeic, object_typeie, object_typeiew, object_typeiregex, object_typeisw, object_typen, object_typenic, object_typenie, object_typeniew, object_typenisw, object_typeregex, objecttypeid, objecttypeidn, objecttypes, objecttypesn, q, user, usern, userid, userid__n. 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
GetPermissionsFilter
GetPermissionsPermission
- Actions List<string>
- Permitted actions: view, add, change, delete or a custom action name.
- Constraints string
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- Description string
- Enabled bool
- Whether the permission is in effect.
- Group
Ids List<double> - Ids of the groups the permission is granted to.
- Groups List<double>
- Deprecated alias of group_ids.
- Id double
- NetBox id.
- Name string
- Object
Types List<string> - Object types the permission applies to, as app-labelled content types (dcim.device).
- Url string
- User
Ids List<double> - Ids of the users the permission is granted to.
- Users List<double>
- Deprecated alias of user_ids.
- Actions []string
- Permitted actions: view, add, change, delete or a custom action name.
- Constraints string
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- Description string
- Enabled bool
- Whether the permission is in effect.
- Group
Ids []float64 - Ids of the groups the permission is granted to.
- Groups []float64
- Deprecated alias of group_ids.
- Id float64
- NetBox id.
- Name string
- Object
Types []string - Object types the permission applies to, as app-labelled content types (dcim.device).
- Url string
- User
Ids []float64 - Ids of the users the permission is granted to.
- Users []float64
- Deprecated alias of user_ids.
- actions list(string)
- Permitted actions: view, add, change, delete or a custom action name.
- constraints string
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- description string
- enabled bool
- Whether the permission is in effect.
- group_
ids list(number) - Ids of the groups the permission is granted to.
- groups list(number)
- Deprecated alias of group_ids.
- id number
- NetBox id.
- name string
- object_
types list(string) - Object types the permission applies to, as app-labelled content types (dcim.device).
- url string
- user_
ids list(number) - Ids of the users the permission is granted to.
- users list(number)
- Deprecated alias of user_ids.
- actions List<String>
- Permitted actions: view, add, change, delete or a custom action name.
- constraints String
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- description String
- enabled Boolean
- Whether the permission is in effect.
- group
Ids List<Double> - Ids of the groups the permission is granted to.
- groups List<Double>
- Deprecated alias of group_ids.
- id Double
- NetBox id.
- name String
- object
Types List<String> - Object types the permission applies to, as app-labelled content types (dcim.device).
- url String
- user
Ids List<Double> - Ids of the users the permission is granted to.
- users List<Double>
- Deprecated alias of user_ids.
- actions string[]
- Permitted actions: view, add, change, delete or a custom action name.
- constraints string
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- description string
- enabled boolean
- Whether the permission is in effect.
- group
Ids number[] - Ids of the groups the permission is granted to.
- groups number[]
- Deprecated alias of group_ids.
- id number
- NetBox id.
- name string
- object
Types string[] - Object types the permission applies to, as app-labelled content types (dcim.device).
- url string
- user
Ids number[] - Ids of the users the permission is granted to.
- users number[]
- Deprecated alias of user_ids.
- actions Sequence[str]
- Permitted actions: view, add, change, delete or a custom action name.
- constraints str
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- description str
- enabled bool
- Whether the permission is in effect.
- group_
ids Sequence[float] - Ids of the groups the permission is granted to.
- groups Sequence[float]
- Deprecated alias of group_ids.
- id float
- NetBox id.
- name str
- object_
types Sequence[str] - Object types the permission applies to, as app-labelled content types (dcim.device).
- url str
- user_
ids Sequence[float] - Ids of the users the permission is granted to.
- users Sequence[float]
- Deprecated alias of user_ids.
- actions List<String>
- Permitted actions: view, add, change, delete or a custom action name.
- constraints String
- Queryset filter as JSON text, an object or a list of objects (use jsonencode()).
- description String
- enabled Boolean
- Whether the permission is in effect.
- group
Ids List<Number> - Ids of the groups the permission is granted to.
- groups List<Number>
- Deprecated alias of group_ids.
- id Number
- NetBox id.
- name String
- object
Types List<String> - Object types the permission applies to, as app-labelled content types (dcim.device).
- url String
- user
Ids List<Number> - Ids of the users the permission is granted to.
- users List<Number>
- Deprecated alias of user_ids.
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.1
published on Monday, Nov 16, 2026 by e-breuninger
published on Monday, Nov 16, 2026 by e-breuninger