
[英]How to get connection string to existing servicebus without old azure portal
[英]How to get DocumentDB Disk Usage without Azure Portal
我们的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- *响应标头。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.