cterasdk.edge.users module

class cterasdk.edge.users.Users(gateway)

Bases: cterasdk.edge.base_command.BaseCommand

Gateway Users configuration APIs

add(username, password, full_name=None, email=None, uid=None)

Add a user of the Gateway

Parameters:
  • username (str) – User name for the new user
  • password (str) – Password for the new user
  • full_name (str,optional) – The full name of the new user, defaults to None
  • email (str,optional) – E-mail address of the new user, defaults to None
  • uid (str,optional) – The uid of the new user, defaults to None
add_first_user(username, password, email='')

Add the first user of the Gateway and login

Parameters:
  • username (str) – User name for the new user
  • password (str) – Password for the new user
  • email (str,optional) – E-mail address of the new user, defaults to an empty string
delete(username)

Delete an existing user

Parameters:username (str) – User name of the user to delete
get(name=None)

Get User. If a user name was not passed as an argument, a list of all local users will be retrieved :param str,optional name: Name of the user

modify(username, password=None, full_name=None, email=None, uid=None)

Modify an existing user of the Gateway

Parameters:
  • username (str) – User name to modify
  • password (str,optional) – New password, defaults to None
  • full_name (str,optional) – The full name of the user, defaults to None
  • email (str,optional) – E-mail address of the user, defaults to None
  • uid (str,optional) – The uid of the user, defaults to None