File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/com/arangodb Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3434import com .arangodb .entity .ArangoDBVersion ;
3535import com .arangodb .entity .LogEntity ;
3636import com .arangodb .entity .LogLevelEntity ;
37+ import com .arangodb .entity .ServerRole ;
3738import com .arangodb .entity .UserEntity ;
3839import com .arangodb .internal .ArangoDBConstants ;
3940import com .arangodb .internal .ArangoExecutorAsync ;
@@ -461,6 +462,15 @@ public CompletableFuture<ArangoDBVersion> getVersion() {
461462 return db ().getVersion ();
462463 }
463464
465+ /**
466+ * Returns the server role.
467+ *
468+ * @return the server role
469+ */
470+ public CompletableFuture <ServerRole > getRole () {
471+ return executor .execute (getRoleRequest (), getRoleResponseDeserializer ());
472+ }
473+
464474 /**
465475 * Create a new user. This user will not have access to any database. You need permission to the _system database in
466476 * order to execute this call.
You can’t perform that action at this time.
0 commit comments