Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vladimir
noc
Commits
03e736a3
Commit
03e736a3
authored
Sep 01, 2009
by
Dmitry Volodin
Browse files
IGetLocalUsers interface
parent
cdf15817
Changes
2
Hide whitespace changes
Inline
Side-by-side
sa/interfaces/__init__.py
View file @
03e736a3
...
...
@@ -16,3 +16,5 @@ from noc.sa.interfaces.iping import IPing
from
noc.sa.interfaces.igetarp
import
IGetARP
from
noc.sa.interfaces.icommands
import
ICommands
from
noc.sa.interfaces.igetdhcpbinding
import
IGetDHCPBinding
# User Management
from
noc.sa.interfaces.igetlocalusers
import
IGetLocalUsers
sa/interfaces/igetlocalusers.py
0 → 100644
View file @
03e736a3
# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## IGetUsers interface
##----------------------------------------------------------------------
## Copyright (C) 2007-2009 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
"""
"""
from
base
import
*
##
## Commonly accepted classes are:
## superuser, operator
##
##
class
IGetLocalUsers
(
Interface
):
returns
=
ListOfParameter
(
element
=
DictParameter
(
attrs
=
{
"username"
:
StringParameter
(),
"class"
:
StringParameter
(),
"is_active"
:
BooleanParameter
(
default
=
True
),
}))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment