Microsoft.Consumption (preview:2019-04-01)

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

UsageDetails_List (new)
Description Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
billingAccountId: string ,
billingAccountName: string ,
billingPeriodStartDate: string ,
billingPeriodEndDate: string ,
billingProfileId: string ,
billingProfileName: string ,
accountOwnerId: string ,
accountName: string ,
subscriptionId: string ,
subscriptionName: string ,
date: string ,
product: string ,
partNumber: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unitOfMeasure: string ,
serviceFamily: string ,
}
,
quantity: number ,
effectivePrice: number ,
cost: number ,
unitPrice: number ,
billingCurrency: string ,
resourceLocation: string ,
consumedService: string ,
resourceId: string ,
resourceName: string ,
serviceInfo1: string ,
serviceInfo2: string ,
additionalInfo: string ,
invoiceSection: string ,
costCenter: string ,
resourceGroup: string ,
reservationId: string ,
reservationName: string ,
productOrderId: string ,
productOrderName: string ,
offerId: string ,
isAzureCreditEligible: boolean ,
term: string ,
publisherName: string ,
publisherType: string ,
planName: string ,
chargeType: string ,
frequency: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_Download (new)
Description Download usage details data.
Reference Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.Consumption/usageDetails/download
{
scope: string ,
api-version: string ,
metric: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
validTill: string ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Marketplaces_List (new)
Description Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
resourceRate: number ,
offerName: string ,
resourceGroup: string ,
orderNumber: string ,
instanceName: string ,
instanceId: string ,
currency: string ,
consumedQuantity: number ,
unitOfMeasure: string ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
publisherName: string ,
planName: string ,
isRecurringCharge: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (new)
Description The operation to create or update a budget. 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:  /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Tags_Get (new)
Description Get all available tag keys for the defined scope
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/tags
{
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
tags:
[
{
key: string ,
}
,
]
,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
chargesBilledSeparately: number ,
marketplaceCharges: number ,
currency: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Balances_GetByBillingAccount (new)
Description Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
currency: string ,
beginningBalance: number ,
endingBalance: number ,
newPurchases: number ,
adjustments: number ,
utilized: number ,
serviceOverage: number ,
chargesBilledSeparately: number ,
totalOverage: number ,
totalUsage: number ,
azureMarketplaceServiceCharges: number ,
billingFrequency: enum ,
priceHidden: boolean ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Balances_GetForBillingPeriodByBillingAccount (new)
Description Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances
{
api-version: string ,
billingAccountId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

{
properties:
{
currency: string ,
beginningBalance: number ,
endingBalance: number ,
newPurchases: number ,
adjustments: number ,
utilized: number ,
serviceOverage: number ,
chargesBilledSeparately: number ,
totalOverage: number ,
totalUsage: number ,
azureMarketplaceServiceCharges: number ,
billingFrequency: enum ,
priceHidden: boolean ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
}

⚐ Response (default)

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

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries
{
reservationOrderId: string ,
grain: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
minUtilizationPercentage: number ,
avgUtilizationPercentage: number ,
maxUtilizationPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries
{
reservationOrderId: string ,
reservationId: string ,
grain: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
minUtilizationPercentage: number ,
avgUtilizationPercentage: number ,
maxUtilizationPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationsDetails_ListByReservationOrder (new)
Description Lists the reservations details for provided date range.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails
{
reservationOrderId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationsDetails_ListByReservationOrderAndReservation (new)
Description Lists the reservations details for provided date range.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails
{
reservationOrderId: string ,
reservationId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationRecommendations_List (new)
Description List of recommendations for purchasing reserved instances.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
lookBackPeriod: string ,
meterId: string ,
term: string ,
costWithNoReservedInstances: number ,
recommendedQuantity: number ,
totalCostWithReservedInstances: number ,
netSavings: number ,
firstUsageDate: string ,
scope: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Get (new)
Description Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default
{
$expand: string ,
$skiptoken: string ,
$top: integer ,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
pricesheets:
[
{
billingPeriodId: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
unitOfMeasure: string ,
includedQuantity: number ,
partNumber: string ,
unitPrice: number ,
currencyCode: string ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_GetByBillingPeriod (new)
Description Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default
{
$expand: string ,
$skiptoken: string ,
$top: integer ,
subscriptionId: string ,
api-version: string ,
billingPeriodName: string ,
}

⚐ Response (200)

{
properties:
{
pricesheets:
[
{
billingPeriodId: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
unitOfMeasure: string ,
includedQuantity: number ,
partNumber: string ,
unitPrice: number ,
currencyCode: string ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecasts_List (new)
Description Lists the forecast charges by subscriptionId.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/forecasts
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
usageDate: string ,
grain: enum ,
charge: number ,
currency: string ,
chargeType: enum ,
confidenceLevels:
[
{
percentage: number ,
bound: enum ,
value: number ,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Operations_List (new)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/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 ,
}
,
}
AggregatedCost_GetByManagementGroup (new)
Description Provides the aggregate cost of a management group and all child management groups by current billing period.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
{
managementGroupId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
marketplaceCharges: number ,
chargesBilledSeparately: number ,
currency: string ,
children:
[
string ,
]
,
includedSubscriptions:
[
string ,
]
,
excludedSubscriptions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
AggregatedCost_GetForBillingPeriodByManagementGroup (new)
Description Provides the aggregate cost of a management group and all child management groups by specified billing period
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost
{
managementGroupId: string ,
billingPeriodName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
marketplaceCharges: number ,
chargesBilledSeparately: number ,
currency: string ,
children:
[
string ,
]
,
includedSubscriptions:
[
string ,
]
,
excludedSubscriptions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_List (removed)
Description Lists the usage details for the defined scope. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
billingAccountId: string ,
billingAccountName: string ,
billingPeriodStartDate: string ,
billingPeriodEndDate: string ,
billingProfileId: string ,
billingProfileName: string ,
accountOwnerId: string ,
accountName: string ,
subscriptionId: string ,
subscriptionName: string ,
date: string ,
product: string ,
partNumber: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unitOfMeasure: string ,
serviceFamily: string ,
}
,
quantity: number ,
effectivePrice: number ,
cost: number ,
unitPrice: number ,
billingCurrency: string ,
resourceLocation: string ,
consumedService: string ,
resourceId: string ,
resourceName: string ,
serviceInfo1: string ,
serviceInfo2: string ,
additionalInfo: string ,
invoiceSection: string ,
costCenter: string ,
resourceGroup: string ,
reservationId: string ,
reservationName: string ,
productOrderId: string ,
productOrderName: string ,
offerId: string ,
isAzureCreditEligible: boolean ,
term: string ,
publisherName: string ,
publisherType: string ,
planName: string ,
chargeType: string ,
frequency: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_Download (removed)
Description Download usage details data.
Reference Link ¶

⚼ Request

POST:  /{scope}/providers/Microsoft.Consumption/usageDetails/download
{
scope: string ,
api-version: string ,
metric: string ,
}

⚐ Response (200)

{
properties:
{
downloadUrl: string ,
validTill: string ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Marketplaces_List (removed)
Description Lists the marketplaces for a scope at the defined scope. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
resourceRate: number ,
offerName: string ,
resourceGroup: string ,
orderNumber: string ,
instanceName: string ,
instanceId: string ,
currency: string ,
consumedQuantity: number ,
unitOfMeasure: string ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
publisherName: string ,
planName: string ,
isRecurringCharge: boolean ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (removed)
Description The operation to create or update a budget. 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:  /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
{
scope: string ,
api-version: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Tags_Get (removed)
Description Get all available tag keys for the defined scope
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/tags
{
scope: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
tags:
[
{
key: string ,
}
,
]
,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
chargesBilledSeparately: number ,
marketplaceCharges: number ,
currency: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Balances_GetByBillingAccount (removed)
Description Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
currency: string ,
beginningBalance: number ,
endingBalance: number ,
newPurchases: number ,
adjustments: number ,
utilized: number ,
serviceOverage: number ,
chargesBilledSeparately: number ,
totalOverage: number ,
totalUsage: number ,
azureMarketplaceServiceCharges: number ,
billingFrequency: enum ,
priceHidden: boolean ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Balances_GetForBillingPeriodByBillingAccount (removed)
Description Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances
{
api-version: string ,
billingAccountId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

{
properties:
{
currency: string ,
beginningBalance: number ,
endingBalance: number ,
newPurchases: number ,
adjustments: number ,
utilized: number ,
serviceOverage: number ,
chargesBilledSeparately: number ,
totalOverage: number ,
totalUsage: number ,
azureMarketplaceServiceCharges: number ,
billingFrequency: enum ,
priceHidden: boolean ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
}

⚐ Response (default)

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

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries
{
reservationOrderId: string ,
grain: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
minUtilizationPercentage: number ,
avgUtilizationPercentage: number ,
maxUtilizationPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries
{
reservationOrderId: string ,
reservationId: string ,
grain: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
minUtilizationPercentage: number ,
avgUtilizationPercentage: number ,
maxUtilizationPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationsDetails_ListByReservationOrder (removed)
Description Lists the reservations details for provided date range.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails
{
reservationOrderId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationsDetails_ListByReservationOrderAndReservation (removed)
Description Lists the reservations details for provided date range.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails
{
reservationOrderId: string ,
reservationId: string ,
$filter: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
reservationOrderId: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationRecommendations_List (removed)
Description List of recommendations for purchasing reserved instances.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
lookBackPeriod: string ,
meterId: string ,
term: string ,
costWithNoReservedInstances: number ,
recommendedQuantity: number ,
totalCostWithReservedInstances: number ,
netSavings: number ,
firstUsageDate: string ,
scope: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Get (removed)
Description Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default
{
$expand: string ,
$skiptoken: string ,
$top: integer ,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
pricesheets:
[
{
billingPeriodId: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
unitOfMeasure: string ,
includedQuantity: number ,
partNumber: string ,
unitPrice: number ,
currencyCode: string ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_GetByBillingPeriod (removed)
Description Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/default
{
$expand: string ,
$skiptoken: string ,
$top: integer ,
subscriptionId: string ,
api-version: string ,
billingPeriodName: string ,
}

⚐ Response (200)

{
properties:
{
pricesheets:
[
{
billingPeriodId: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
unitOfMeasure: string ,
includedQuantity: number ,
partNumber: string ,
unitPrice: number ,
currencyCode: string ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecasts_List (removed)
Description Lists the forecast charges by subscriptionId.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/forecasts
{
$filter: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
usageDate: string ,
grain: enum ,
charge: number ,
currency: string ,
chargeType: enum ,
confidenceLevels:
[
{
percentage: number ,
bound: enum ,
value: number ,
}
,
]
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Operations_List (removed)
Description Lists all of the available consumption REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Consumption/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 ,
}
,
}
AggregatedCost_GetByManagementGroup (removed)
Description Provides the aggregate cost of a management group and all child management groups by current billing period.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Consumption/aggregatedcost
{
managementGroupId: string ,
api-version: string ,
$filter: string ,
}

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
marketplaceCharges: number ,
chargesBilledSeparately: number ,
currency: string ,
children:
[
string ,
]
,
includedSubscriptions:
[
string ,
]
,
excludedSubscriptions:
[
string ,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
AggregatedCost_GetForBillingPeriodByManagementGroup (removed)
Description Provides the aggregate cost of a management group and all child management groups by specified billing period
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/Microsoft.Consumption/aggregatedcost
{
managementGroupId: string ,
billingPeriodName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
billingPeriodId: string ,
usageStart: string ,
usageEnd: string ,
azureCharges: number ,
marketplaceCharges: number ,
chargesBilledSeparately: number ,
currency: string ,
children:
[
string ,
]
,
includedSubscriptions:
[
string ,
]
,
excludedSubscriptions:
[
string ,
]
,
}
,
}

⚐ Response (default)

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