1

So with Mongo Atlas I can easily list clusters in a project by calling the API as follows:

curl -i -u "<[email protected]>:<my-api-key>" --digest "https://cloud.mongodb.com/api/atlas/v1.0/groups/<groupid>/clusters"

I want to list all database (and if possible all nested collections) for a particular cluster.

Is this possible via the API - I am sure it must be but I am not seeing it in the documentation.

I want to avoid having to connect to each cluster and collecting this information with a query - this is for a service discovery tool I am building for inventorying purposes.

Thanks

asked Dec 31, 2018 at 13:40

1 Answer 1

4

The MongoDB Atlas API is for programmatic access to Atlas' management, monitoring, and backup features. API connections are to the Atlas service, not to the underlying MongoDB clusters.

To query data in your clusters (for example, listing database and collections) you need to connect to each cluster using an authenticated MongoDB driver or client.

I want to avoid having to connect to each cluster and collecting this information with a query - this is for a service discovery tool I am building for inventorying purposes.

This is the currently the only supported approach.

answered Nov 29, 2019 at 0:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.