Other Replication Commands

Return server id

fetch this server’s unique identifier

GET /_api/replication/server-id

Returns the servers id. The id is also returned by other replication API methods, and this method is an easy means of determining a server’s id.

The body of the response is a JSON object with the attribute serverId. The server id is returned as a string.

Responses

HTTP 200: is returned if the request was executed successfully.

HTTP 405: is returned when an invalid HTTP method is used.

HTTP 500: is returned if an error occurred while assembling the response.

Examples

shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_api/replication/server-id

HTTP/1.1 200 OK
content-type: application/json
connection: Keep-Alive
content-length: 28
server: ArangoDB
x-arango-queue-time-seconds: 0.000000
x-content-type-options: nosniff

{ 
  "serverId" : "6285329049867" 
}