diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-11-25 08:16:58 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-25 14:05:44 +0000 |
commit | 403c9577ea2a447c2660715af6540e66da8fc4c8 (patch) | |
tree | 6e79f88e21f19b9e9fcdc9ef6aa9a3fe477a681e /src/mongo/db/commands/list_databases.idl | |
parent | 4ff5abf776772827db06bcc941382e3822731d3a (diff) | |
download | mongo-4.4.tar.gz |
SERVER-52544 Update IDL for listDatabases4.4
Diffstat (limited to 'src/mongo/db/commands/list_databases.idl')
-rw-r--r-- | src/mongo/db/commands/list_databases.idl | 30 |
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 |