Discovering MongoDB Atlas clusters


MongoDB Atlas is a cloud-based database service provided by MongoDB, Inc. that enables you to deploy, manage, and scale on popular cloud platforms like AWS, Google Cloud, and Microsoft Azure. It is a fully managed service that provides automated infrastructure provisioning, backups, and monitoring.

BMC Discovery has been able to discover MongoDB Atlas clusters, if the hosts that can be reached with an IP scan, and credentials are available. Using the MongoDB Atlas API provider enables you to discover the all Atlas clusters. This applies even to those servers that cannot be reached with an IP scan.

To discover MongoDB Atlas clusters

The following table describes the tasks that you must perform in the specified sequence, the description of the action that you must perform, and the reference to the procedure:

Task

Action

Procedure

1

Ensure you have sufficient permissions to access the MongoDB Atlas clusters

2

Create an API provider credential valid for the MongoDB Atlas

3

Perform an API scan

Ensure you have sufficient permissions to access the MongoDB Atlas clusters

For any Atlas clusters in which you want to be able to discover all supported resources you must provide BMC Discovery with a pair of public and private keys used to authenticate with MongoDB Atlas. You can obtain administrative API key using the Atlas UI. Follow Organization Access Manager and then create API Key on appropriate tab. For more information see Manage Programmatic Access to an Organization

Create an API provider credential valid for the MongoDB Atlas

Use the MongoDB Atlas programmatic key that you have just created and retrieved to create the API provider credential. For information on creating credentials, see Adding-credentials.

Perform an API scan

  1. On the Manage > Discovery page, click Add New Run.
  2. In the Timing field, select Snapshot.
  3. In the Targeting field, select API.

    APIRun.png

  4. Enter the information for the snapshot API provider discovery run in the fields.
  5. Click OK to start the run.
 

This example uses a snapshot scan. For information on running scheduled cans, see Performing-a-discovery-run.


View discovered MongoDB Atlas clusters

Once you have discovered a MongoDB Atlas instance, you can view the clusters it manages. To do so:

  1. From the Discovery page, select the Recent Runs tab.
  2. Click the snapshot API scan you have just performed.

    image2023-2-23_15-4-10.png

  3. Click the Clusters icon and select one of the discovered clusters.

    image2023-2-23_15-6-4.png


For more information

For more information about the discovery of MongoDB Atlas clusters, see the MongoDB-Atlas documentation.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*