[SERVER-1909] expose ability to list db's via REST Created: 07/Oct/10  Updated: 12/Jul/16  Resolved: 08/Oct/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.7.2

Type: New Feature Priority: Major - P3
Reporter: Kenny Gorman Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

For various monitoring mechanisms it's nice to get a list of DB's via REST like:

http://localhost:28017/listDatabases?text=1



 Comments   
Comment by auto [ 08/Oct/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: expose listDatabases to rest SERVER-1909
http://github.com/mongodb/mongo/commit/56226d80bbf8fc3b23d772e5e4218c29f0453e4e

Comment by Kenny Gorman [ 07/Oct/10 ]

Thx Scott. Yeah, agreed, simplifying the API would be nice.

Comment by Scott Hernandez (Inactive) [ 07/Oct/10 ]

http://localhost:28017/admin/$cmd/?filter_listDatabases=1&limit=1

But it would be nice to run any (admin db) command by just adding the command name to the end of the url like the ones listed on the default page.

http://localhost:28017/isMaster?text=1
http://localhost:28017/serverStatus?text=1
...

Generated at Thu Feb 08 02:58:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.