> This page location: /docs.md > /docs/management.md > /docs/atlas/backup-restore-cluster.md > /docs/atlas/online-archive/overview.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

<!--
Tab options on this page. Append to the .md URL to filter:
  ?tabs=<id,...>   select specific tabs (e.g. ?tabs=nodejs,shell)
  ?allTabs=true    include every tab
  (no param)       default: one tab per tabset

Available tabs:
  other tabs: standard, pvt-endpoint, clusterspage, oapage
-->

# Connect to Your Online Archive

**Important: Feature unavailable in Flex Clusters**

Flex clusters don't support this feature at this time. To learn more, see [Atlas Flex Limitations.](https://www.mongodb.com/docs/atlas/reference/flex-limitations.md#std-label-flex-cluster-limitations)

You can connect to your Online Archive through the [MongoDB Shell](https://www.mongodb.com/docs/atlas/mongo-shell-connection.md#std-label-connect-mongo-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.](https://www.mongodb.com/docs/atlas/online-archive/connect-to-online-archive.md#std-label-connect-online-archive-atlas-ui)

- [In your online archive and Atlas cluster.](https://www.mongodb.com/docs/atlas/online-archive/connect-to-online-archive.md#std-label-connect-online-archive-cluster-atlas-ui)

- [In your online archive through your federated database instance.](https://www.mongodb.com/docs/atlas/online-archive/connect-to-online-archive.md#std-label-connect-online-archive-fdi)

**Note:**

Atlas doesn't support [LDAP](https://www.mongodb.com/docs/atlas/security-ldaps.md#std-label-ldap-connection-string) for your Online Archive connection.

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:

1. In Atlas, go to the Clusters page for your project.

   If it's 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.

   In the sidebar, click Clusters under the Database heading.

   The [Clusters](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters) page displays.

2. Go to the Online Archive page for your cluster.

   In the sidebar, click Online Archive.

   The [Online Archive](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters%2FonlineArchive%2F%3Ccluster%3E) page displays.

3. Click the Connect button for the Online Archive to which you want to connect.

4. 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:

   ### Standard Connection

   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.

   **Note:**

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

5. 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 user.

6. 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.

**Note:**

The connection string for an online archive is read-only. If you must write to your cluster, click Connect to Cluster and use the provided connection string instead.

### Connect from Clusters Page

To get the connection string from the Clusters page:

1. In Atlas, go to the Clusters page for your project.

   If it's 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.

   In the sidebar, click Clusters under the Database heading.

   The [Clusters](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters) page displays.

2. Click the Connect button for the cluster.

3. Choose your connection method.

   You can connect through a [Driver](https://www.mongodb.com/docs/atlas/driver-connection.md#std-label-connect-via-driver), [Compass](https://www.mongodb.com/docs/atlas/compass-connection.md#std-label-atlas-connect-via-compass), and the [MongoDB Shell.](https://www.mongodb.com/docs/atlas/mongo-shell-connection.md#std-label-connect-mongo-shell)

4. Select Connect to Online Archive to get the connection string for connecting to your Online Archive.

## 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.

**Note:**

The connection string for an online archive and cluster is read-only. If you must write to your cluster, click Connect to Cluster and use the provided connection string instead.

### Connect from Clusters Page

To get the connection string from the Clusters page:

1. In Atlas, go to the Clusters page for your project.

   If it's 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.

   In the sidebar, click Clusters under the Database heading.

   The [Clusters](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2Fclusters) page displays.

2. Click the Connect button for the cluster.

3. Choose your connection method.

   You can connect through a [Driver](https://www.mongodb.com/docs/atlas/driver-connection.md#std-label-connect-via-driver), [Compass](https://www.mongodb.com/docs/atlas/compass-connection.md#std-label-atlas-connect-via-compass), and the [MongoDB Shell.](https://www.mongodb.com/docs/atlas/mongo-shell-connection.md#std-label-connect-mongo-shell)

4. Select Connect to Cluster and Online Archive to get the connection string for connecting to your cluster and Online Archive.

## Connect to the Federated Database Instance for Your Online Archive

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

To get the connection string from the `Data Federation` page:

1. In Atlas, go to your federated database instance for your project.

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

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

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

   The [Data Federation](https://cloud.mongodb.com/go?l=https%3A%2F%2Fcloud.mongodb.com%2Fv2%2F%3Cproject%3E%23%2FdataFederation) page displays.

2. Click the Connect button for the Online Archive to which you want to connect.

3. Choose your connection method.

   You can connect through a [Driver](https://www.mongodb.com/docs/atlas/driver-connection.md#std-label-connect-via-driver), [Compass](https://www.mongodb.com/docs/atlas/compass-connection.md#std-label-atlas-connect-via-compass), and the [MongoDB Shell.](https://www.mongodb.com/docs/atlas/mongo-shell-connection.md#std-label-connect-mongo-shell)

   You can also connect to the Online Archive using [OIDC.](https://www.mongodb.com/docs/atlas/security-oidc.md#std-label-oidc-authentication-authorization)

4. Follow the steps in the `Connect` window to get the connection string and run the connection string in your command line.
