Development Kit Js

Administration APIs

APIs usage for interaction with system admin services

DirecAdmin - system admin APIs

Import admin module

        import { direcadmin as da} from 'direcbase';

      

List of methods

  • Model admin methods
    • editModel: create or delete a data model (table/view definition)
    • editRules: edit data access rules select/insert/edit/delete for each data model
    • deleteModel: delete a data model
  • User admin methods
    • createUser: create user
    • editUser: edit user data
    • deleteUser: delete user
    • resetUserPwd: reset user password
  • System admin methods
    • getMetrics: get system statistics
    • getEnv: get environment parameters
    • setEnv: set environment parameters