Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Databases

Retrieves the databases running on a MongoDB process.

Endpoints

Get All Databases

GET /api/public/v1.0/groups/GROUP-ID/hosts/HOST-ID/databases

Get a Single Database

GET /api/public/v1.0/groups/GROUP-ID/hosts/HOST-ID/databases/DATABASE-NAME

Sample Entity

{
  "databaseName" : "test",
  "links" : [ ... ]
}

Entity Fields

Name Type Description
databaseName string The database.

Examples

Get All Databases

Request

curl -i -u "username:apiKey" --digest "https://<ops-manager-host>/api/public/v1.0/groups/533c5895b910306f21033a/hosts/fd5b59188dc13ad142493/databases"

Response

HTTP/1.1 200 OK

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

Get a Single Database

Request

curl -i -u "username:apiKey" --digest "https://<ops-manager-host>/api/public/v1.0/groups/533c5895b910306f21033a/hosts/fd5b59188dc13ad142493/databases/test"

Response

HTTP/1.1 200 OK

{
  "databaseName" : "test",
  "links" : [ ... ]
}
←   Disks Clusters  →