Skip to content

System Routes ​

RouteAccessAnswer
GET /versionpublicname, version, build date of the server; since 2.8 also core: { name, version }, the server core that runs (the name and version above are the ones of the application)
GET /system/capabilitieslogged infeatures, limits and the denied aggregation operators
GET /system/infoadminMongoDB version (cached for an hour)
GET /system/statsadminuptime, connections, operation counters, replica set
GET /system/settingsadminsettings overview
GET /system/configurations, PATCH .../{key}, DELETE .../{key} (2.6)adminconfiguration
GET /system/clusteradminthis process (there is no cluster)
/system/jobs/*adminjobs
/system/monitoring/*adminmetrics, with the feature metrics() (404 without)
DELETE /systemadminstops the standalone server. An embedded server answers 400
GET /docs/docs.yamlpublicthe OpenAPI spec with the name, version and path of this server (DOCS_OPENAPI)
GET /docspublicScalar API reference (DOCS_SWAGGER)

Capabilities ​

A client can adapt to the server it talks to:

json
{
  "serverVersion": "2.0.0",
  "mongoDbMajor": 7,
  "features": ["permissions", "count", "searchInBody", "export", "import", "..."],
  "limits": {
    "importMaxBytes": 1073741824, "bodyMaxBytes": 67108864, "pagingMaxRows": 0,
    "exportMaxDocuments": 0, "gridfsUploadMaxBytes": 0, "grantDeniedStatus": 403
  },
  "aggregationStagesDenied": ["$accumulator", "$function", "$out"]
}

limits (2.6: all of them, for every user; 0 is no limit) are the limits of the server. features lists the features of this version: permissions, count, searchInBody, manyFilter, aggregateFilter, insertManyUnordered, collectionsInfo, collectionsInfoDatabase, fieldsDetail, indexDetails, indexOrderedCreate, collectionRename, collectionCopy, extendedJsonWrite, extendedJsonRead, export, import, systemInfo, systemStats and capabilities. A server without the route (404) is older. The opt-in auth features are listed only when they are on: authSessions (3.0, AUTH_SESSIONS), and since 3.1.0 authRegistration:open or authRegistration:invite (AUTH_REGISTRATION), authRequireVerifiedEmail, authPasswordReset and authPasswordless — a UI shows the matching forms without guessing.

Statistics ​

json
{
  "uptimeSeconds": 86400,
  "connections": { "current": 12, "available": 838848, "totalCreated": 340 },
  "opcounters": { "insert": 10, "query": 200, "update": 5, "delete": 1, "getmore": 0, "command": 4000 },
  "partial": false
}

The operation counters are totals since the database server started, so compute rates from two reads. Members of a replica set also get replicaSet (name, state, memberCount, healthyMembers). If the database user may not read the server status (it needs clusterMonitor), the answer is partial: true without these numbers.

Released under the MIT License.