Skip to content

mongodb list-collections

list mongodb collections

Description

list the collections in the provided database

Synopsis

mongodb list-collections
    [--site <site>]
    <database>

Arguments

site - (string)

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

database - (string)

     Name of the database
     Example: "database-1"
     Default: _None_      Attributes: required

Examples

Input:

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

Access Control

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

Field Value
Action "get"
Service Type "mongodb"
Service Instance
Namespace
Object Type "collection"
Object ID collection

Please see Access Control for details.