role.perms

The role.perms command lists available permissions for a role.

TR50 Request


                        {
  "cmd": {
    "command": "role.perms"
  }
}
      

Request Parameters

The command takes no parameters.

TR50 Response


                        {
  "cmd": {
    "success": true,
    "params": {
      "app": ["create", "delete", "find", "list", "update"],
      "cellular": ["find", "list", ...],
      ...
    }
  }
}
      

If the command is sent successfully a success message and the services and service methods are returned. Otherwise, an error and error message will be returned.

Response Parameters

The response is an object that contains the names of all available services. Each service, in turn, contains an array of the methods that are offered by this service.