Connect to Your Online Archive¶
On this page
Serverless instances are in preview and do not support this feature at this time. To learn more, see Serverless Instance Limitations.
You can connect to your Online Archive through the MongoDB Shell. You can get the connection string for your preferred method of connection from the Atlas UI.
The connection string determines which data you can access and query. You can access and query data:
- In your online archive only.
- In your online archive and Atlas cluster.
- In your online archive through your Data Lake.
Before you connect, you must configure the connection method for your online archive.
Configure Connection to Online Archive¶
You can set up a standard connection or private endpoint for connecting to your online archives. To set up the connection method:
Navigate to the Database Deployments 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 is not already displayed, select your desired project from the Projects menu in the navigation bar.
- If the Database Deployments page is not already displayed, click Databases in the sidebar.
Navigate to the Online Archive tab for your cluster.¶
- Click the name of the cluster.
- Click the Online Archive tab to view the list of online archives, if any, for the cluster.
Click the Connect button for the Online Archive to which you want to connect.¶
Configure your connection type.¶
To configure the type of connection:
Choose one of the following options:
- Standard connection
- Private endpoint
Set up your type of connection. To set up, for:
NoteIf you specify
0.0.0.0
in the IP access list, Atlas accepts all connections including those over PrivateLink.
Create a database user for your online archive.¶
To create a database user for your online archive:
- Specify Username.
- Enter Password or click Autogenerate secure password.
- Click Create database uer.
Click Next to get the connection string for your online archive.¶
Connect to Online Archive¶
You can use the connection string for an online archive to access and query data in your online archive only.
Connect to Online Archive and Cluster¶
You can use the connection string for an online archive and cluster to access and query data in your online archive and Atlas cluster.
Only collections that have archiving enabled are visible with the federated (cluster and online archive) connection string.
Connect to the Data Lake for Your Online Archive¶
You can use the Data Lake connection string for your online archive to access and query data in your online archive only.
To get the connection string from the Data Lake
page:
Navigate to the Data Lake 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 is not already displayed, select your desired project from the Projects menu in the navigation bar.
- Click Data Lake in the sidebar.
Click the Connect button for the Online Archive to which you want to connect.¶
Choose your connection method.¶
You can connect through a Driver, Compass, and the MongoDB Shell.