获取Azure存储帐户成本明细. [英] Obtaining Azure storage account cost details.

查看:76
本文介绍了获取Azure存储帐户成本明细.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想知道是否可以通过任何方式获取存储帐户的费用明细.

I want to know that if there is any way through which we can obtain the cost details of a storage account.

假设我有一些容器,每个容器有一些斑点,那么我所需要的是,使用C#,我应该能够计算出应该支付的费用,如果我上传一些1GB的数据,将会对我的费用产生影响,等等.

Suppose I have some containers and each container has some blobs, what I require is that using C# I should be able to calculate how much I should pay, if I upload some 1GB data what will be the effect on my cost, etc.

请告诉我是否有任何方法可以实现此目的.

Please let me know if there is any way I can implement this.

谢谢.

推荐答案

我不知道这目前是可能的,但是您可以使用Azure Billing REST API,该API提供对当前正在使用的资源的元数据和消费信息的访问.我建议将其与RateCard API结合使用, 提供相同的信息,还提供当前成本和消费前成本分析.

I don't this that this is currently possible, however you can use the Azure Billing REST API which provides access to metadata and consumption information for resources currently in use. I would suggest using it in conjunction with the RateCard API which provides the same information but also current cost and pre-consumption cost analysis .

这是指向Azure Billing API概述的链接- https://docs.microsoft.com/zh-CN/azure/billing/billing-usage-rate-card-overview

This is the link to the Azure Billing API overview - https://docs.microsoft.com/en-us/azure/billing/billing-usage-rate-card-overview

下面是指向RateCard API如何获取价格和元数据"的链接.页面.

Below is a link to the RateCard API "how to get price and metadata" page.

https://docs.microsoft.com/zh-cn/previous-versions/azure/reference/mt219004(v%3dazure.100)

也可以使用python脚本检索相同的信息,

The same information can be retrieved using a python script also,  https://azure.microsoft.com/en-us/resources/samples/billing-python-ratecard-api/

如果此答案有帮助,请单击标记为答案"或投票.要提供有关您的论坛体验的其他反馈,请单击 在这里

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click Here


这篇关于获取Azure存储帐户成本明细.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆