/** * Lists disk and bandwidth usage for all visible users. * Disk usage is in kilobytes; bandwidth usage is in bytes since the start of the billing cycle. * In most cases, bandwidth usage will appear as zero here. * * @return Dreamhost\HttpClient\Response */ public static function userUsage() { return parent::runCommand('account-user_usage'); }
/** * List all available keys * * @return Dreamhost\HttpClient\Response */ public static function listKeys() { return parent::runCommand('api-list_keys'); }
/** * Remove a MySQL user from a database * * @param String $database * @param String $user * @param array $permissions * @return Dreamhost\HttpClient\Response */ public static function removeUser($database, $user, $permissions = []) { $params = array_merge(['db' => $database, 'user' => $user], self::preparePermissions($permissions)); return parent::runCommand('mysql-remove_user', $params); }