1. Registry
  2. Packages
  3. Netbox Provider
  4. API Docs
  5. getPermission
Viewing docs for netbox 6.0.1
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

    An object permission granting actions on object types to users and groups (users.objectpermission).

    From the official documentation:

    An object permission grants the ability to perform one or more actions (e.g. view, add, change, delete) against a defined set of object types, and may be restricted to a subset of objects matching a configured filter. Permissions are assigned to users and/or groups; a user’s effective permissions are the union of those assigned directly and those inherited via group membership.

    See the permissions documentation for a detailed walkthrough of how permissions are evaluated.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as netbox from "@pulumi/netbox";
    
    const test = netbox.getPermission({
        name: "test-permission",
    });
    
    import pulumi
    import pulumi_netbox as netbox
    
    test = netbox.get_permission(name="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.LookupPermission(ctx, &netbox.LookupPermissionArgs{
    			Name: pulumi.StringRef("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.GetPermission.Invoke(new()
        {
            Name = "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.GetPermissionArgs;
    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.getPermission(GetPermissionArgs.builder()
                .name("test-permission")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: netbox:getPermission
          arguments:
            name: test-permission
    
    Example coming soon!
    

    Using getPermission

    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 getPermission(args: GetPermissionArgs, opts?: InvokeOptions): Promise<GetPermissionResult>
    function getPermissionOutput(args: GetPermissionOutputArgs, opts?: InvokeOutputOptions): Output<GetPermissionResult>
    def get_permission(can_add: Optional[bool] = None,
                       can_change: Optional[bool] = None,
                       can_delete: Optional[bool] = None,
                       can_view: Optional[bool] = None,
                       description: Optional[str] = None,
                       enabled: Optional[bool] = None,
                       group_id: Optional[float] = None,
                       group_name: Optional[str] = None,
                       id: Optional[float] = None,
                       name: Optional[str] = None,
                       object_type: Optional[str] = None,
                       object_type_id: Optional[float] = None,
                       object_type_name: Optional[float] = None,
                       q: Optional[str] = None,
                       user_id: Optional[float] = None,
                       user_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPermissionResult
    def get_permission_output(can_add: pulumi.Input[Optional[bool]] = None,
                       can_change: pulumi.Input[Optional[bool]] = None,
                       can_delete: pulumi.Input[Optional[bool]] = None,
                       can_view: pulumi.Input[Optional[bool]] = None,
                       description: pulumi.Input[Optional[str]] = None,
                       enabled: pulumi.Input[Optional[bool]] = None,
                       group_id: pulumi.Input[Optional[float]] = None,
                       group_name: pulumi.Input[Optional[str]] = None,
                       id: pulumi.Input[Optional[float]] = None,
                       name: pulumi.Input[Optional[str]] = None,
                       object_type: pulumi.Input[Optional[str]] = None,
                       object_type_id: pulumi.Input[Optional[float]] = None,
                       object_type_name: pulumi.Input[Optional[float]] = None,
                       q: pulumi.Input[Optional[str]] = None,
                       user_id: pulumi.Input[Optional[float]] = None,
                       user_name: pulumi.Input[Optional[str]] = None,
                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetPermissionResult]
    func LookupPermission(ctx *Context, args *LookupPermissionArgs, opts ...InvokeOption) (*LookupPermissionResult, error)
    func LookupPermissionOutput(ctx *Context, args *LookupPermissionOutputArgs, opts ...InvokeOption) LookupPermissionResultOutput

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

    public static class GetPermission 
    {
        public static Task<GetPermissionResult> InvokeAsync(GetPermissionArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionResult> Invoke(GetPermissionInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionResult> Invoke(GetPermissionInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
    public static Output<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
    public static Output<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: netbox:index/getPermission:getPermission
      arguments:
        # arguments dictionary
    data "netbox_get_permission" "name" {
        # arguments
    }

    The following arguments are supported:

    CanAdd bool
    Whether can add is set.
    CanChange bool
    Whether can change is set.
    CanDelete bool
    Whether can delete is set.
    CanView bool
    Whether can view is set.
    Description string
    Enabled bool
    Whether the permission is in effect.
    GroupId double
    Id of the group.
    GroupName string
    Name of the group.
    Id double
    NetBox id.
    Name string
    ObjectType string
    Object type to match.
    ObjectTypeId double
    Id of the object type.
    ObjectTypeName double
    Name of the object types.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    UserId double
    Id of the user.
    UserName string
    Name of the user.
    CanAdd bool
    Whether can add is set.
    CanChange bool
    Whether can change is set.
    CanDelete bool
    Whether can delete is set.
    CanView bool
    Whether can view is set.
    Description string
    Enabled bool
    Whether the permission is in effect.
    GroupId float64
    Id of the group.
    GroupName string
    Name of the group.
    Id float64
    NetBox id.
    Name string
    ObjectType string
    Object type to match.
    ObjectTypeId float64
    Id of the object type.
    ObjectTypeName float64
    Name of the object types.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    UserId float64
    Id of the user.
    UserName string
    Name of the user.
    can_add bool
    Whether can add is set.
    can_change bool
    Whether can change is set.
    can_delete bool
    Whether can delete is set.
    can_view bool
    Whether can view is set.
    description string
    enabled bool
    Whether the permission is in effect.
    group_id number
    Id of the group.
    group_name string
    Name of the group.
    id number
    NetBox id.
    name string
    object_type string
    Object type to match.
    object_type_id number
    Id of the object type.
    object_type_name number
    Name of the object types.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user_id number
    Id of the user.
    user_name string
    Name of the user.
    canAdd Boolean
    Whether can add is set.
    canChange Boolean
    Whether can change is set.
    canDelete Boolean
    Whether can delete is set.
    canView Boolean
    Whether can view is set.
    description String
    enabled Boolean
    Whether the permission is in effect.
    groupId Double
    Id of the group.
    groupName String
    Name of the group.
    id Double
    NetBox id.
    name String
    objectType String
    Object type to match.
    objectTypeId Double
    Id of the object type.
    objectTypeName Double
    Name of the object types.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    userId Double
    Id of the user.
    userName String
    Name of the user.
    canAdd boolean
    Whether can add is set.
    canChange boolean
    Whether can change is set.
    canDelete boolean
    Whether can delete is set.
    canView boolean
    Whether can view is set.
    description string
    enabled boolean
    Whether the permission is in effect.
    groupId number
    Id of the group.
    groupName string
    Name of the group.
    id number
    NetBox id.
    name string
    objectType string
    Object type to match.
    objectTypeId number
    Id of the object type.
    objectTypeName number
    Name of the object types.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    userId number
    Id of the user.
    userName string
    Name of the user.
    can_add bool
    Whether can add is set.
    can_change bool
    Whether can change is set.
    can_delete bool
    Whether can delete is set.
    can_view bool
    Whether can view is set.
    description str
    enabled bool
    Whether the permission is in effect.
    group_id float
    Id of the group.
    group_name str
    Name of the group.
    id float
    NetBox id.
    name str
    object_type str
    Object type to match.
    object_type_id float
    Id of the object type.
    object_type_name float
    Name of the object types.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    user_id float
    Id of the user.
    user_name str
    Name of the user.
    canAdd Boolean
    Whether can add is set.
    canChange Boolean
    Whether can change is set.
    canDelete Boolean
    Whether can delete is set.
    canView Boolean
    Whether can view is set.
    description String
    enabled Boolean
    Whether the permission is in effect.
    groupId Number
    Id of the group.
    groupName String
    Name of the group.
    id Number
    NetBox id.
    name String
    objectType String
    Object type to match.
    objectTypeId Number
    Id of the object type.
    objectTypeName Number
    Name of the object types.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    userId Number
    Id of the user.
    userName String
    Name of the user.

    getPermission Result

    The following output properties are available:

    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.
    GroupIds List<double>
    Ids of the groups the permission is granted to.
    Groups List<double>
    Deprecated alias of group_ids.

    Deprecated: Deprecated

    Id double
    NetBox id.
    Name string
    ObjectTypes List<string>
    Object types the permission applies to, as app-labelled content types (dcim.device).
    Url string
    UserIds List<double>
    Ids of the users the permission is granted to.
    Users List<double>
    Deprecated alias of user_ids.

    Deprecated: Deprecated

    CanAdd bool
    Whether can add is set.
    CanChange bool
    Whether can change is set.
    CanDelete bool
    Whether can delete is set.
    CanView bool
    Whether can view is set.
    GroupId double
    Id of the group.
    GroupName string
    Name of the group.
    ObjectType string
    Object type to match.
    ObjectTypeId double
    Id of the object type.
    ObjectTypeName double
    Name of the object types.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    UserId double
    Id of the user.
    UserName string
    Name of the user.
    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.
    GroupIds []float64
    Ids of the groups the permission is granted to.
    Groups []float64
    Deprecated alias of group_ids.

    Deprecated: Deprecated

    Id float64
    NetBox id.
    Name string
    ObjectTypes []string
    Object types the permission applies to, as app-labelled content types (dcim.device).
    Url string
    UserIds []float64
    Ids of the users the permission is granted to.
    Users []float64
    Deprecated alias of user_ids.

    Deprecated: Deprecated

    CanAdd bool
    Whether can add is set.
    CanChange bool
    Whether can change is set.
    CanDelete bool
    Whether can delete is set.
    CanView bool
    Whether can view is set.
    GroupId float64
    Id of the group.
    GroupName string
    Name of the group.
    ObjectType string
    Object type to match.
    ObjectTypeId float64
    Id of the object type.
    ObjectTypeName float64
    Name of the object types.
    Q string
    Search term, matched against the fields NetBox searches for this object type.
    UserId float64
    Id of the user.
    UserName string
    Name of the user.
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    can_add bool
    Whether can add is set.
    can_change bool
    Whether can change is set.
    can_delete bool
    Whether can delete is set.
    can_view bool
    Whether can view is set.
    group_id number
    Id of the group.
    group_name string
    Name of the group.
    object_type string
    Object type to match.
    object_type_id number
    Id of the object type.
    object_type_name number
    Name of the object types.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    user_id number
    Id of the user.
    user_name string
    Name of the user.
    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.
    groupIds List<Double>
    Ids of the groups the permission is granted to.
    groups List<Double>
    Deprecated alias of group_ids.

    Deprecated: Deprecated

    id Double
    NetBox id.
    name String
    objectTypes List<String>
    Object types the permission applies to, as app-labelled content types (dcim.device).
    url String
    userIds List<Double>
    Ids of the users the permission is granted to.
    users List<Double>
    Deprecated alias of user_ids.

    Deprecated: Deprecated

    canAdd Boolean
    Whether can add is set.
    canChange Boolean
    Whether can change is set.
    canDelete Boolean
    Whether can delete is set.
    canView Boolean
    Whether can view is set.
    groupId Double
    Id of the group.
    groupName String
    Name of the group.
    objectType String
    Object type to match.
    objectTypeId Double
    Id of the object type.
    objectTypeName Double
    Name of the object types.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    userId Double
    Id of the user.
    userName String
    Name of the user.
    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.
    groupIds number[]
    Ids of the groups the permission is granted to.
    groups number[]
    Deprecated alias of group_ids.

    Deprecated: Deprecated

    id number
    NetBox id.
    name string
    objectTypes string[]
    Object types the permission applies to, as app-labelled content types (dcim.device).
    url string
    userIds number[]
    Ids of the users the permission is granted to.
    users number[]
    Deprecated alias of user_ids.

    Deprecated: Deprecated

    canAdd boolean
    Whether can add is set.
    canChange boolean
    Whether can change is set.
    canDelete boolean
    Whether can delete is set.
    canView boolean
    Whether can view is set.
    groupId number
    Id of the group.
    groupName string
    Name of the group.
    objectType string
    Object type to match.
    objectTypeId number
    Id of the object type.
    objectTypeName number
    Name of the object types.
    q string
    Search term, matched against the fields NetBox searches for this object type.
    userId number
    Id of the user.
    userName string
    Name of the user.
    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.

    Deprecated: Deprecated

    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.

    Deprecated: Deprecated

    can_add bool
    Whether can add is set.
    can_change bool
    Whether can change is set.
    can_delete bool
    Whether can delete is set.
    can_view bool
    Whether can view is set.
    group_id float
    Id of the group.
    group_name str
    Name of the group.
    object_type str
    Object type to match.
    object_type_id float
    Id of the object type.
    object_type_name float
    Name of the object types.
    q str
    Search term, matched against the fields NetBox searches for this object type.
    user_id float
    Id of the user.
    user_name str
    Name of the user.
    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.
    groupIds List<Number>
    Ids of the groups the permission is granted to.
    groups List<Number>
    Deprecated alias of group_ids.

    Deprecated: Deprecated

    id Number
    NetBox id.
    name String
    objectTypes List<String>
    Object types the permission applies to, as app-labelled content types (dcim.device).
    url String
    userIds List<Number>
    Ids of the users the permission is granted to.
    users List<Number>
    Deprecated alias of user_ids.

    Deprecated: Deprecated

    canAdd Boolean
    Whether can add is set.
    canChange Boolean
    Whether can change is set.
    canDelete Boolean
    Whether can delete is set.
    canView Boolean
    Whether can view is set.
    groupId Number
    Id of the group.
    groupName String
    Name of the group.
    objectType String
    Object type to match.
    objectTypeId Number
    Id of the object type.
    objectTypeName Number
    Name of the object types.
    q String
    Search term, matched against the fields NetBox searches for this object type.
    userId Number
    Id of the user.
    userName String
    Name of the user.

    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.1
    published on Monday, Nov 16, 2026 by e-breuninger

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial