Azure / Azure/azure-rest-api-specs

Support UsageDetails Download Operation

Open
#25,228 0 comments 3 reactions 0 assignees View on GitHub
Consumption - UsageDetailsAndExport customer-reported feature-request Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

![image](https://github.com/Azure/azure-rest-api-specs/assets/119990644/64ab4480-653c-4883-abf8-899d7bc59d46)
It's allowed to download usage details as csv in portal, and it calls the api below:
https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccounts}/billingPeriods/{billingPeriods}/providers/Microsoft.Consumption/usagedetails/download?api-version=2021-10-01

I found that the api once included in the previous version of [swagger](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/consumption/resource-manager/Microsoft.Consumption/preview/2019-05-01-preview/consumption.json#L167) like so:
![image](https://github.com/Azure/azure-rest-api-specs/assets/119990644/4dc6599e-a434-4d3b-a94c-042cd82990ac)
Yet it's not included in the following versions any longer. **Is it possible to include the api once again so that customers could call it with REST API or SDK method?**

And here's the details of the request created by the customer.
https://github.com/Azure/azure-sdk-for-python/issues/31473

Contributor guide

Open the contributing guide

Research direction

Start by comparing the current Microsoft.Consumption specification with the linked 2019-05-01-preview/consumption.json entry around line 167. Verify the documented billingAccounts and billingPeriods path, api-version, and download response against the portal endpoint and the linked Azure SDK request. Done means the operation is represented in the REST specification and supports the requested REST or generated SDK call.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.