Microsoft.CostManagement (preview:2022-08-01)

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

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 ,
]
,
}
,
}
,
}
,
}
,
$skiptoken: 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 ,
]
,
}
,
}
,
}
,
}
,
$skiptoken: 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 ,
}
,
}
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 ,
]
,
}
,
}
,
}
,
}
,
$skiptoken: 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 ,
]
,
}
,
}
,
}
,
}
,
$skiptoken: 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 ,
}
,
}