帐单API问题 [英] Billing API question

查看:124
本文介绍了帐单API问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi. 

https://consumption.azure.com/v2/enrollments/{enrollmentnum}/billingperiods/201806/usagedetails
For some reason I am unable to pull usage detail past May 31st, 2018.
Up to that date is fine. From June 1st onwards, nothing is returned. 
Yet I have a 42,000 line xls file for June that I generated early in July, so I know it should be there. 

Even setting to a specific day, I am unable to get anything after May 31st. Tried with both csv and json versions of the call.

关于问题可能出在哪里?

Any suggestions as to what the problem might be?

谢谢.

推荐答案

The Usage Detail API offers a daily breakdown of consumed quantities and estimated charges by an Enrollment. The result also includes information on instances, meters, and departments. The API can be queried by Billing period or by a specified start and end date.

此处中指定需要添加的常见标头属性.可以使用以下格式的开始日期和结束日期参数来指定自定义时间范围 yyyy-MM-dd.

Common header properties that need to be added are specified here. Custom time ranges can be specified with the start and end date parameters that are in the format yyyy-MM-dd.

检查此链接

https://docs.microsoft.com/zh-CN/rest/api/billing/enterprise/billing-enterprise-api-usage-detail 

https://docs.microsoft.com/en-us/rest/api/billing/enterprise/billing-enterprise-api-usage-detail 

https://docs.microsoft.com/zh-CN/rest/api/billing/enterprise/billing-enterprise-api-billing-periods

https://docs.microsoft.com/en-us/rest/api/billing/enterprise/billing-enterprise-api-billing-periods

https://docs.microsoft.com/zh-CN/azure/billing/billing-review-enterprise-billing

https://docs.microsoft.com/en-us/azure/billing/billing-review-enterprise-billing


这篇关于帐单API问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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