Skip to content

Health check HTTP request #661

Closed Answered by lvca
Walker555 asked this question in Q&A
Dec 8, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You can call the /server/ HTTP API:

curl -X GET http://localhost:2480/api/v1/server --user root:arcadedb-password

Look at: https://docs.arcadedb.com/#HTTP-ServerInfo

Unfortunately, it requires a server user. We believe it's risky to expose server information to the public for attacks.

Apart from the root user created the first time you run the server, how do you create a new user? Unfortunately, we didn't provide a script to manage users easily. We should do that from the console. I'm going to open an issue about it.

Via code:

ArcadeDBServer server = new ArcadeDBServer();
server.start();
...
server.getSecurity().createUser(new JSONObject().put("name", "elon").put("password", SECURITY.enco…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lvca
Comment options

lvca Dec 8, 2022
Maintainer

@gramian
Comment options

gramian Dec 8, 2022
Collaborator

@Walker555
Comment options

@lvca
Comment options

lvca Dec 9, 2022
Maintainer

@lvca
Comment options

lvca Dec 9, 2022
Maintainer

Answer selected by lvca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request question Further information is requested
3 participants