Azure消费REST API使用开始不起作用

问题描述 投票:2回答:2

我正在使用邮递员查询Azure消费REST API。 properties / usageEnd(Utc time),properties / usageStart(Utc time)过滤器不起作用

尝试以下选项:

https://management.azure.com/subscriptions/xxxxxxxxxxxx/providers/Microsoft.Consumption/usageDetails?api-version=2019-01-01&filter=properties/usageStart eq \'2019-02-01T00:00:00Z \'和properties / usageEnd eq \'2019-02-14T00:00:00Z \'

usageStart eq'2018-04-01'AND usageEnd eq'2018-05-30'

properties / usage开始eq'2019-02-01T00:00:00Z'和房产/用法和eq'2019-02-14T00:00:00Z'

usageStart eq 17/10/2018 15:18:06 and usageEnd eq 17/10/2018 16:18:06

我实际上是这个API的日期过滤器,它不起作用。

rest azure azure-sdk-.net
2个回答
1
投票

它对我来说很完美。

https://management.azure.azure.com/subscriptions/{SubscriptionGuid}/providers/Microsoft.Consumption/usageDetails?api-version=2019-01-01&$filter=properties/usageEnd+ge+'2019-02-12'+AND+properties/usageEnd+le+'2019-02-14'

0
投票

尝试在日期中添加毫秒精度。例如,尝试以下操作:

properties/usageStart eq '2019-02-01T00:00:00.0000000Z' and properties/usageEnd eq '2019-02-14T00:00:00.0000000Z'
© www.soinside.com 2019 - 2024. All rights reserved.