Microsoft.CostManagement (preview:2023-04-01)

2025/10/30 • 53 new, 53 deleted methods

Operations_List (new)
Description :  Lists all of the available cost management REST API operations.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitRecommendations_List (new)
Description :  List of recommendations for purchasing savings plan.
Reference :  Link ¶

⚼ Request

GET:  /{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations
{
$filter: string ,
$orderby: string ,
$expand: string ,
api-version: string ,
billingScope: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
firstConsumptionDate: string ,
lastConsumptionDate: string ,
lookBackPeriod: enum ,
totalHours: integer ,
usage:
{
usageGrain: enum ,
charges:
[
number ,
]
,
}
,
armSkuName: string ,
term: enum ,
commitmentGranularity: enum ,
currencyCode: string ,
costWithoutBenefit: number ,
recommendationDetails:
{
overageCost: number ,
benefitCost: number ,
totalCost: number ,
savingsAmount: number ,
savingsPercentage: number ,
coveragePercentage: number ,
commitmentAmount: number ,
averageUtilizationPercentage: number ,
wastageCost: number ,
}
,
allRecommendationDetails:
{
value:
[
{
overageCost: number ,
benefitCost: number ,
totalCost: number ,
savingsAmount: number ,
savingsPercentage: number ,
coveragePercentage: number ,
commitmentAmount: number ,
averageUtilizationPercentage: number ,
wastageCost: number ,
}
,
]
,
nextLink: string ,
}
,
scope: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListByBillingAccountId (new)
Description :  Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
billingAccountId: string ,
grainParameter: string ,
filter: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListByBillingProfileId (new)
Description :  Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
grainParameter: string ,
filter: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListBySavingsPlanOrder (new)
Description :  Lists the savings plan utilization summaries for daily or monthly grain.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
$filter: string ,
grainParameter: string ,
savingsPlanOrderId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListBySavingsPlanId (new)
Description :  Lists the savings plan utilization summaries for daily or monthly grain.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
$filter: string ,
grainParameter: string ,
savingsPlanOrderId: string ,
savingsPlanId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_List (new)
Description :  Lists all budgets for the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/budgets
{
scope: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (new)
Description :  Gets the budget for the scope by budget name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (new)
Description :  The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Delete (new)
Description :  The operation to delete a budget.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_List (new)
Description :  The operation to list all exports at the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports
{
scope: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Get (new)
Description :  The operation to get the export for the defined scope by export name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
$expand: string ,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_CreateOrUpdate (new)
Description :  The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
parameters:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Delete (new)
Description :  The operation to delete a export.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Execute (new)
Description :  The operation to run an export.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_GetExecutionHistory (new)
Description :  The operation to get the run history of an export for the defined scope and export name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
runSettings: string ,
error:
{
code: string ,
message: string ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateCostDetailsReport_CreateOperation (new)
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 (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateCostDetailsReport_GetOperationResults (new)
Description :  Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId}
{
scope: string ,
operationId: string ,
api-version: 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)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReport_CreateOperation (new)
Description :  Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport
{
scope: string ,
api-version: string ,
parameters:
{
metric: enum ,
timePeriod:
{
start: string ,
end: string ,
}
,
billingPeriod: string ,
invoiceId: string ,
customerId: string ,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (202)

{
location: string ,
azure-consumption-asyncoperation: string ,
azure-asyncoperation: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReportOperationResults_Get (new)
Description :  Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}
{
operationId: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReportOperationStatus_Get (new)
Description :  Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}
{
operationId: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
status:
{
status: enum ,
}
,
startTime: string ,
endTime: string ,
type: string ,
error:
{
code: string ,
message: string ,
}
,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_List (new)
Description :  Lists all views by tenant and object.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/views
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_ListByScope (new)
Description :  Lists all views at the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/views
{
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_Get (new)
Description :  Gets the view by view name.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_CreateOrUpdate (new)
Description :  The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
parameters:
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_Delete (new)
Description :  The operation to delete a view.
Reference :  Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_GetByScope (new)
Description :  Gets the view for the defined scope by view name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_CreateOrUpdateByScope (new)
Description :  The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
parameters:
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_DeleteByScope (new)
Description :  The operation to delete a view.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_List (new)
Description :  Lists the alerts for scope defined.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
scope: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_Get (new)
Description :  Gets the alert for the scope by alert ID.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
scope: string ,
alertId: string ,
}

⚐ Response (200)

{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_Dismiss (new)
Description :  Dismisses the specified alert
Reference :  Link ¶

⚼ Request

PATCH:  /{scope}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
scope: string ,
alertId: string ,
parameters:
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_ListExternal (new)
Description :  Lists the Alerts for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts
{
api-version: string ,
externalCloudProviderType: string ,
externalCloudProviderId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecast_Usage (new)
Description :  Lists the forecast charges for scope defined.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/forecast
{
$filter: string ,
api-version: string ,
scope: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeActualCost: boolean ,
includeFreshPartialCost: boolean ,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecast_ExternalCloudProviderUsage (new)
Description :  Lists the forecast charges for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast
{
$filter: string ,
api-version: string ,
externalCloudProviderType: string ,
externalCloudProviderId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeActualCost: boolean ,
includeFreshPartialCost: boolean ,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Dimensions_List (new)
Description :  Lists the dimensions by the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/dimensions
{
scope: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Dimensions_ByExternalCloudProviderType (new)
Description :  Lists the dimensions by the external cloud provider type.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions
{
externalCloudProviderType: string ,
externalCloudProviderId: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Query_Usage (new)
Description :  Query the usage data for scope defined.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/query
{
scope: string ,
api-version: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Query_UsageByExternalCloudProviderType (new)
Description :  Query the usage data for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query
{
externalCloudProviderType: string ,
externalCloudProviderId: string ,
api-version: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateReservationDetailsReport_ByBillingAccountId (new)
Description :  Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
{
billingAccountId: string ,
startDate: string ,
endDate: string ,
api-version: string ,
}

⚐ Response (200)

{
status: enum ,
properties:
{
reportUrl: enum ,
validUntil: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateReservationDetailsReport_ByBillingProfileId (new)
Description :  Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
{
billingAccountId: string ,
billingProfileId: string ,
startDate: string ,
endDate: string ,
api-version: string ,
}

⚐ Response (200)

{
status: enum ,
properties:
{
reportUrl: enum ,
validUntil: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ScheduledActions_List (new)
Description :  List all private scheduled actions.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/scheduledActions
{
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_ListByScope (new)
Description :  List all shared scheduled actions within the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/scheduledActions
{
scope: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CreateOrUpdate (new)
Description :  Create or update a private scheduled action.
Reference :  Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
scheduledAction:
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Get (new)
Description :  Get the private scheduled action by name.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Delete (new)
Description :  Delete a private scheduled action.
Reference :  Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CreateOrUpdateByScope (new)
Description :  Create or update a shared scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
scheduledAction:
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_GetByScope (new)
Description :  Get the shared scheduled action from the given scope by name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_DeleteByScope (new)
Description :  Delete a scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Run (new)
Description :  Processes a private scheduled action.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/scheduledActions/{name}/execute
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_RunByScope (new)
Description :  Runs a shared scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CheckNameAvailability (new)
Description :  Checks availability and correctness of the name for a scheduled action.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/checkNameAvailability
{
api-version: string ,
checkNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CheckNameAvailabilityByScope (new)
Description :  Checks availability and correctness of the name for a scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/checkNameAvailability
{
scope: string ,
api-version: string ,
checkNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
Operations_List (removed)
Description :  Lists all of the available cost management REST API operations.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitRecommendations_List (removed)
Description :  List of recommendations for purchasing savings plan.
Reference :  Link ¶

⚼ Request

GET:  /{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations
{
$filter: string ,
$orderby: string ,
$expand: string ,
api-version: string ,
billingScope: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
firstConsumptionDate: string ,
lastConsumptionDate: string ,
lookBackPeriod: enum ,
totalHours: integer ,
usage:
{
usageGrain: enum ,
charges:
[
number ,
]
,
}
,
armSkuName: string ,
term: enum ,
commitmentGranularity: enum ,
currencyCode: string ,
costWithoutBenefit: number ,
recommendationDetails:
{
overageCost: number ,
benefitCost: number ,
totalCost: number ,
savingsAmount: number ,
savingsPercentage: number ,
coveragePercentage: number ,
commitmentAmount: number ,
averageUtilizationPercentage: number ,
wastageCost: number ,
}
,
allRecommendationDetails:
{
value:
[
{
overageCost: number ,
benefitCost: number ,
totalCost: number ,
savingsAmount: number ,
savingsPercentage: number ,
coveragePercentage: number ,
commitmentAmount: number ,
averageUtilizationPercentage: number ,
wastageCost: number ,
}
,
]
,
nextLink: string ,
}
,
scope: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListByBillingAccountId (removed)
Description :  Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain values: 'Daily' and 'Monthly'.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
billingAccountId: string ,
grainParameter: string ,
filter: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListByBillingProfileId (removed)
Description :  Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and 'Monthly'.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
grainParameter: string ,
filter: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListBySavingsPlanOrder (removed)
Description :  Lists the savings plan utilization summaries for daily or monthly grain.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
$filter: string ,
grainParameter: string ,
savingsPlanOrderId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
BenefitUtilizationSummaries_ListBySavingsPlanId (removed)
Description :  Lists the savings plan utilization summaries for daily or monthly grain.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries
{
api-version: string ,
$filter: string ,
grainParameter: string ,
savingsPlanOrderId: string ,
savingsPlanId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_List (removed)
Description :  Lists all budgets for the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/budgets
{
scope: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (removed)
Description :  Gets the budget for the scope by budget name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (removed)
Description :  The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Delete (removed)
Description :  The operation to delete a budget.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_List (removed)
Description :  The operation to list all exports at the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports
{
scope: string ,
api-version: string ,
$expand: string ,
}

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Get (removed)
Description :  The operation to get the export for the defined scope by export name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
$expand: string ,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_CreateOrUpdate (removed)
Description :  The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
parameters:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
}
,
location: string ,
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Delete (removed)
Description :  The operation to delete a export.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_Execute (removed)
Description :  The operation to run an export.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Exports_GetExecutionHistory (removed)
Description :  The operation to get the run history of an export for the defined scope and export name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory
{
scope: string ,
api-version: string ,
exportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
runSettings: string ,
error:
{
code: string ,
message: string ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateCostDetailsReport_CreateOperation (removed)
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 (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateCostDetailsReport_GetOperationResults (removed)
Description :  Get the result of the specified operation. This link is provided in the CostDetails creation request response Location header.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId}
{
scope: string ,
operationId: string ,
api-version: 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)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReport_CreateOperation (removed)
Description :  Generates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/generateDetailedCostReport
{
scope: string ,
api-version: string ,
parameters:
{
metric: enum ,
timePeriod:
{
start: string ,
end: string ,
}
,
billingPeriod: string ,
invoiceId: string ,
customerId: string ,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (202)

{
location: string ,
azure-consumption-asyncoperation: string ,
azure-asyncoperation: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReportOperationResults_Get (removed)
Description :  Gets the result of the specified operation. The link with this operationId is provided as a response header of the initial request.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}
{
operationId: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateDetailedCostReportOperationStatus_Get (removed)
Description :  Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}
{
operationId: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
status:
{
status: enum ,
}
,
startTime: string ,
endTime: string ,
type: string ,
error:
{
code: string ,
message: string ,
}
,
properties:
{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_List (removed)
Description :  Lists all views by tenant and object.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/views
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_ListByScope (removed)
Description :  Lists all views at the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/views
{
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_Get (removed)
Description :  Gets the view by view name.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_CreateOrUpdate (removed)
Description :  The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
parameters:
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_Delete (removed)
Description :  The operation to delete a view.
Reference :  Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/views/{viewName}
{
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_GetByScope (removed)
Description :  Gets the view for the defined scope by view name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_CreateOrUpdateByScope (removed)
Description :  The operation to create or update a view. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
parameters:
{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
scope: string ,
createdOn: string ,
modifiedOn: string ,
dateRange: string ,
currency: string ,
query:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataSet:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
sorting:
[
{
direction: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeMonetaryCommitment: boolean ,
}
,
chart: enum ,
accumulated: enum ,
metric: enum ,
kpis:
[
{
type: enum ,
id: string ,
enabled: boolean ,
}
,
]
,
pivots:
[
{
type: enum ,
name: string ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Views_DeleteByScope (removed)
Description :  The operation to delete a view.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/views/{viewName}
{
scope: string ,
api-version: string ,
viewName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_List (removed)
Description :  Lists the alerts for scope defined.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
scope: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_Get (removed)
Description :  Gets the alert for the scope by alert ID.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
scope: string ,
alertId: string ,
}

⚐ Response (200)

{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_Dismiss (removed)
Description :  Dismisses the specified alert
Reference :  Link ¶

⚼ Request

PATCH:  /{scope}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
scope: string ,
alertId: string ,
parameters:
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Alerts_ListExternal (removed)
Description :  Lists the Alerts for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts
{
api-version: string ,
externalCloudProviderType: string ,
externalCloudProviderId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
definition:
{
type: enum ,
category: enum ,
criteria: enum ,
}
,
description: string ,
source: enum ,
details:
{
timeGrainType: enum ,
periodStartDate: string ,
triggeredBy: string ,
resourceGroupFilter:
[
string ,
]
,
resourceFilter:
[
string ,
]
,
meterFilter:
[
string ,
]
,
tagFilter: object ,
threshold: number ,
operator: enum ,
amount: number ,
unit: string ,
currentSpend: number ,
contactEmails:
[
string ,
]
,
contactGroups:
[
string ,
]
,
contactRoles:
[
string ,
]
,
overridingAlert: string ,
departmentName: string ,
companyName: string ,
enrollmentNumber: string ,
enrollmentStartDate: string ,
enrollmentEndDate: string ,
invoicingThreshold: number ,
}
,
costEntityId: string ,
status: enum ,
creationTime: string ,
closeTime: string ,
modificationTime: string ,
statusModificationUserName: string ,
statusModificationTime: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecast_Usage (removed)
Description :  Lists the forecast charges for scope defined.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/forecast
{
$filter: string ,
api-version: string ,
scope: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeActualCost: boolean ,
includeFreshPartialCost: boolean ,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecast_ExternalCloudProviderUsage (removed)
Description :  Lists the forecast charges for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast
{
$filter: string ,
api-version: string ,
externalCloudProviderType: string ,
externalCloudProviderId: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
includeActualCost: boolean ,
includeFreshPartialCost: boolean ,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Dimensions_List (removed)
Description :  Lists the dimensions by the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/dimensions
{
scope: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Dimensions_ByExternalCloudProviderType (removed)
Description :  Lists the dimensions by the external cloud provider type.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions
{
externalCloudProviderType: string ,
externalCloudProviderId: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
description: string ,
filterEnabled: boolean ,
groupingEnabled: boolean ,
data:
[
string ,
]
,
total: integer ,
category: string ,
usageStart: string ,
usageEnd: string ,
nextLink: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Query_Usage (removed)
Description :  Query the usage data for scope defined.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/query
{
scope: string ,
api-version: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Query_UsageByExternalCloudProviderType (removed)
Description :  Query the usage data for external cloud provider type defined.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query
{
externalCloudProviderType: string ,
externalCloudProviderId: string ,
api-version: string ,
parameters:
{
type: enum ,
timeframe: enum ,
timePeriod:
{
from: string ,
to: string ,
}
,
dataset:
{
granularity: enum ,
configuration:
{
columns:
[
string ,
]
,
}
,
aggregation: object ,
grouping:
[
{
type: enum ,
name: string ,
}
,
]
,
filter:
{
and:
[
string ,
]
,
or:
[
string ,
]
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
nextLink: string ,
columns:
[
{
name: string ,
type: string ,
}
,
]
,
rows:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateReservationDetailsReport_ByBillingAccountId (removed)
Description :  Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://docs.microsoft.com/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
{
billingAccountId: string ,
startDate: string ,
endDate: string ,
api-version: string ,
}

⚐ Response (200)

{
status: enum ,
properties:
{
reportUrl: enum ,
validUntil: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
GenerateReservationDetailsReport_ByBillingProfileId (removed)
Description :  Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
{
billingAccountId: string ,
billingProfileId: string ,
startDate: string ,
endDate: string ,
api-version: string ,
}

⚐ Response (200)

{
status: enum ,
properties:
{
reportUrl: enum ,
validUntil: string ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ScheduledActions_List (removed)
Description :  List all private scheduled actions.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/scheduledActions
{
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_ListByScope (removed)
Description :  List all shared scheduled actions within the given scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/scheduledActions
{
scope: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CreateOrUpdate (removed)
Description :  Create or update a private scheduled action.
Reference :  Link ¶

⚼ Request

PUT:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
scheduledAction:
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Get (removed)
Description :  Get the private scheduled action by name.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Delete (removed)
Description :  Delete a private scheduled action.
Reference :  Link ¶

⚼ Request

DELETE:  /providers/Microsoft.CostManagement/scheduledActions/{name}
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CreateOrUpdateByScope (removed)
Description :  Create or update a shared scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
scheduledAction:
{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}
,
If-Match: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_GetByScope (removed)
Description :  Get the shared scheduled action from the given scope by name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
fileDestination:
{
fileFormats:
[
string ,
]
,
}
,
notification:
{
to:
[
string ,
]
,
language: string ,
message: string ,
regionalFormat: string ,
subject: string ,
}
,
notificationEmail: string ,
schedule:
{
frequency: enum ,
hourOfDay: integer ,
daysOfWeek:
[
string ,
]
,
weeksOfMonth:
[
string ,
]
,
dayOfMonth: integer ,
startDate: string ,
endDate: string ,
}
,
scope: string ,
status: enum ,
viewId: string ,
}
,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_DeleteByScope (removed)
Description :  Delete a scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_Run (removed)
Description :  Processes a private scheduled action.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/scheduledActions/{name}/execute
{
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_RunByScope (removed)
Description :  Runs a shared scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute
{
scope: string ,
name: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CheckNameAvailability (removed)
Description :  Checks availability and correctness of the name for a scheduled action.
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.CostManagement/checkNameAvailability
{
api-version: string ,
checkNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}
ScheduledActions_CheckNameAvailabilityByScope (removed)
Description :  Checks availability and correctness of the name for a scheduled action within the given scope.
Reference :  Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.CostManagement/checkNameAvailability
{
scope: string ,
api-version: string ,
checkNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
details:
[
string ,
]
,
}
,
}