4

Is there any option to retrieve Cosmos DB (SQL API) throughput programmatically. I'm using the below code to get the list of DB

DocumentClient client = new DocumentClient(ClientURL, ClientKey,);
var databaseList = client.CreateDatabaseQuery().ToList();

Next I wanted to know the throughput for each of the database.

Please let me know if this is feasible

user1941025
  • 541
  • 6
  • 21

1 Answers1

2

You could refer to CreateOfferQuery method to get throughout settings of Database or Collections.

Also,please refer to this rest api:https://learn.microsoft.com/en-us/rest/api/cosmos-db/get-an-offer

Jay Gong
  • 23,163
  • 2
  • 27
  • 32