User Manual Back to Service Discovery Back to User Manual
MongoDB Atlas Service Discovery lets you browse Atlas organizations, projects, and clusters from DocumentDB for VS Code. You can then create a connection from a discovered cluster without manually copying its endpoint.
Use MongoDB Atlas Service Discovery from either location:
You need two kinds of access:
| Purpose | What you need |
|---|---|
| Browse Atlas resources | An Atlas API Key or Service Account that can list the organizations, projects, and clusters you need. |
| Connect to an Atlas cluster | An Atlas database user with a username and password, plus network access to the cluster. |
The Atlas API Key or Service Account is used only to discover resources. It is not a database login. You enter a database username and password when you connect to a cluster.
The extension prefers the Atlas SRV connection string when Atlas provides one. The saved result is a regular DocumentDB for VS Code connection.
An Atlas API Key or Service Account belongs to one Atlas organization. To browse clusters in more than one organization, add a credential for each organization. The extension combines resources found through all configured credentials. When more than one credential can access the same resource, the resource is shown once.