Microsoft.Consumption (stable:2024-08-01)

2025/10/23 • 32 new, 31 deleted methods

Budgets_List (new)
Description :  Lists all budgets for the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/budgets
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Budgets_Get (new)
Description :  Gets the budget for the scope by budget name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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}
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Budgets_Delete (new)
Description :  The operation to delete a budget.
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Charges_List (new)
Description :  Lists the charges based for the defined scope.
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
scope: string ,
$filter: string ,
$top: integer ,
$skiptoken: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_List (new)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
resourceScope: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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 ,
$filter: string ,
}

⚐ Response (200)

{
location: string ,
sku: 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 ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (204)

{}

⚐ 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
{
api-version: string ,
resourceScope: string ,
$filter: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
location: string ,
sku: string ,
etag: string ,
tags: object ,
kind: enum ,
}
,
]
,
nextLink: string ,
previousLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_List (new)
Description :  Lists the reservations summaries for the defined scope daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
resourceScope: string ,
grain: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Tags_Get (new)
Description :  Get all available tag keys for the defined scope
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
tags:
[
{
key: string ,
value:
[
string ,
]
,
}
,
]
,
nextLink: string ,
previousLink: string ,
}
,
eTag: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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. **Note:Microsoft will be retiring the Consumption Usage Details API at some point in the future. We do not recommend that you take a new dependency on this API. Please use the Cost Details API instead. We will notify customers once a date for retirement has been determined.For Learn more,see [Generate Cost Details Report - Create Operation](https://learn.microsoft.com/en-us/rest/api/cost-management/generate-cost-details-report/create-operation?tabs=HTTP)**
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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}/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 ,
overageRefund: number ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PriceSheet_DownloadByBillingAccountPeriod (new)
Description :  Generates the pricesheet for the provided billing period asynchronously based on the enrollment id
Reference :  Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/pricesheets/download
{
api-version: string ,
billingAccountId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

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

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
tags: object ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
billingAccountId: string ,
billingAccountDisplayName: string ,
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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByBillingProfile (new)
Description :  Lists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationTransactions_ListByBillingProfile (new)
Description :  List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/reservationTransactions
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
$filter: 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 ,
}
,
tags:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByCustomer (new)
Description :  Lists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: string ,
customerId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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 ,
overageRefund: number ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: 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 ,
}
,
billingAccountId: string ,
billingAccountDisplayName: string ,
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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByBillingAccount (new)
Description :  Lists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationTransactions_List (new)
Description :  List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

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

⚐ 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 ,
billingMonth: integer ,
monetaryCommitment: number ,
overage: number ,
}
,
tags:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_ListByReservationOrder (new)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
reservationOrderId: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_ListByReservationOrder (new)
Description :  Lists the reservations summaries for daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
reservationOrderId: string ,
grain: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_ListByReservationOrderAndReservation (new)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
reservationOrderId: string ,
reservationId: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_ListByReservationOrderAndReservation (new)
Description :  Lists the reservations summaries for daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
reservationOrderId: string ,
reservationId: string ,
grain: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Operations_List (new)
Description :  List the operations for the provider
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 ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
managementGroupId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
managementGroupId: 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 ,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
subscriptionId: string ,
billingPeriodName: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ 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 ,
savingsPlan:
{
term: string ,
marketPrice: number ,
effectivePrice: number ,
}
,
}
,
]
,
nextLink: string ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
subscriptionId: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ 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 ,
savingsPlan:
{
term: string ,
marketPrice: number ,
effectivePrice: number ,
}
,
}
,
]
,
nextLink: string ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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. **Note:Microsoft will be retiring the Consumption Usage Details API at some point in the future. We do not recommend that you take a new dependency on this API. Please use the Cost Details API instead. We will notify customers once a date for retirement has been determined.For Learn more,see [Generate Cost Details Report - Create Operation](https://learn.microsoft.com/en-us/rest/api/cost-management/generate-cost-details-report/create-operation?tabs=HTTP)**
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
kind: enum ,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
scope: string ,
$filter: string ,
$top: integer ,
$skiptoken: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Budgets_List (removed)
Description :  Lists all budgets for the defined scope.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/budgets
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Budgets_Get (removed)
Description :  Gets the budget for the scope by budget name.
Reference :  Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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}
{
api-version: string ,
scope: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: 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 ,
]
,
}
,
}
,
]
,
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 ,
}
,
}
,
eTag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Budgets_Delete (removed)
Description :  The operation to delete a budget.
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Tags_Get (removed)
Description :  Get all available tag keys for the defined scope
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
tags:
[
{
key: string ,
value:
[
string ,
]
,
}
,
]
,
nextLink: string ,
previousLink: string ,
}
,
eTag: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Charges_List (removed)
Description :  Lists the charges based for the defined scope.
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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 ,
overageRefund: number ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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}/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 ,
overageRefund: number ,
newPurchasesDetails:
[
{
name: string ,
value: number ,
}
,
]
,
adjustmentDetails:
[
{
name: string ,
value: number ,
}
,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_ListByReservationOrder (removed)
Description :  Lists the reservations summaries for daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
reservationOrderId: string ,
grain: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_ListByReservationOrderAndReservation (removed)
Description :  Lists the reservations summaries for daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
reservationOrderId: string ,
reservationId: string ,
grain: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsSummaries_List (removed)
Description :  Lists the reservations summaries for the defined scope daily or monthly grain. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationSummaries
{
api-version: string ,
resourceScope: string ,
grain: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_ListByReservationOrder (removed)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
reservationOrderId: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_ListByReservationOrderAndReservation (removed)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
reservationOrderId: string ,
reservationId: string ,
$filter: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationsDetails_List (removed)
Description :  Lists the reservations details for provided date range. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. If the data size is too large, customers may also get 504 as the API timed out preparing the data. In such cases, API call should be made with smaller date ranges or a call to Generate Reservation Details Report API should be made as it is asynchronous and will not run into response size time outs.
Reference :  Link ¶

⚼ Request

GET:  /{resourceScope}/providers/Microsoft.Consumption/reservationDetails
{
api-version: string ,
resourceScope: string ,
startDate: string ,
endDate: string ,
$filter: string ,
reservationId: string ,
reservationOrderId: 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 ,
}
,
etag: string ,
tags: object ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationRecommendations_List (removed)
Description :  List of recommendations for purchasing reserved instances.
Reference :  Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
location: string ,
sku: string ,
etag: string ,
tags: object ,
kind: enum ,
}
,
]
,
nextLink: string ,
previousLink: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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 ,
$filter: string ,
}

⚐ Response (200)

{
location: string ,
sku: 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 ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
ReservationTransactions_List (removed)
Description :  List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

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

⚐ 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 ,
billingMonth: integer ,
monetaryCommitment: number ,
overage: number ,
}
,
tags:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ReservationTransactions_ListByBillingProfile (removed)
Description :  List of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/reservationTransactions
{
api-version: string ,
billingAccountId: string ,
billingProfileId: string ,
$filter: 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 ,
}
,
tags:
[
string ,
]
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
subscriptionId: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ 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 ,
savingsPlan:
{
term: string ,
marketPrice: number ,
effectivePrice: number ,
}
,
}
,
]
,
nextLink: string ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
subscriptionId: string ,
billingPeriodName: string ,
$expand: string ,
$skiptoken: string ,
$top: integer ,
}

⚐ 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 ,
savingsPlan:
{
term: string ,
marketPrice: number ,
effectivePrice: number ,
}
,
}
,
]
,
nextLink: string ,
download:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
serviceName: string ,
serviceTier: string ,
}
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Operations_List (removed)
Description :  List the operations for the provider
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 ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
managementGroupId: 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 ,
]
,
}
,
etag: string ,
tags: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
managementGroupId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
billingAccountId: string ,
billingAccountDisplayName: string ,
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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: 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 ,
}
,
billingAccountId: string ,
billingAccountDisplayName: string ,
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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByBillingProfile (removed)
Description :  Lists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByBillingAccount (removed)
Description :  Lists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Lots_ListByCustomer (removed)
Description :  Lists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.
Reference :  Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}/providers/Microsoft.Consumption/lots
{
api-version: string ,
billingAccountId: string ,
customerId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
OrganizationType: enum ,
usedAmount:
{
currency: string ,
value: number ,
}
,
}
,
eTag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
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
{
api-version: string ,
billingAccountId: string ,
billingProfileId: 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 ,
}
,
isEstimatedBalance: boolean ,
eTag: string ,
}
,
eTag: string ,
tags: object ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}