我试图只过滤那些符合给定日期标准的对象。但我不能这样做!
consumption = ConsumptionManagementClient(credentials, subscription_id, base_url=None)
for obj in list(consumption.usage_details.list(filter=date_filter))
print(obj.usage_start)
我努力了:
date_filter = 'usage_start ge 2019-02-11T23:59:59Z'
date_filter = 'properties/usage_start ge 2019-02-11T23:59:59Z'
date_filter = 'usageStart ge 2019-02-11T23:59:59Z'
date_filter = 'properties/usageStart ge 2019-02-11T23:59:59Z'
date_filter = 'properties/UsageStart ge 2019-02-11T23:59:59Z'
date_filter = 'UsageStart ge 2019-02-11'
date_filter = 'usage_start ge 2019-02-11'
date_filter = 'properties/usage_start ge 2019-02-11'
date_filter = 'usageStart ge 2019-02-11'
date_filter = 'properties/usageStart ge 2019-02-11'
date_filter = 'properties/UsageStart ge 2019-02-11'
date_filter = 'UsageStart ge 2019-02-11'