Arango logo

ArangoDB 3.11 reached End of Life (EOL) and is no longer supported.

This documentation is outdated. Please see the most recent stable version.

Administration HTTP API

You can get information about ArangoDB servers, toggle the maintenance mode, shut down server nodes, and start actions like compaction

Information

Get the server version

GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_api/version
Returns the server name and version number.
Path Parameters
  • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

    Example: _system

Query Parameters
  • If set to true and if the user account you authenticate with has administrate access to the _system database, the response contains a details attribute with additional information about included components and their versions. The attribute names and internals of the details object may vary depending on platform and ArangoDB version.

HTTP Headers
    Responses
    • is returned in all cases.

        Response Body application/json object
      • An object with additional details like compile flags, dependency versions, and so on.

        Only returned if the details query parameter is set to true in the request.

        • The value is always: "64bit"

          The CPU architecture in terms of bitness.

        • Possible values: "true", "false"

          Whether the server binary has been compiled for an ARM CPU.

        • Possible values: "true", "false"

          Whether the server has been compiled with the ASAN address sanitizer enabled.

        • Possible values: "true", "false"

          Whether the server has assertions compiled in (only in development builds).

        • Possible values: "true", "false"

          Whether the server binary has been compiled with AVX instruction support.

        • Possible values: "true", "false"

          Whether the server binary has been compiled with AVX2 instruction support.

        • Which version of the Boost library is used.

        • The date when this binary was created.

        • Reference to the Git ID this was compiled from.

        • The compiler that has been used.

        • Possible values: "true", "false"

          Whether this build has code coverage instrumentation.

        • The C++ standards version.

        • The linked cURL version, or "none" if not linked.

        • Possible values: "true", "false"

          Whether this is a debug build, "false" for production binaries.

        • The value is always: "little"

          The byte order of the system, detected at runtime.

        • Reference to the enterprise Git ID this was compiled from.

        • The value is always: "enterprise"

          Only present if this is a build that includes the non-public enterprise code.

        • Possible values: "true", "false"

          Whether the facility to invoke fatal errors is compiled in, "false" for production binaries.

        • Which method is used to handle fd-sets, typically poll on Linux.

        • If not poll, the fd setsize is valid for the maximum number of file descriptors.

        • The full version string including the build ID and the versions of major dependencies.

        • The host ID.

        • The version of the bundled ICU library.

        • Possible values: "true", "false"

          Whether interprocedural optimization was enabled.

        • The ArangoSearch/IResearch library version.

        • Possible values: "true", "false"

          Whether the jemalloc memory allocator is used, typically "true"

        • Whether libunwind is linked for stack unwinding.

        • Possible values: "community", "enterprise"

          Whether this build of ArangoDB includes the non-public enterprise code. Reports "community" for the Community Edition and "enterprise" for the Enterprise Edition.

        • Possible values: "true", "false"

          Whether the server has been compiled in maintainer mode, "false" for production binaries.

        • Possible values: "true", "false"

          Whether the memory profiler is enabled.

        • Possible values: "server", "console", "script"

          The mode the server runs in.

        • Possible values: "true", "false"

          Whether NDEBUG was defined for the build.

        • The OpenSSL version at compile time.

        • The OpenSSL version at run time.

        • The compiler optimization flags used for this build.

        • Reference to the Git ID of the build environment this was compiled with.

        • The position-independent code setting.

        • The position-independent executable setting.

        • Possible values: "linux", "windows", "darwin"

          The operating system the server has been compiled for.

        • The value is always: "epoll"

        • Possible values: "true", "false"

          Whether replication2 is enabled.

        • The rocksdb version this release bundles.

        • Possible values: "SINGLE", "PRIMARY", "COORDINATOR", "AGENT"

          The server role.

          • "SINGLE": Standalone single server
          • "PRIMARY": DB-Server of a cluster
          • "COORDINATOR": Coordinator of a cluster
          • "AGENT": Part of the cluster’s Agency

        • The ArangoDB release version.

        • Number of bytes for integers.

        • Number of bytes for long integers.

        • Number of bytes for void pointers.

        • Whether the server binary has been compiled with SSE 4.2 instruction support.

        • Possible values: "true", "false"

          Whether this was compiled with the thread sanitizer.

        • Possible values: "true", "false"

          Whether this system supports unaligned memory accesses.

        • The bundled V8 JavaScript engine version.

        • The version of the used VelocyPack implementation.

        • The version of the bundled zlib compression library.

      • The value is always: "arango"

      • The server version string in the format major.minor.sub (e.g. 3.12.11). The major and minor parts are numeric, and sub is a number that may have a version suffix starting with a hyphen minus (e.g. 3.11.14-5 or 4.0.0-devel).

    Examples

    Return the version information

    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/version'
    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: 62
    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
    
    { 
      "server" : "arango", 
      "license" : "enterprise", 
      "version" : "3.11.14" 
    }

    Return the version information with details

    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/version?details=true'
    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: 1594
    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
    
    { 
      "server" : "arango", 
      "license" : "enterprise", 
      "version" : "3.11.14", 
      "details" : { 
        "architecture" : "64bit", 
        "arm" : "false", 
        "asan" : "false", 
        "assertions" : "false", 
        "avx" : "true", 
        "avx2" : "false", 
        "boost-version" : "1.78.0", 
        "build-date" : "2025-05-23 17:41:20", 
        "build-repository" : "refs/3.11.14 46e2b3087", 
        "compiler" : "clang [Ubuntu Clang 16.0.6 (23ubuntu4)]", 
        "coverage" : "false", 
        "cplusplus" : "202002", 
        "curl-version" : "none", 
        "debug" : "false", 
        "endianness" : "little", 
        "enterprise-build-repository" : "refs/3.11.14 633a631", 
        "enterprise-version" : "enterprise", 
        "failure-tests" : "false", 
        "fd-client-event-handler" : "poll", 
        "fd-setsize" : "1024", 
        "full-version-string" : "ArangoDB 3.11.14 enterprise [linux] 64bit, using jemalloc, build refs/3.11.14 46e2b3087, VPack 0.2.1, RocksDB 7.2.0, ICU 64.2, V8 7.9.317, OpenSSL 3.5.0 8 Apr 2025", 
        "icu-version" : "64.2", 
        "ipo" : "false", 
        "iresearch-version" : "1.3.0.0", 
        "jemalloc" : "true", 
        "libunwind" : "true", 
        "license" : "enterprise", 
        "maintainer-mode" : "false", 
        "memory-profiler" : "true", 
        "ndebug" : "true", 
        "openssl-version-compile-time" : "OpenSSL 3.5.0 8 Apr 2025", 
        "openssl-version-run-time" : "OpenSSL 3.5.0 8 Apr 2025", 
        "optimization-flags" : "-mfxsr -mmmx -msse -msse2 -mcx16 -msahf -mpopcnt -msse3 -msse4.1 -msse4.2 -mssse3 -mpclmul -mavx -mxsave", 
        "pic" : "2", 
        "pie" : "2", 
        "platform" : "linux", 
        "reactor-type" : "epoll", 
        "replication2-enabled" : "false", 
        "rocksdb-version" : "7.2.0", 
        "server-version" : "3.11.14", 
        "sizeof int" : "4", 
        "sizeof long" : "8", 
        "sizeof void*" : "8", 
        "sse42" : "true", 
        "tsan" : "false", 
        "unaligned-access" : "true", 
        "v8-version" : "7.9.317", 
        "vpack-version" : "0.2.1", 
        "zlib-version" : "1.2.13", 
        "mode" : "server", 
        "role" : "SINGLE", 
        "host" : "localhost" 
      } 
    }

    Get the storage engine type

    GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_api/engine
    Returns the name of the storage engine the server is configured to use and the index types it supports.
    Path Parameters
    • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

      Example: _system

    Query Parameters
      HTTP Headers
        Responses
        • Successfully retrieved the storage engine information.

            Response Body application/json object
          • The value is always: "rocksdb"

            The name of the storage engine.

          • An object describing what the storage engine supports.

            • An object describing the alternative names you can use for certain index types.

              • The keys are the alternative index type names and the values are the index types they refer to.

                • The value is always: "persistent"

                  The hash index type is an alias for persistent.

                • The value is always: "persistent"

                  The skiplist index type is an alias for persistent.

            • The value is always: false

              Whether the active storage engine support being inspected/repaired with the MMFiles datafile debugger.

            • Possible values in the array: "primary", "edge", "ttl", "persistent", "geo", "zkd", "inverted", "hash", "skiplist", "fulltext"

              A list of the index types you can use. vector is only included if the --vector-index startup option is enabled.

        • Missing read access to the given database.

            Response Body application/json object
          • The HTTP response status code.

            Example: 401

          • A flag indicating that an error occurred.

            Example: true

          • A descriptive error message.

          • The ArangoDB error number for the error that occurred.

        Examples

        Return the active storage engine:

        curl --header 'accept: application/json' --dump - 'http://localhost:8529/_api/engine'
        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: 212
        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
        
        { 
          "name" : "rocksdb", 
          "supports" : { 
            "dfdb" : false, 
            "indexes" : [ 
              "primary", 
              "edge", 
              "hash", 
              "skiplist", 
              "ttl", 
              "persistent", 
              "geo", 
              "fulltext", 
              "zkd", 
              "inverted" 
            ], 
            "aliases" : { 
              "indexes" : { 
                "hash" : "persistent", 
                "skiplist" : "persistent" 
              } 
            } 
          } 
        }

        Get the storage engine statistics

        GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_api/engine/stats
        Returns detailed statistics related to the RocksDB storage engine activity, including figures about data size, cache usage, individual column families, etc.
        Path Parameters
        • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database. If the --server.harden startup option is enabled, administrate access to the _system database is required.

          Example: _system

        Query Parameters
          HTTP Headers
            Responses
            • Successfully retrieved the storage engine statistics.

                Response Body application/json object
                A plethora of information about RocksDB.
            • The user account you authenticated with lacks read access to the specified database, the credentials are wrong, or the user account is inactive.

                Response Body application/json object
              • The HTTP response status code.

                Example: 401

              • A flag indicating that an error occurred.

                Example: true

              • A descriptive error message.

              • The ArangoDB error number for the error that occurred.

            • The --server.harden startup option is enabled but the user account you authenticated with lacks write access to the _system database.

                Response Body application/json object
              • The HTTP response status code.

                Example: 403

              • A flag indicating that an error occurred.

                Example: true

              • A descriptive error message.

              • The ArangoDB error number for the error that occurred.

            Get the system time

            GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/time
            The call returns an object with the time attribute. This contains the current system time as a Unix timestamp with microsecond precision.
            Path Parameters
            • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

              Example: _system

            Query Parameters
              HTTP Headers
                Responses
                • Time was returned successfully.

                    Response Body application/json object
                  • The HTTP response status code.

                    Example: 200

                  • A flag indicating that no error occurred.

                    Example: false

                  • The current system time as a Unix timestamp with microsecond precision of the server

                Get server status information

                GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/status
                Returns status information about the server.
                Path Parameters
                • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database. If the --server.harden startup option is enabled, administrate access to the _system database is required.

                  Example: _system

                Query Parameters
                  HTTP Headers
                    Responses
                    • Status information was returned successfully.

                        Response Body application/json object
                      • Information about the Agency. Cluster only (Coordinators and DB-Servers).

                        • Information about the communication with the Agency. Cluster only (Coordinators and DB-Servers).

                          • A list of possible Agency endpoints.

                      • Information about the Agents. Cluster only (Agents)

                        • The endpoint of the queried Agent.

                        • Server ID of the queried Agent.

                        • Server ID of the leading Agent.

                        • Whether the queried Agent is the leader.

                        • The current term number.

                      • Information about the Coordinators. Cluster only (Coordinators)

                        • The server ID of the Coordinator that is the Foxx master.

                        • Whether the queried Coordinator is the Foxx master.

                      • Whether the Foxx API is enabled.

                      • A host identifier defined by the HOST or NODE_NAME environment variable, or a fallback value using a machine identifier or the cluster/Agency address.

                      • A hostname defined by the HOSTNAME environment variable.

                      • ArangoDB Edition, either "community" or "enterprise".

                      • Either "server" or "console". Deprecated, use operationMode instead.

                      • Either "server" or "console".

                      • The process ID of arangod.

                      • The value is always: "arango"

                      • Information about the server status.

                        • The address of the server, e.g. tcp://[::1]:8530. Cluster only (Coordinators and DB-Servers).

                        • Whether the maintenance mode is enabled.

                        • The persisted ID, e. g. "CRDN-e427b441-5087-4a9a-9983-2fb1682f3e2a". Cluster only (Agents, Coordinators, and DB-Servers).

                        • Startup and recovery information.

                          You can check for changes to determine whether progress was made between two calls, but you should not rely on specific values as they may change between ArangoDB versions. The values are only expected to change during the startup and shutdown, i.e. while maintenance is true.

                          You need to start arangod with the --server.early-connections startup option enabled to be able to query the endpoint during the startup process. If authentication is enabled, then you need to use the super-user JWT for the request because the user management is not available during the startup.

                          • Internal name of the feature that is currently being prepared, started, stopped or unprepared.

                          • Name of the lifecycle phase the instance is currently in. Normally one of "in prepare", "in start", "in wait", "in shutdown", "in stop", or "in unprepare".

                          • Current recovery sequence number value, if the instance is currently recovering. If the instance is already past the recovery, this attribute will contain the last handled recovery sequence number.

                        • Whether writes are disabled.

                        • The reboot ID. Changes on every restart. Cluster only (Agents, Coordinators, and DB-Servers).

                        • Either "SINGLE", "COORDINATOR", "PRIMARY" (DB-Server), or "AGENT".

                        • The server ID, e.g. "CRDN-e427b441-5087-4a9a-9983-2fb1682f3e2a". Cluster only (Coordinators and DB-Servers).

                        • Either "STARTUP", "SERVING", or "SHUTDOWN". Cluster only (Coordinators and DB-Servers).

                        • Whether writes are enabled. Deprecated, use readOnly instead.

                      • The server version as a string.

                    Examples

                    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_admin/status'
                    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: 710
                    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
                    
                    { 
                      "server" : "arango", 
                      "version" : "3.11.14", 
                      "pid" : 243, 
                      "license" : "enterprise", 
                      "mode" : "server", 
                      "operationMode" : "server", 
                      "foxxApi" : true, 
                      "host" : "localhost", 
                      "hostname" : "dbe4acec7c06", 
                      "serverInfo" : { 
                        "progress" : { 
                          "phase" : "in wait", 
                          "feature" : "", 
                          "recoveryTick" : 0 
                        }, 
                        "maintenance" : false, 
                        "role" : "COORDINATOR", 
                        "writeOpsEnabled" : true, 
                        "readOnly" : false, 
                        "persistedId" : "CRDN-fe15e622-35ae-4157-8fee-14b0bca4fb2e", 
                        "rebootId" : 1, 
                        "address" : "tcp://localhost:8529", 
                        "serverId" : "CRDN-fe15e622-35ae-4157-8fee-14b0bca4fb2e", 
                        "state" : "SERVING" 
                      }, 
                      "coordinator" : { 
                        "foxxmaster" : "CRDN-a82d3b6c-7f7e-444f-991c-924847ec211d", 
                        "isFoxxmaster" : false 
                      }, 
                      "agency" : { 
                        "agencyComm" : { 
                          "endpoints" : [ 
                            "tcp://localhost:8531", 
                            "tcp://localhost:8541", 
                            "tcp://localhost:8551" 
                          ] 
                        } 
                      } 
                    }

                    Return whether or not a server is available

                    GET http://<EXTERNAL_ENDPOINT>:8529/_admin/server/availability

                    Return availability information about a server.

                    The response is a JSON object with an attribute “mode”. The “mode” can either be “readonly”, if the server is in read-only mode, or “default”, if it is not. Please note that the JSON object with “mode” is only returned in case the server does not respond with HTTP response code 503.

                    This is a public API so it does not require authentication. It is meant to be used only in the context of server monitoring.

                    Responses
                    • This API will return HTTP 200 in case the server is up and running and usable for arbitrary operations, is not set to read-only mode and is currently not a follower in case of an Active Failover deployment setup.

                    • HTTP 503 will be returned in case the server is during startup or during shutdown, is set to read-only mode or is currently a follower in an Active Failover deployment setup.

                      In addition, HTTP 503 will be returned in case the fill grade of the scheduler queue exceeds the configured high-water mark (adjustable via startup option --server.unavailability-queue-fill-grade), which by default is set to 75 % of the maximum queue length.

                    Get the required database version (deprecated)

                    GET http://<EXTERNAL_ENDPOINT>:8529/_admin/database/target-version
                    This endpoint is deprecated and should no longer be used. It is removed in ArangoDB v4.0. Use GET /_api/version instead.

                    Returns the database version that this server requires. The version is returned in the version attribute of the result.

                    Responses
                    • Is returned in all cases.

                    Get information about the deployment

                    GET http://<EXTERNAL_ENDPOINT>:8529/_db/_system/_admin/support-info

                    Retrieves deployment information for support purposes. The endpoint returns data about the ArangoDB version used, the host (operating system, server ID, CPU and storage capacity, current utilization, a few metrics) and the other servers in the deployment (in case of cluster deployments).

                    As this API may reveal sensitive data about the deployment, it can only be accessed from inside the _system database. In addition, there is a policy control startup option --server.support-info-api that controls if and to whom the API is made available.

                    Responses
                      • Response Body application/json object
                      • ISO 8601 datetime string of when the information was requested.

                      • An object with at least a type attribute, indicating the deployment mode.

                        In case of a "single" server, additional information is provided in the top-level host attribute.

                        In case of a "cluster", there is a servers object that contains a nested object for each Coordinator and DB-Server, using the server ID as key. Each object holds information about the ArangoDB instance as well as the host machine. There are additional attributes for the number of agents, coordinators, dbServers, and shards.

                      • An object that holds information about the ArangoDB instance as well as the host machine. Only set in case of single servers.

                    • The support info API is turned off.

                    Examples

                    Query support information from a single server

                    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_db/_system/_admin/support-info'
                    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: 1129
                    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
                    
                    { 
                      "deployment" : { 
                        "type" : "single" 
                      }, 
                      "host" : { 
                        "role" : "SINGLE", 
                        "maintenance" : false, 
                        "readOnly" : false, 
                        "version" : "3.11.14", 
                        "build" : "refs/3.11.14 46e2b3087", 
                        "license" : "enterprise", 
                        "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                        "platform" : "linux", 
                        "physicalMemory" : { 
                          "value" : 33089753088, 
                          "overridden" : false 
                        }, 
                        "numberOfCores" : { 
                          "value" : 8, 
                          "overridden" : false 
                        }, 
                        "processStats" : { 
                          "processUptime" : 48.31603527069092, 
                          "numberOfThreads" : 63, 
                          "virtualSize" : 1112117248, 
                          "residentSetSize" : 224190464 
                        }, 
                        "cpuStats" : { 
                          "userPercent" : 5.682688035629212, 
                          "systemPercent" : 2.47359659124365, 
                          "idlePercent" : 90.21160197630786, 
                          "iowaitPercent" : 1.459748518572048 
                        }, 
                        "engineStats" : { 
                          "cache.limit" : 7735567360, 
                          "cache.allocated" : 1281040, 
                          "rocksdb.estimate-num-keys" : 1574, 
                          "rocksdb.estimate-live-data-size" : 0, 
                          "rocksdb.live-sst-files-size" : 0, 
                          "rocksdb.block-cache-capacity" : 9282680832, 
                          "rocksdb.block-cache-usage" : 96, 
                          "rocksdb.free-disk-space" : 141042524160, 
                          "rocksdb.total-disk-space" : 155897610240 
                        } 
                      }, 
                      "date" : "2025-05-23T18:15:29Z" 
                    }

                    Query support information from a cluster

                    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_db/_system/_admin/support-info'
                    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: 6561
                    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
                    
                    { 
                      "deployment" : { 
                        "type" : "cluster", 
                        "servers" : { 
                          "CRDN-fe15e622-35ae-4157-8fee-14b0bca4fb2e" : { 
                            "id" : "CRDN-fe15e622-35ae-4157-8fee-14b0bca4fb2e", 
                            "alias" : "Coordinator0003", 
                            "endpoint" : "tcp://localhost:8529", 
                            "role" : "COORDINATOR", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 45.513792276382446, 
                              "numberOfThreads" : 39, 
                              "virtualSize" : 734941184, 
                              "residentSetSize" : 110473216 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            } 
                          }, 
                          "PRMR-6db41c10-5f6a-4dad-901e-eea212248fe3" : { 
                            "id" : "PRMR-6db41c10-5f6a-4dad-901e-eea212248fe3", 
                            "alias" : "DBServer0001", 
                            "endpoint" : "tcp://localhost:8540", 
                            "role" : "PRIMARY", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 46.50096297264099, 
                              "numberOfThreads" : 68, 
                              "virtualSize" : 960917504, 
                              "residentSetSize" : 170102784 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            }, 
                            "engineStats" : { 
                              "cache.limit" : 7735567360, 
                              "cache.allocated" : 1082848, 
                              "rocksdb.estimate-num-keys" : 211, 
                              "rocksdb.estimate-live-data-size" : 0, 
                              "rocksdb.live-sst-files-size" : 0, 
                              "rocksdb.block-cache-capacity" : 9282680832, 
                              "rocksdb.block-cache-usage" : 96, 
                              "rocksdb.free-disk-space" : 141042524160, 
                              "rocksdb.total-disk-space" : 155897610240 
                            } 
                          }, 
                          "CRDN-9ac983de-5219-4f03-bd7c-160ac5ec1767" : { 
                            "id" : "CRDN-9ac983de-5219-4f03-bd7c-160ac5ec1767", 
                            "alias" : "Coordinator0001", 
                            "endpoint" : "tcp://localhost:8539", 
                            "role" : "COORDINATOR", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 45.4971649646759, 
                              "numberOfThreads" : 39, 
                              "virtualSize" : 732581888, 
                              "residentSetSize" : 110039040 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            } 
                          }, 
                          "CRDN-a82d3b6c-7f7e-444f-991c-924847ec211d" : { 
                            "id" : "CRDN-a82d3b6c-7f7e-444f-991c-924847ec211d", 
                            "alias" : "Coordinator0002", 
                            "endpoint" : "tcp://localhost:8549", 
                            "role" : "COORDINATOR", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 46.4935359954834, 
                              "numberOfThreads" : 39, 
                              "virtualSize" : 734941184, 
                              "residentSetSize" : 110903296 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            } 
                          }, 
                          "PRMR-21cb1072-7e9e-49b2-a09a-0939cdc68525" : { 
                            "id" : "PRMR-21cb1072-7e9e-49b2-a09a-0939cdc68525", 
                            "alias" : "DBServer0002", 
                            "endpoint" : "tcp://localhost:8550", 
                            "role" : "PRIMARY", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 47.49887037277222, 
                              "numberOfThreads" : 68, 
                              "virtualSize" : 970878976, 
                              "residentSetSize" : 171732992 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            }, 
                            "engineStats" : { 
                              "cache.limit" : 7735567360, 
                              "cache.allocated" : 1082848, 
                              "rocksdb.estimate-num-keys" : 199, 
                              "rocksdb.estimate-live-data-size" : 0, 
                              "rocksdb.live-sst-files-size" : 0, 
                              "rocksdb.block-cache-capacity" : 9282680832, 
                              "rocksdb.block-cache-usage" : 96, 
                              "rocksdb.free-disk-space" : 141042524160, 
                              "rocksdb.total-disk-space" : 155897610240 
                            } 
                          }, 
                          "PRMR-23a9538c-b4d7-4f6c-9a41-0fcb3f0776fd" : { 
                            "id" : "PRMR-23a9538c-b4d7-4f6c-9a41-0fcb3f0776fd", 
                            "alias" : "DBServer0003", 
                            "endpoint" : "tcp://localhost:8530", 
                            "role" : "PRIMARY", 
                            "maintenance" : false, 
                            "readOnly" : false, 
                            "version" : "3.11.14", 
                            "build" : "refs/3.11.14 46e2b3087", 
                            "license" : "enterprise", 
                            "os" : "Linux version 6.8.0-1019-aws (buildd@lcy02-amd64-058) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #21~22.04.1-Ubuntu SMP Thu Nov  7 17:33:30 UTC 2024", 
                            "platform" : "linux", 
                            "physicalMemory" : { 
                              "value" : 33089753088, 
                              "overridden" : false 
                            }, 
                            "numberOfCores" : { 
                              "value" : 8, 
                              "overridden" : false 
                            }, 
                            "processStats" : { 
                              "processUptime" : 46.51739144325256, 
                              "numberOfThreads" : 68, 
                              "virtualSize" : 958296064, 
                              "residentSetSize" : 168275968 
                            }, 
                            "cpuStats" : { 
                              "userPercent" : 5.683576081661929, 
                              "systemPercent" : 2.4740524250745373, 
                              "idlePercent" : 90.21031051445517, 
                              "iowaitPercent" : 1.4597016363431985 
                            }, 
                            "engineStats" : { 
                              "cache.limit" : 7735567360, 
                              "cache.allocated" : 1082848, 
                              "rocksdb.estimate-num-keys" : 12, 
                              "rocksdb.estimate-live-data-size" : 0, 
                              "rocksdb.live-sst-files-size" : 0, 
                              "rocksdb.block-cache-capacity" : 9282680832, 
                              "rocksdb.block-cache-usage" : 96, 
                              "rocksdb.free-disk-space" : 141042524160, 
                              "rocksdb.total-disk-space" : 155897610240 
                            } 
                          } 
                        }, 
                        "agents" : 3, 
                        "coordinators" : 3, 
                        "dbServers" : 3, 
                        "shards" : { 
                          "databases" : 1, 
                          "collections" : 17, 
                          "shards" : 30, 
                          "leaders" : 17, 
                          "realLeaders" : 5, 
                          "followers" : 13, 
                          "servers" : 3 
                        } 
                      }, 
                      "date" : "2025-05-23T18:15:29Z" 
                    }

                    Server mode

                    Return whether or not a server is in read-only mode

                    GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/server/mode

                    Return mode information about a server. The json response will contain a field mode with the value readonly or default. In a read-only server all write operations will fail with an error code of 1004 (ERROR_READ_ONLY). Creating or dropping of databases and collections will also fail with error code 11 (ERROR_FORBIDDEN).

                    This API requires authentication.

                    Path Parameters
                    • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

                      Example: _system

                    Query Parameters
                      HTTP Headers
                        Responses
                        • This API will return HTTP 200 if everything is ok

                        Set the server mode to read-only or default

                        PUT http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/server/mode

                        Update mode information about a server. The JSON response will contain a field mode with the value readonly or default. In a read-only server all write operations will fail with an error code of 1004 (ERROR_READ_ONLY). Creating or dropping of databases and collections will also fail with error code 11 (ERROR_FORBIDDEN).

                        This is a protected API. It requires authentication and administrative server rights.

                        Path Parameters
                        • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database and administrate access to the _system database.

                          Example: _system

                        Query Parameters
                          HTTP Headers
                            Request Body application/json object
                            • The mode of the server readonly or default.

                            Responses
                            • This API will return HTTP 200 if everything is ok

                            • if the request was not authenticated as a user with sufficient rights

                            License

                            The endpoints for license management allow you to view the current license status and update the license of your ArangoDB Enterprise Edition deployment.

                            Get information about the current license

                            GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/license
                            View the license information and status of an Enterprise Edition instance. Can be called on single servers, Coordinators, and DB-Servers.
                            Path Parameters
                            • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database. If the --server.harden startup option is enabled, administrate access to the _system database is required.

                              Example: _system

                            Query Parameters
                              HTTP Headers
                                Responses
                                • Returns the license information.

                                    Response Body application/json object
                                  • The properties of the license.

                                    • The expires key lists the expiry date as Unix timestamp (seconds since January 1st, 1970 UTC).

                                      Example: 1683173040

                                  • The hash value of the license.

                                    Example: "982db5...44f3"

                                  • The encrypted license key in Base64 encoding, or "none" in the Community Edition.

                                    Example: "V0h/W...wEDw=="

                                  • Possible values: "good", "expiring", "read-only"

                                    The status attribute allows you to confirm the state of the applied license at a glance.

                                    • good: The license is still valid for more than a week.
                                    • expiring: The license is valid for less than a week.
                                    • read-only: The license has expired. The instance is now restricted to read-only mode.

                                    Example: "good"

                                  • Whether the server is performing a database upgrade.

                                    Example: false

                                  • The license version number.

                                    Example: 1

                                Examples

                                curl --header 'accept: application/json' --dump - 'http://localhost:8529/_admin/license'
                                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: 162
                                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
                                
                                { 
                                  "upgrading" : false, 
                                  "features" : { 
                                    "expires" : 1748034885 
                                  }, 
                                  "license" : "JD4EOXdkc1ZVOnlUBVR8UwNBZ1gHfSddW11kGWQMXE52GWAHeHEpCHwFIH8ydQlf", 
                                  "version" : 1, 
                                  "status" : "expiring" 
                                }

                                Set a new license

                                PUT http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/license
                                Set a new license for an Enterprise Edition instance. Can be called on single servers, Coordinators, and DB-Servers.
                                Path Parameters
                                • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database. If the --server.harden startup option is enabled, administrate access to the _system database is required.

                                  Example: _system

                                Query Parameters
                                • Whether to change the license even if it expires sooner than the current one.

                                HTTP Headers
                                  Request Body application/json string
                                    The request body has to contain the Base64-encoded license string wrapped in double quotes.

                                    Example: "eyJncmFudCI6...(Base64-encoded license string)..."

                                  Responses
                                  • License successfully deployed.

                                      Response Body application/json object
                                      • The HTTP response status code.

                                        Example: 201

                                      • A flag indicating that no error occurred.

                                        Example: false

                                  • If the license expires earlier than the previously installed one, or if the supplied license string is invalid.

                                      Response Body application/json object
                                    • The HTTP response status code.

                                      Example: 400

                                    • A flag indicating that an error occurred.

                                      Example: true

                                    • A descriptive error message.

                                    • The ArangoDB error number for the error that occurred.

                                  • If you try to apply a license in the Community Edition.

                                      Response Body application/json object
                                    • The HTTP response status code.

                                      Example: 501

                                    • A flag indicating that an error occurred.

                                      Example: true

                                    • A descriptive error message.

                                    • The ArangoDB error number for the error that occurred.

                                  Examples

                                  curl --header 'accept: application/json' --dump - --data '"eyJncmFudCI6...(Base64-encoded license string)..."' -X PUT http://localhost:8529/_admin/license
                                  
                                  Show output
                                  HTTP/1.1 201 Created
                                  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: 37
                                  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
                                  
                                  {
                                    "result": {
                                      "error": false,
                                      "code": 201
                                    }
                                  }
                                  

                                  Shutdown

                                  Start the shutdown sequence

                                  DELETE http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/shutdown
                                  This call initiates a clean shutdown sequence. Requires administrative privileges.
                                  Path Parameters
                                  • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database and administrate access to the _system database.

                                    Example: _system

                                  Query Parameters
                                  • If set to true, this initiates a soft shutdown. This is only available on Coordinators. When issued, the Coordinator tracks a number of ongoing operations, waits until all have finished, and then shuts itself down normally. It will still accept new operations.

                                    This feature can be used to make restart operations of Coordinators less intrusive for clients. It is designed for setups with a load balancer in front of Coordinators. Remove the designated Coordinator from the load balancer before issuing the soft-shutdown. The remaining Coordinators will internally forward requests that need to be handled by the designated Coordinator. All other requests will be handled by the remaining Coordinators, reducing the designated Coordinator’s load.

                                    The following types of operations are tracked:

                                    • AQL cursors (in particular streaming cursors)
                                    • Transactions (in particular stream transactions)
                                    • Pregel runs (conducted by this Coordinator)
                                    • Ongoing asynchronous requests (using the x-arango-async: store HTTP header)
                                    • Finished asynchronous requests, whose result has not yet been collected
                                    • Queued low priority requests (most normal requests)
                                    • Ongoing low priority requests

                                  HTTP Headers
                                    Responses
                                    • is returned in all cases, OK will be returned in the result buffer on success.

                                    Query the soft shutdown progress

                                    GET http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/shutdown

                                    This call reports progress about a soft Coordinator shutdown (see documentation of DELETE /_admin/shutdown?soft=true). In this case, the following types of operations are tracked:

                                    • AQL cursors (in particular streaming cursors)
                                    • Transactions (in particular stream transactions)
                                    • Pregel runs (conducted by this Coordinator)
                                    • Ongoing asynchronous requests (using the x-arango-async: store HTTP header)
                                    • Finished asynchronous requests, whose result has not yet been collected
                                    • Queued low priority requests (most normal requests)
                                    • Ongoing low priority requests

                                    This API is only available on Coordinators.

                                    Path Parameters
                                    • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database and administrate access to the _system database.

                                      Example: _system

                                    Query Parameters
                                      HTTP Headers
                                        Responses
                                        • The response indicates the fact that a soft shutdown is ongoing and the number of active operations of the various types. Once all numbers have gone to 0, the flag allClear is set and the Coordinator shuts down automatically.

                                            Response Body application/json object
                                          • Number of AQL cursors that are still active.

                                          • Whether all active operations finished.

                                          • Number of finished asynchronous requests, whose result has not yet been collected.

                                          • Number of queued low priority requests.

                                          • Number of ongoing low priority requests.

                                          • Number of ongoing asynchronous requests.

                                          • Number of ongoing Pregel jobs.

                                          • Whether a soft shutdown of the Coordinator is in progress.

                                          • Number of ongoing transactions.

                                        Miscellaneous actions

                                        Compact all databases

                                        PUT http://<EXTERNAL_ENDPOINT>:8529/_admin/compact
                                        This command can cause a full rewrite of all data in all databases, which may take very long for large databases. It should thus only be used with care and only when additional I/O load can be tolerated for a prolonged time.

                                        This endpoint can be used to reclaim disk space after substantial data deletions have taken place, by compacting the entire database system data.

                                        The endpoint requires superuser access.

                                        Request Body application/json object
                                        • whether or not compacted data should be moved to the minimum possible level.

                                        • Whether or not to compact the bottommost level of data.

                                        Responses
                                        • Compaction started successfully

                                        • if the request was not authenticated as a user with sufficient rights

                                        Examples

                                        curl -X PUT --header 'accept: application/json' --dump - 'http://localhost:8529/_admin/compact'
                                        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: 2
                                        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
                                        
                                        { 
                                        }

                                        Reload the routing table

                                        POST http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/routing/reload
                                        Reloads the routing information from the _routing system collection if it exists, and makes Foxx rebuild its local routing table on the next request.
                                        Path Parameters
                                        • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

                                          Example: _system

                                        Query Parameters
                                          HTTP Headers
                                            Responses
                                            • The routing information has been reloaded successfully.

                                            Echo a request

                                            POST http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/echo
                                            The call returns an object with the servers request information
                                            Path Parameters
                                            • The name of a database. Which database you use doesn’t matter as long as the user account you authenticate with has at least read access to this database.

                                              Example: _system

                                            Query Parameters
                                              HTTP Headers
                                                Request Body application/octet-stream
                                                  The request body can be of any type and is simply forwarded.
                                                Responses
                                                • Echo was returned successfully.

                                                    Response Body application/json object
                                                  • Whether the session is authorized

                                                  • Attributes of the client connection

                                                    • The IP address of the client

                                                    • A server generated ID

                                                    • The port of the TCP connection on the client-side

                                                  • A list of the cookies you sent

                                                  • The name of the database this request was executed on

                                                  • The list of the HTTP headers you sent

                                                  • Contents of the server internals struct

                                                  • Whether the current user is an administrator

                                                  • An object containing the query parameters

                                                  • The relative path of this request (decoded, excluding /_admin/echo)

                                                  • The type of the socket, one of "tcp/ip", "unix", "unknown"

                                                  • The prefix of the database

                                                  • The transport protocol, one of "http", "https", "velocystream"

                                                  • The sent payload as a JSON-encoded Buffer object

                                                  • A list of the percent-encoded URL path suffixes

                                                  • Stringified version of the request body you sent

                                                  • The HTTP method that was used for the request ("POST"). The endpoint can be queried using other verbs, too ("GET", "PUT", "PATCH", "DELETE").

                                                  • Attributes of the server connection

                                                    • The bind address of the endpoint this request was sent to

                                                    • The endpoint this request was sent to

                                                    • The port this request was sent to

                                                  • A list of the decoded URL path suffixes. You can query the endpoint with arbitrary suffixes, e.g. /_admin/echo/foo/123

                                                  • The raw request URL

                                                  • The name of the current user that sent this request

                                                Execute a script

                                                POST http://<EXTERNAL_ENDPOINT>:8529/_db/:database-name/_admin/execute

                                                Executes the JavaScript code in the body on the server as the body of a function with no arguments. If you have a return statement then the return value you produce will be returned as content type application/json. If the parameter returnAsJSON is set to true, the result will be a JSON object describing the return value directly, otherwise a string produced by JSON.stringify will be returned.

                                                Note that this API endpoint is available if the server has been started with the --javascript.allow-admin-execute startup options enabled.

                                                The default value of this option is false, which disables the execution of user-defined code and disables this API endpoint entirely. This is also the recommended setting for production.

                                                Path Parameters
                                                • The name of the database.

                                                  Example: _system

                                                Query Parameters
                                                  HTTP Headers
                                                    Request Body text/javascript
                                                      The request body is the JavaScript code to be executed.
                                                    Responses
                                                    • is returned when everything went well, or if a timeout occurred. In the latter case a body of type application/json indicating the timeout is returned. depending on returnAsJSON this is a json object or a plain string.

                                                    • is returned if ArangoDB is not running in cluster mode.

                                                    • is returned if ArangoDB was not compiled for cluster operation.

                                                    Endpoints

                                                    The /_api/endpoint endpoint is deprecated. For cluster deployments, you can use /_api/cluster/endpoints instead to find all current Coordinator endpoints. See Cluster.

                                                    An ArangoDB server can listen for incoming requests on multiple endpoints.

                                                    The endpoints are normally specified either in the arangod configuration file or on the command-line, using the --server.endpoint startup option. The default endpoint for ArangoDB is tcp://127.0.0.1:8529 (IPv4 localhost on port 8529 over the HTTP protocol).

                                                    Note that all endpoint management operations can only be accessed via the default _system database and none of the other databases.

                                                    List the endpoints of a single server (deprecated)

                                                    GET http://<EXTERNAL_ENDPOINT>:8529/_db/_system/_api/endpoint
                                                    This endpoint should no longer be used. It is considered as deprecated from version 3.4.0 on.

                                                    Returns an array of all configured endpoints the server is listening on.

                                                    The result is a JSON array of JSON objects, each with "entrypoint" as the only attribute, and with the value being a string describing the endpoint.

                                                    Retrieving the array of all endpoints is allowed in the system database only. Calling this action in any other database will make the server return an error.
                                                    Responses
                                                    • is returned when the array of endpoints can be determined successfully.

                                                    • is returned if the action is not carried out in the system database.

                                                    • The server will respond with HTTP 405 if an unsupported HTTP method is used.

                                                    Examples

                                                    curl --header 'accept: application/json' --dump - 'http://localhost:8529/_db/_system/_api/endpoint'
                                                    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: 36
                                                    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
                                                    
                                                    [ 
                                                      { 
                                                        "endpoint" : "http://0.0.0.0:8529" 
                                                      } 
                                                    ]