Skip to content

Server Management

Francis Chuang edited this page May 19, 2013 · 2 revisions

Paradox comes with methods to manage users and server administration.

Users

Currently, ArangoDB does not perform any authentication when clients connect to the server. Nevertheless, it has a users infrastructure implemented.

The following demonstrates how to manage users:

$client->createUser('john', 'password', true, array('age' => 20)); //Create a user
$client->changePassword('john', 'password1'); //Change the password
$client->setUserActive('john', false); //Disable the account
$client->updateUserData('john', array('age' => 25)); //Update the user data
$info = $client->getUserInfo('john'); //Get info about the user

Managing Server Features

$client->getVersion(); //Get the server version
$client->getTime(); //Get the server time
$client->getServerInfo(); //Get detailed info about the server

User Defined AQL Functions

$client->createAQLFunction('mynamespace:helloworld', 'function(){ return "hello world!"}'); //Register a function
$client->listAQLFunctions(); //List all registered functions
$client->listAQLFunctions('mynamespace'); //List all registered functions in 'mynamespace'
$client->deleteAQLFunction('mynamespace:helloworld'); //Delete the function
$client->deleteAQLFunctionsByNamespace('mynamespace'); //Delete all functions in the 'mynamespace' namespace if they exist

Statistics

Statistics are coming soon.

Clone this wiki locally