Microsoft.Consumption (stable:2021-05-01)

2025/10/30 • 31 new, 31 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:
[
{
kind: enum ,
}
,
]
,
nextLink: 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 ,
additionalInfo: 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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
]
,
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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (new)
Description The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.
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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ 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 ,
value:
[
string ,
]
,
}
,
]
,
nextLink: string ,
previousLink: string ,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
}

⚐ 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
{
resourceScope: string ,
grain: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: 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 ,
instanceFlexibilityRatio: string ,
instanceFlexibilityGroup: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
kind: string ,
}
,
}
,
]
,
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 ,
instanceFlexibilityRatio: string ,
instanceFlexibilityGroup: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
kind: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
{
resourceScope: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: string ,
api-version: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
previousLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationRecommendationDetails_Get (new)
Description Details of a reservation recommendation for what-if analysis of reserved instances.
Reference Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
{
api-version: string ,
resourceScope: string ,
scope: string ,
region: string ,
term: string ,
lookBackPeriod: string ,
product: string ,
}

⚐ Response (200)

{
location: string ,
sku: string ,
etag: string ,
properties:
{
currency: string ,
resource:
{
appliedScopes:
[
string ,
]
,
onDemandRate: number ,
product: string ,
region: string ,
reservationRate: number ,
resourceType: string ,
}
,
resourceGroup: string ,
savings:
{
calculatedSavings:
[
{
onDemandCost: number ,
overageCost: number ,
quantity: number ,
reservationCost: number ,
totalReservationCost: number ,
reservedUnitCount: number ,
savings: number ,
}
,
]
,
lookBackPeriod: integer ,
recommendedQuantity: number ,
reservationOrderTerm: string ,
savingsType: string ,
unitOfMeasure: string ,
}
,
scope: string ,
usage:
{
firstConsumptionDate: string ,
lastConsumptionDate: string ,
lookBackUnitType: string ,
usageData:
[
number ,
]
,
usageGrain: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationTransactions_List (new)
Description List of transactions for reserved instances on billing account scope
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
eventDate: string ,
reservationOrderId: string ,
description: string ,
eventType: string ,
quantity: number ,
amount: number ,
currency: string ,
reservationOrderName: string ,
purchasingEnrollment: string ,
purchasingSubscriptionGuid: string ,
purchasingSubscriptionName: string ,
armSkuName: string ,
term: string ,
region: string ,
accountName: string ,
accountOwnerEmail: string ,
departmentName: string ,
costCenter: string ,
currentEnrollment: string ,
billingFrequency: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationTransactions_ListByBillingProfile (new)
Description List of transactions for reserved instances on billing account scope
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/reservationTransactions
{
$filter: string ,
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
amount: number ,
armSkuName: string ,
billingFrequency: string ,
billingProfileId: string ,
billingProfileName: string ,
currency: string ,
description: string ,
eventDate: string ,
eventType: string ,
invoice: string ,
invoiceId: string ,
invoiceSectionId: string ,
invoiceSectionName: string ,
purchasingSubscriptionGuid: string ,
purchasingSubscriptionName: string ,
quantity: number ,
region: string ,
reservationOrderId: string ,
reservationOrderName: string ,
term: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Get (new)
Description Gets the price sheet for a subscription. 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 ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: 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 ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecasts_List (new)
Description Lists the forecast charges for scope defined. Please note that this API is no longer actively under development. We recommend using our new Forecast API moving forward: https://docs.microsoft.com/en-us/rest/api/cost-management/forecast/usage.
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:
[
{
id: string ,
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: 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}/providers/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 ,
}
,
}
Events_ListByBillingProfile (new)
Description Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/events
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
billingProfileId: string ,
billingProfileDisplayName: string ,
lotId: string ,
lotSource: string ,
canceledCredit:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
creditExpiredInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
newCreditInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
adjustmentsInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
chargesInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Events_ListByBillingAccount (new)
Description Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
billingProfileId: string ,
billingProfileDisplayName: string ,
lotId: string ,
lotSource: string ,
canceledCredit:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
creditExpiredInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
newCreditInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
adjustmentsInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
chargesInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Lots_ListByBillingProfile (new)
Description Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
purchasedDate: string ,
status: enum ,
creditCurrency: string ,
billingCurrency: string ,
originalAmountInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Lots_ListByBillingAccount (new)
Description Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
purchasedDate: string ,
status: enum ,
creditCurrency: string ,
billingCurrency: string ,
originalAmountInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Credits_Get (new)
Description The credit summary by billingAccountId and billingProfileId.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/credits/balanceSummary
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
balanceSummary:
{
estimatedBalance:
{
currency: string ,
value: number ,
}
,
currentBalance:
{
currency: string ,
value: number ,
}
,
estimatedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
pendingCreditAdjustments:
{
currency: string ,
value: number ,
}
,
expiredCredit:
{
currency: string ,
value: number ,
}
,
pendingEligibleCharges:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ 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:
[
{
kind: enum ,
}
,
]
,
nextLink: 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 ,
additionalInfo: 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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
]
,
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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_CreateOrUpdate (removed)
Description The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.
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 ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filter:
{
and:
[
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
]
,
not:
{
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
dimensions:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
tags:
{
name: string ,
operator: enum ,
values:
[
string ,
]
,
}
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
forecastSpend:
{
amount: number ,
unit: string ,
}
,
}
,
}

⚐ 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 ,
value:
[
string ,
]
,
}
,
]
,
nextLink: string ,
previousLink: string ,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
}

⚐ 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: number ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
{
resourceScope: string ,
grain: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
kind: string ,
purchasedQuantity: number ,
remainingQuantity: number ,
totalReservedQuantity: number ,
usedQuantity: number ,
utilizedPercentage: 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 ,
instanceFlexibilityRatio: string ,
instanceFlexibilityGroup: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
kind: string ,
}
,
}
,
]
,
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 ,
instanceFlexibilityRatio: string ,
instanceFlexibilityGroup: string ,
reservationId: string ,
skuName: string ,
reservedHours: number ,
usageDate: string ,
usedHours: number ,
instanceId: string ,
totalReservedQuantity: number ,
kind: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
{
resourceScope: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: string ,
api-version: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
}
,
]
,
nextLink: string ,
previousLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationRecommendationDetails_Get (removed)
Description Details of a reservation recommendation for what-if analysis of reserved instances.
Reference Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationRecommendationDetails
{
api-version: string ,
resourceScope: string ,
scope: string ,
region: string ,
term: string ,
lookBackPeriod: string ,
product: string ,
}

⚐ Response (200)

{
location: string ,
sku: string ,
etag: string ,
properties:
{
currency: string ,
resource:
{
appliedScopes:
[
string ,
]
,
onDemandRate: number ,
product: string ,
region: string ,
reservationRate: number ,
resourceType: string ,
}
,
resourceGroup: string ,
savings:
{
calculatedSavings:
[
{
onDemandCost: number ,
overageCost: number ,
quantity: number ,
reservationCost: number ,
totalReservationCost: number ,
reservedUnitCount: number ,
savings: number ,
}
,
]
,
lookBackPeriod: integer ,
recommendedQuantity: number ,
reservationOrderTerm: string ,
savingsType: string ,
unitOfMeasure: string ,
}
,
scope: string ,
usage:
{
firstConsumptionDate: string ,
lastConsumptionDate: string ,
lookBackUnitType: string ,
usageData:
[
number ,
]
,
usageGrain: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationTransactions_List (removed)
Description List of transactions for reserved instances on billing account scope
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
eventDate: string ,
reservationOrderId: string ,
description: string ,
eventType: string ,
quantity: number ,
amount: number ,
currency: string ,
reservationOrderName: string ,
purchasingEnrollment: string ,
purchasingSubscriptionGuid: string ,
purchasingSubscriptionName: string ,
armSkuName: string ,
term: string ,
region: string ,
accountName: string ,
accountOwnerEmail: string ,
departmentName: string ,
costCenter: string ,
currentEnrollment: string ,
billingFrequency: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationTransactions_ListByBillingProfile (removed)
Description List of transactions for reserved instances on billing account scope
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/reservationTransactions
{
$filter: string ,
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
amount: number ,
armSkuName: string ,
billingFrequency: string ,
billingProfileId: string ,
billingProfileName: string ,
currency: string ,
description: string ,
eventDate: string ,
eventType: string ,
invoice: string ,
invoiceId: string ,
invoiceSectionId: string ,
invoiceSectionName: string ,
purchasingSubscriptionGuid: string ,
purchasingSubscriptionName: string ,
quantity: number ,
region: string ,
reservationOrderId: string ,
reservationOrderName: string ,
term: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Get (removed)
Description Gets the price sheet for a subscription. 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 ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: 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 ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Forecasts_List (removed)
Description Lists the forecast charges for scope defined. Please note that this API is no longer actively under development. We recommend using our new Forecast API moving forward: https://docs.microsoft.com/en-us/rest/api/cost-management/forecast/usage.
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:
[
{
id: string ,
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: 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}/providers/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 ,
}
,
}
Events_ListByBillingProfile (removed)
Description Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/events
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
startDate: string ,
endDate: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
billingProfileId: string ,
billingProfileDisplayName: string ,
lotId: string ,
lotSource: string ,
canceledCredit:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
creditExpiredInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
newCreditInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
adjustmentsInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
chargesInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Events_ListByBillingAccount (removed)
Description Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
transactionDate: string ,
description: string ,
newCredit:
{
currency: string ,
value: number ,
}
,
adjustments:
{
currency: string ,
value: number ,
}
,
creditExpired:
{
currency: string ,
value: number ,
}
,
charges:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
eventType: enum ,
invoiceNumber: string ,
billingProfileId: string ,
billingProfileDisplayName: string ,
lotId: string ,
lotSource: string ,
canceledCredit:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
creditExpiredInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
newCreditInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
adjustmentsInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
chargesInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Lots_ListByBillingProfile (removed)
Description Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
purchasedDate: string ,
status: enum ,
creditCurrency: string ,
billingCurrency: string ,
originalAmountInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Lots_ListByBillingAccount (removed)
Description Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile. Microsoft Azure consumption commitments are only supported for the billing account scope.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
originalAmount:
{
currency: string ,
value: number ,
}
,
closedBalance:
{
currency: string ,
value: number ,
}
,
source: enum ,
startDate: string ,
expirationDate: string ,
poNumber: string ,
purchasedDate: string ,
status: enum ,
creditCurrency: string ,
billingCurrency: string ,
originalAmountInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
closedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Credits_Get (removed)
Description The credit summary by billingAccountId and billingProfileId.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/credits/balanceSummary
{
billingAccountId: string ,
billingProfileId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
balanceSummary:
{
estimatedBalance:
{
currency: string ,
value: number ,
}
,
currentBalance:
{
currency: string ,
value: number ,
}
,
estimatedBalanceInBillingCurrency:
{
exchangeRate: number ,
exchangeRateMonth: integer ,
}
,
}
,
pendingCreditAdjustments:
{
currency: string ,
value: number ,
}
,
expiredCredit:
{
currency: string ,
value: number ,
}
,
pendingEligibleCharges:
{
currency: string ,
value: number ,
}
,
creditCurrency: string ,
billingCurrency: string ,
reseller:
{
resellerId: string ,
resellerDescription: string ,
}
,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

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