我们Azure DocumentDB
由其他团队管理。我们无权访问Azure Portal
。有没有办法让我们看到磁盘的使用情况DocumentCollection
?一个REST API或.NET API?
您可以使用client.ReadDocumentCollectionAsync来获取此信息,例如,
ResourceResponse<DocumentCollection> response =
await client.ReadDocumentCollectionAsync(collectionLink);
Console.WriteLine(response.CollectionSizeQuota);
Console.WriteLine(response.CollectionSizeUsage);
请参阅https://msdn.microsoft.com/en-us/library/microsoft.azure.documents.client.documentclient.readdocumentcollectionasync.aspx和https://msdn.microsoft.com/en-us/library/dn799209.aspx更多细节。
REST API中的等效项是GET集合中的x-ms- *响应标头。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句