Docs Menu

Docs HomeMongoDB Atlas

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 Federation supports the optional saslSupportedMechs field set to the <db.user>.


About the hello Command

Atlas Data Federation 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. Results are ordered alphabetically by collection name.

Atlas Data Federation supports the following options:

  • filter (Exact match only.)

  • nameOnly

  • authorizedCollections

The listDatabases command provides a list of all existing databases in alphabetical order. 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 S3 buckets.

←  Supported MongoDB CommandsDiagnostic Commands →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.