summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/list_databases.idl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/list_databases.idl')
-rw-r--r--src/mongo/db/commands/list_databases.idl30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/mongo/db/commands/list_databases.idl b/src/mongo/db/commands/list_databases.idl
index 83e3e8f5351..8342078de30 100644
--- a/src/mongo/db/commands/list_databases.idl
+++ b/src/mongo/db/commands/list_databases.idl
@@ -32,12 +32,39 @@ global:
imports:
- "mongo/idl/basic_types.idl"
+structs:
+ ListDatabasesReplyItem:
+ description: "Individual result"
+ fields:
+ name: string
+ sizeOnDisk:
+ type: long
+ optional: true
+ empty:
+ type: bool
+ optional: true
+ shards:
+ type: object_owned
+ optional: true
+
+ ListDatabasesReply:
+ description: "The listDatabases command's reply."
+ fields:
+ databases: array<ListDatabasesReplyItem>
+ totalSize:
+ type: long
+ optional: true
+ totalSizeMb:
+ type: long
+ optional: true
commands:
- listDatabasesCommand:
+ listDatabases:
description: "listDatabases Command"
command_name: "listDatabases"
namespace: ignored
+ api_version: "1"
+ strict: true
fields:
nameOnly:
description: "Return just the database name without metadata"
@@ -51,3 +78,4 @@ commands:
description: "Filter description to limit results"
type: object
optional: true
+ reply_type: ListDatabasesReply