How to get the storage size and number of databases of a serverless instance?

Hello community,

I am using the Atlas Admin API to manage my serverless instances programmatically so that I can provision customer databases when needed. The Atlas UI shows the disk usage and database number for a serverless instance. I would like to retrieve that information through the Atlas Admin API. There is a method for regular clusters:

However, unfortunately the process-related methods do not work for Serverless instances. When I retrieve an instance through the Atlas Admin API with the following, I only receive very basic information.


How do I programmatically retrieve the Total Storage Size and Total Number Of Databases of a serverless instance?

Many thanks in advance, Jan

Solved it now by connecting to each instance and retrieve the database list that includes the size.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.