Skip to content

mongodb list-databases

List mongodb databases

Description

List the databases present in the server

Synopsis

mongodb list-databases
    [--site <site>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

Examples

Input:

! mongodb list-databases
Output:
["test-database-1", "test-database-2", "test-database-3"]

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "mongodb"
Service Instance
Namespace
Object Type "database"
Object ID

Please see Access Control for details.