| Description | : This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body. |
| Reference | : Link ¶ |
⚼ Request
POST:
/{scope}/providers/Microsoft.CostManagement/generateCostDetailsReport
{
scope:
string
,
api-version:
string
,
parameters:
}
{
,
metric:
enum
,
timePeriod:
{
,
start:
string
,
end:
string
,
}
billingPeriod:
string
,
invoiceId:
string
,
}
⚐ Response (200)
{
id:
string
,
name:
string
,
type:
string
,
status:
enum
,
manifest:
{
,
manifestVersion:
string
,
dataFormat:
enum
,
byteCount:
integer
,
blobCount:
integer
,
compressData:
boolean
,
requestContext:
{
,
requestScope:
string
,
requestBody:
}
{
,
metric:
enum
,
timePeriod:
{
,
start:
string
,
end:
string
,
}
billingPeriod:
string
,
invoiceId:
string
,
}
blobs:
}
[
]
,
{
,
blobLink:
string
,
byteCount:
integer
,
}
validTill:
string
,
error:
}
{
,
code:
string
,
message:
string
,
}
⚐ Response (202)
{
location:
string
,
retry-after:
integer
,
}
⚐ Response (204)
{}
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
}