Manage Databases and Collections in Data Explorer
On this page
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
You can use the Data Explorer to manage your cluster's databases and collections.
Access Data
To interact with your data in the Cloud Manager UI:
In MongoDB Cloud Manager, go to the Deployment page for your project.
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it's not already displayed, select your desired project from the Projects menu in the navigation bar.
If the Deployment page is not already displayed, click Deployment in the sidebar.
The Deployment page displays.
Required Roles
View Databases and Collections
To view databases and collections, through
the Data Explorer you must have been granted at least the
Project Data Access Read Only
role.
Create Databases and Collections
To create databases and collections through the Data Explorer, you must have been granted access through one of the following roles:
Drop Databases and Collections
To drop databases and collections through the Data Explorer, you must have been granted access through one of the following roles:
View Databases and Collections
From the Collections tab, you can view the databases and collections in the deployment. Cloud Manager shows the databases in the left pane of the Data Explorer:
To view the collections in a particular database, click on the name of the database.
Create a Database
To create a database through the Data Explorer:
Enter the Database Name and the Collection Name.
Enter the Database Name and the Collection Name to create the database and its first collection.
For more information on MongoDB database names and collection names, see Naming Restrictions.
Optional. Specify a capped collection.
Select whether the collection is a capped collection. If you select to create a capped collection, specify the maximum size in bytes.
Create a Collection
Tip
To create the first collection in a new database, see Create a Database.
To create a collection in an existing database through the Data Explorer:
Enter the Collection Name.
For more information on MongoDB collection names, see Naming Restrictions.
Optional. Specify a capped collection.
Select whether the collection is a capped collection. If you select to create a capped collection, specify the maximum size in bytes.
Drop a Database
To drop a database, including all its collections, through the Data Explorer:
Drop a Collection
To drop a collection, including its documents and indexes, through the Data Explorer: