简体   繁体   English

使用REST获取资源消耗详细信息和Azure VM的成本

[英]Get resource consumption details and costing of Azure VM using REST

I am in need to get current resource consumption details of specific VM and the costing of that VM according to consumption using REST api. 我需要使用REST API获取特定VM的当前资源消耗详细信息以及该VM根据消耗的成本。

[Want Azure API to which I can pass the VM name/id and result would be Usage details and cost. [我可以向其传递VM名称/ ID的Azure API,其结果将是使用情况详细信息和成本。 They do have usage and Rate card API End Points but again it needs taking one Val from Usage and one relative from Rate multiplying it to get total] 他们确实有使用情况和价目表API端点,但是再次需要从使用率中提取一个Val,从Rate中获取一个亲戚乘以它得出总计]

Is that what you are looking for? 那是您要找的东西吗?

The Azure billing API allows to get data of your usage and the money that you have to pay for your resources. Azure计费API允许获取您的使用情况数据以及您必须为资源支付的费用。

https://codehollow.com/2017/02/using-the-azure-billing-api-to-calculate-the-costs/ https://codehollow.com/2017/02/using-the-azure-billing-api-to-calculate-the-costs/

Azure Billing REST API Reference: https://msdn.microsoft.com/en-us/library/azure/mt218998.aspx Azure Billing REST API参考: https : //msdn.microsoft.com/zh-cn/library/azure/mt218998.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM