Microsoft.CostManagement (stable:2020-06-01)

2025/10/30 • 25 new, 25 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 a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
parameters:
{
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 ,
}
,
}
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 (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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: 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 a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.CostManagement/exports/{exportName}
{
scope: string ,
api-version: string ,
exportName: string ,
parameters:
{
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 ,
}
,
}
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
}
,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
}
,
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 (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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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 ,
]
,
not: string ,
dimension:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tag:
{
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 ,
}
,
}
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:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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