Docs Menu

Administration Commands

On this page

  • isMaster
  • killCursors
  • listCollections
  • listDatabases

For isMaster command, the response always contains a document in which isMaster: true. It also includes operational parameters.

Atlas Data Lake supports the optional saslSupportedMechs field set to the <db.user>.

Note
About the hello Command

Atlas Data Lake also supports the hello command, which is an alias for the isMaster command. The hello command returns a document that is identical to the document returned by the isMaster command. In the document returned by the hello command, the isWritablePrimary field is set to true instead of the isMaster field. We recommend the hello command instead of isMaster.

The killCursors command kills the specified cursor or cursors for a collection.

The listCollections command retrieves information about the collections in a database, such as collection names and options. The response contains information that can be used to create a cursor to the collection information.

Atlas Data Lake supports the following options:

  • filter (Exact match only.)
  • nameOnly
  • authorizedCollections

The listDatabases command provides a list of all existing databases. You must use the admin database to run the listDatabases command.

The following options are supported:

  • filter (Exact match only.)
  • nameOnly
  • authorizedDatabases

The listDatabases command always returns sizeOnDisk: 0 and empty: false so it can return quickly, without scanning all the files in the Data Lake.

Give Feedback
© 2021 MongoDB, Inc.

About

  • Careers
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.