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

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

Reports_List (new)
Description Lists all reports for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByResourceGroupName (new)
Description Lists all reports for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByBillingAccount (new)
Description Lists all reports for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByDepartment (new)
Description Lists all reports for a department.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
departmentId: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Get (new)
Description Gets the report for a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Delete (new)
Description The operation to delete a report.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByResourceGroupName (new)
Description Gets the report for a resource group under a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByResourceGroupName (new)
Description The operation to delete a report.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByBillingAccount (new)
Description Gets the report for a billing account by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_CreateOrUpdateByBillingAccount (new)
Description The operation to create or update a report for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByBillingAccount (new)
Description The operation to delete a report for billing account.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByDepartment (new)
Description Gets the report for a department by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_CreateOrUpdateByDepartment (new)
Description The operation to create or update a report for department. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByDepartment (new)
Description The operation to delete a report for department.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Execute (new)
Description The operation to execute a report.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByResourceGroupName (new)
Description The operation to execute a report.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByBillingAccount (new)
Description The operation to execute a report by billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByDepartment (new)
Description The operation to execute a report by department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistory (new)
Description Gets the execution history of a report for a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByResourceGroupName (new)
Description Gets the execution history of a report for a resource group by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByBillingAccount (new)
Description Gets the execution history of a report for a billing account by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByDepartment (new)
Description Gets the execution history of a report for a department by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
BillingAccountDimensions_List (new)
Description Lists the dimensions by billingAccount Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
SubscriptionDimensions_List (new)
Description Lists the dimensions by subscription Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ResourceGroupDimensions_List (new)
Description Lists the dimensions by resource group Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QuerySubscription (new)
Description Lists the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QueryResourceGroup (new)
Description Lists the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QueryBillingAccount (new)
Description Lists the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_List (new)
Description List all connector definitions for a subscription
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/connectors
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_ListByResourceGroupName (new)
Description List all connector definitions for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Get (new)
Description Get a connector definition
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_CreateOrUpdate (new)
Description Create or update a connector definition
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Delete (new)
Description Delete a connector definition
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Update (new)
Description Update a connector definition
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_List (new)
Description List all alerts for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByResourceGroupName (new)
Description List all alerts for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByEnrollment (new)
Description List all alerts for an enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByDepartment (new)
Description List all alerts for a department.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByAccount (new)
Description List all alerts for an account.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByManagementGroups (new)
Description List all alerts for Management Groups.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetBySubscription (new)
Description Gets the alert for a subscription by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByResourceGroupName (new)
Description Gets the alert for a resource group under a subscription by alert ID.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByEnrollment (new)
Description Gets the alert for an enrollment by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByDepartment (new)
Description Gets the alert for a department by alert ID.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByAccount (new)
Description Gets the alert for an account by alert ID.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetAlertByManagementGroups (new)
Description Gets an alert for Management Groups by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateSubscriptionAlertStatus (new)
Description Update alerts status for a subscription.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
subscriptionId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateResourceGroupNameAlertStatus (new)
Description Update alerts status for a resource group under a subscription.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
subscriptionId: string ,
resourceGroupName: string ,
alertId: string ,
api-version: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateBillingAccountAlertStatus (new)
Description Update alerts status for billing account.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateDepartmentsAlertStatus (new)
Description Update alerts status for a department.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateEnrollmentAccountAlertStatus (new)
Description Update alerts status for an enrollment account.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateManagementGroupAlertStatus (new)
Description Update alerts status for management group.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}/UpdateStatus
{
api-version: string ,
managementGroupId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_List (removed)
Description Lists all reports for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByResourceGroupName (removed)
Description Lists all reports for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByBillingAccount (removed)
Description Lists all reports for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ListByDepartment (removed)
Description Lists all reports for a department.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports
{
api-version: string ,
departmentId: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Get (removed)
Description Gets the report for a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Delete (removed)
Description The operation to delete a report.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByResourceGroupName (removed)
Description Gets the report for a resource group under a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByResourceGroupName (removed)
Description The operation to delete a report.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByBillingAccount (removed)
Description Gets the report for a billing account by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_CreateOrUpdateByBillingAccount (removed)
Description The operation to create or update a report for billingAccount. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByBillingAccount (removed)
Description The operation to delete a report for billing account.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetByDepartment (removed)
Description Gets the report for a department by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_CreateOrUpdateByDepartment (removed)
Description The operation to create or update a report for department. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_DeleteByDepartment (removed)
Description The operation to delete a report for department.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_Execute (removed)
Description The operation to execute a report.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByResourceGroupName (removed)
Description The operation to execute a report.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByBillingAccount (removed)
Description The operation to execute a report by billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_ExecuteByDepartment (removed)
Description The operation to execute a report by department.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/run
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistory (removed)
Description Gets the execution history of a report for a subscription by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
subscriptionId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByResourceGroupName (removed)
Description Gets the execution history of a report for a resource group by report name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByBillingAccount (removed)
Description Gets the execution history of a report for a billing account by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
billingAccountId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Reports_GetExecutionHistoryByDepartment (removed)
Description Gets the execution history of a report for a department by report name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.CostManagement/reports/{reportName}/runHistory
{
api-version: string ,
departmentId: string ,
reportName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
executionType: enum ,
status: enum ,
submittedBy: string ,
submittedTime: string ,
processingStartTime: string ,
processingEndTime: string ,
fileName: string ,
reportSettings:
{
format: enum ,
deliveryInfo:
{
destination:
{
resourceId: string ,
container: string ,
rootFolderPath: string ,
}
,
}
,
definition:
{
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 (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
BillingAccountDimensions_List (removed)
Description Lists the dimensions by billingAccount Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
SubscriptionDimensions_List (removed)
Description Lists the dimensions by subscription Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
ResourceGroupDimensions_List (removed)
Description Lists the dimensions by resource group Id.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QuerySubscription (removed)
Description Lists the usage data for subscriptionId.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QueryResourceGroup (removed)
Description Lists the usage data for subscriptionId and resource group.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
QueryBillingAccount (removed)
Description Lists the usage data for billing account.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query
{
api-version: string ,
billingAccountId: 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)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_List (removed)
Description List all connector definitions for a subscription
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/connectors
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_ListByResourceGroupName (removed)
Description List all connector definitions for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Get (removed)
Description Get a connector definition
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_CreateOrUpdate (removed)
Description Create or update a connector definition
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (201)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Delete (removed)
Description Delete a connector definition
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Connector_Update (removed)
Description Update a connector definition
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
connectorName: string ,
connector:
{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}
,
}

⚐ Response (200)

{
kind: string ,
id: string ,
name: string ,
type: string ,
location: string ,
tags: object ,
properties:
{
displayName: string ,
providerAccountId: string ,
credentialsKey: string ,
credentialsSecret: string ,
reportId: string ,
createdOn: string ,
modifiedOn: string ,
status: enum ,
collection:
{
lastRun: string ,
sourceLastUpdated: string ,
lastUpdated: string ,
error:
{
errorMessage: string ,
errorCode: string ,
errorStartTime: string ,
}
,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_List (removed)
Description List all alerts for a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByResourceGroupName (removed)
Description List all alerts for a resource group under a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByEnrollment (removed)
Description List all alerts for an enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByDepartment (removed)
Description List all alerts for a department.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByAccount (removed)
Description List all alerts for an account.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_ListByManagementGroups (removed)
Description List all alerts for Management Groups.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetBySubscription (removed)
Description Gets the alert for a subscription by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByResourceGroupName (removed)
Description Gets the alert for a resource group under a subscription by alert ID.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}
{
subscriptionId: string ,
resourceGroupName: string ,
api-version: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByEnrollment (removed)
Description Gets the alert for an enrollment by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByDepartment (removed)
Description Gets the alert for a department by alert ID.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetByAccount (removed)
Description Gets the alert for an account by alert ID.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
alertId: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_GetAlertByManagementGroups (removed)
Description Gets an alert for Management Groups by alert ID.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateSubscriptionAlertStatus (removed)
Description Update alerts status for a subscription.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
subscriptionId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateResourceGroupNameAlertStatus (removed)
Description Update alerts status for a resource group under a subscription.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
subscriptionId: string ,
resourceGroupName: string ,
alertId: string ,
api-version: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateBillingAccountAlertStatus (removed)
Description Update alerts status for billing account.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateDepartmentsAlertStatus (removed)
Description Update alerts status for a department.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
departmentId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateEnrollmentAccountAlertStatus (removed)
Description Update alerts status for an enrollment account.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/alerts/{alertId}/updateStatus
{
api-version: string ,
billingAccountId: string ,
enrollmentAccountId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}
Alerts_UpdateManagementGroupAlertStatus (removed)
Description Update alerts status for management group.
Reference Link ¶

⚼ Request

PATCH:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/alerts/{alertId}/UpdateStatus
{
api-version: string ,
managementGroupId: string ,
alertId: string ,
parameters:
{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
costEntityId: string ,
definition:
{
category: enum ,
type: enum ,
criteria: enum ,
}
,
description: string ,
scope: string ,
source: enum ,
details: object ,
creationTime: string ,
closeTime: string ,
status: enum ,
statusModificationTime: string ,
modificationTime: string ,
modificationUsername: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: 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 ,
target: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
}
,
]
,
}
,
}