ArangoDB 3.11 reached End of Life (EOL) and is no longer supported.
This documentation is outdated. Please see the most recent stable version.
Other Replication Commands
Get a server’s ID as used by other endpoints of the replication HTTP interface
Get the replication server ID
GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_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.
Query Parameters
HTTP Headers
Examples
curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/replication/server-id'Show output
HTTP/1.1 200 OK
content-type: application/json
cache-control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0
connection: Keep-Alive
content-length: 30
content-security-policy: frame-ancestors 'self'; form-action 'self';
expires: 0
pragma: no-cache
server: ArangoDB
strict-transport-security: max-age=31536000 ; includeSubDomains
x-arango-queue-time-seconds: 0.000000
x-content-type-options: nosniff
{
"serverId" : "114433185744346"
}