git clone https://vikonnikov@bitbucket.org/vms_software/webui.connector.git
cd webui.connector
python setup.py install
# Import library
import pywebui
# Create connection object
c = pywebui.Connector('http://10.11.102.21:8082')
# Authenticate
c.login('testuser', 'testuser')
# Retrieve list of users
c.get_users()
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
print(c.get_users())
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
print(c.get_user('testuser'))
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.create_user(
def_priv = ["NETMBX","TMPMBX"],
device = "SYS$SYSDEVICE",
directory = "[testuser1]",
flags = ["DISUSER"],
owner = "testuser1",
password = "asd123asd123",
pwd_expired = 0,
priv = ["NETMBX","TMPMBX"],
username = "testuser1",
uic = ["310","77"]
# account = "testusr1",
)
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.edit_user("testuser1",
owner = "testuser2",
account="testusr2")
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.duplicate_user('testuser1', 'testuser2', ["312","77"])
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.delete_user('testuser1')
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.disable_user('testuser1')
c = pywebui.Connector('http://10.11.102.21:8082')
c.login('testuser', 'testuser')
c.enable_user('testuser1')