Docs Menu
Docs Home
/
MongoDB Atlas
/ /

Connect to Your Online Archive

On this page

  • Configure Connection to Online Archive
  • Connect to Online Archive
  • Connect to Online Archive and Cluster
  • Connect to the Federated Database Instance for Your Online Archive

Important

Feature unavailable in Serverless Instances

Serverless instances don't 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 federated database instance.

Note

Atlas doesn't support LDAP for your Online Archive connection.

Before you connect, you must configure the connection method for your online archive.

You can set up a standard connection or private endpoint for connecting to your online archives. To set up the connection method:

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2
  1. Click your cluster's name.

  2. Click the Online Archive tab.

3
4

Configure your connection type. To configure the type of connection:

  1. Choose one of the following options:

    • Standard connection

    • Private endpoint

  2. Set up your type of connection. To set up, for:

    Click:

    • Add your current IP address to add your current IP address to the list of allowed IP addresses.

    • Add a different IP address to specify the IP address to add to the list of allowed IP addresses.

    • Allow access from anywhere to allow access from all IP addresses.

    Click Private endpoint and:

    Note

    If you specify 0.0.0.0 in the IP access list, Atlas accepts all connections including those over PrivateLink.

5

To create a database user for your online archive:

  1. Specify Username.

  2. Enter Password or click Autogenerate secure password.

  3. Click Create database uer.

6

You can use the connection string for an online archive to access and query data in your online archive only.

Connect to Online Archive modal

To get the connection string from the Clusters page:

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2
3

You can connect through a Driver, Compass, and the MongoDB Shell.

4

To get the connection string from the Online Archive page:

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2
  1. Click your cluster's name.

  2. Click the Online Archive tab.

3
4

You can connect through a Driver, Compass, and the MongoDB Shell.

5

You can use this connection string to run read-only, federated queries against your Online Archive.

You can use the connection string for an online archive and cluster to access and query data in your online archive and Atlas cluster.

Connect to Online Archive and Cluster modal

To get the connection string from the Clusters page:

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2
3

You can connect through a Driver, Compass, and the MongoDB Shell.

4

To get the connection string from the Online Archive page:

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If the Clusters page is not already displayed, click Database in the sidebar.

2
  1. Click your cluster's name.

  2. Click the Online Archive tab.

3
4

You can connect through a Driver, Compass, and the MongoDB Shell.

5

You can use the federated database instance connection string for your online archive to access and query data in your online archive only.

Connect to Federated Database Instance for Online Archive

To get the connection string from the Data Federation page:

1
  1. If it's not already displayed, select the organization that contains your project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your project from the Projects menu in the navigation bar.

  3. In the sidebar, click Data Federation under the Services heading.

2
3

You can connect through a Driver, Compass, and the MongoDB Shell.

4

Back

Set Up a Private Endpoint

Next

Manage Online Archives