Hi @Ganesh Shrivas ,
in Azure Portal it's possible to calculate and see the capacity of a blob container:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
I want to calculate storage account costing, Specially for "Blog Storage" . When I read documentation and checked Azure price calculator it Uses "Capacity" in DB to calculate price. So I tried blog storage apis which is available here on portal - https://learn.microsoft.com/en-us/rest/api/storagerp/blob-containers/list
I check response of all api's but not getting information regarding the capacity used by blog-storage account. so I want suggestion How can we calculate COST for storage account.
Hi @Ganesh Shrivas ,
in Azure Portal it's possible to calculate and see the capacity of a blob container:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Hi @Andreas Baumgarten Thanks for you quick reply.
I know I can check capacity information from Portal But I need this information in rest API so that I can show it on my website.
Please let me know if any Rest API in available which will return blob storage information I found some API related to blob but they are not returning Capacity information. here are API LIST related to blog storage
https://learn.microsoft.com/en-us/rest/api/storagerp/blob-containers/list
not sure is it public API or not but MS uses the following request: if you go to Container properties page, run Fiddler and then click Calculate size - you may see HTTP GET request which will looks like that:
GET https://{storageAccountName}.blob.core.windows.net/{containerName}?restype=container&comp=list&sv=2020-08-04&ss=bqtf&srt=sco&sp=rwdlacuptfxi&se=2021-08-30T22:26:45Z&sig=...
It will return xml response which looks like this:
i.e. set of blobs with different BlobType (on above picture there are only BlockBlob). Then I assume it calculates overall size as sum of sizes of each blob (per type) and shows it on Container size:
thanks @sadomovalex for your response it helps but these api not public so I can't use it.