Azure / Azure/azure-rest-api-specs
Bug - TheLastMonth timeframe in cost-management/query API does not work
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
The required request body "timeframe" with the value = TheLastMonth is not working.
This is a bug in all API versions it seems, including your samples:
https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage?view=rest-cost-management-2023-11-01&tabs=HTTP
The rest of the TimeframeTypes work.
"error": {
"code": "BadRequest",
"message": "Invalid query definition, timeframe TheLastMonth is currently not supported. (Request ID: 754b2af6-c953-4258-8838-ced9ebcba4b3)"
}
Contributor guide
Research direction
Start by checking the cost-management/query API specification and its usage examples, especially the timeframe value TheLastMonth, then compare them with the other TimeframeTypes. Confirm whether the specification or sample is inconsistent with the service response; done means the supported behavior is accurately represented or the issue is routed to the service owner.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, openapi
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100