CosmosDB API | How to get the logical data size for a given partition

Olivier Moreau 0 Reputation points
2024-10-03T10:11:11.92+00:00

Hi,

I need to get the logical size of a given partition using the CosmosDB API, but I did not find anything in the SDK or with a web search.

As there is a 20Gb limit on that logical size, it makes sense to have a way to get that size, so I probably missed it.

And yes, I've seen those many articles explaining how to set an alert, but I need the size at any moment, not an alert.

Thanks in advance

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,836 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.