Get All Databases on a Host

Base URL:



Retrieve all databases running on the specified host.

Request Path Parameters

Parameter Required/Optional Description
GROUP-ID Required ID of the group that owns this MongoDB process.
HOST-ID Required ID of the host running the MongoDB process.

Request Query Parameters

This endpoint does not use HTTP query parameters.

Request Body Parameters

This endpoint does not use HTTP request body parameters.


The HTTP response contains the totalCount of the databases running on the host and a results array containing a document for each of the databases. Each document contains the following elements:

Name Type Description
databaseName string The name of the database.
links array Links to the group that the database belongs to, the MongoDB host running the database, and database measurements. The relations between URLs are explained in the Web Linking Specification.

Example Request

curl -i -u "username:apiKey" --digest ""

Example Response

HTTP/1.1 200 OK

  "links" : [ ... ],
  "results" : [ {
    "databaseName" : "local",
    "links" : [ ... ]
  }, {
    "databaseName" : "production",
    "links" : [ ... ]
  }, {
    "databaseName" : "test",
    "links" : [ ... ]
  }, ],
  "totalCount" : 3