Microsoft.CostManagement (stable:2021-10-01)

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

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:
[
{
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)

{
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 an export. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given export, perform a get operation prior to your put operation.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
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 execute 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 execution 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 ,
}
,
}
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:
{
downloadUrl: string ,
validTill: 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 Get the result of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
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:
{
downloadUrl: string ,
validTill: 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 ,
}
,
type: string ,
error:
{
code: string ,
message: string ,
}
,
properties:
{
downloadUrl: string ,
validTill: 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 ,
}
,
}
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 ,
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ 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:
[
{
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)

{
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 an export. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given export, perform a get operation prior to your put operation.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
schedule:
{
status: enum ,
recurrence: enum ,
recurrencePeriod:
{
from: string ,
to: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
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 execute 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 execution 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 ,
}
,
}
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:
{
downloadUrl: string ,
validTill: 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 Get the result of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
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:
{
downloadUrl: string ,
validTill: 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 ,
}
,
type: string ,
error:
{
code: string ,
message: string ,
}
,
properties:
{
downloadUrl: string ,
validTill: 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 ,
}
,
}
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 ,
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}