Microsoft.Consumption (stable:2018-01-31)

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

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
invoiceId: string ,
usageStart: string ,
usageEnd: string ,
instanceName: string ,
instanceId: string ,
instanceLocation: string ,
currency: string ,
usageQuantity: number ,
billableQuantity: number ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
}
,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
product: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByBillingPeriod (new)
Description Lists the usage details for a scope by billing period. Usage details are 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/usageDetails
{
subscriptionId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
invoiceId: string ,
usageStart: string ,
usageEnd: string ,
instanceName: string ,
instanceId: string ,
instanceLocation: string ,
currency: string ,
usageQuantity: number ,
billableQuantity: number ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
}
,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
product: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Marketplaces_ListByBillingPeriod (new)
Description Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are 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/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
subscriptionId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_ListByResourceGroupName (new)
Description Lists all budgets for a resource group under a subscription.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_GetByResourceGroupName (new)
Description Gets the budget for a resource group under a subscription by budget name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
invoiceId: string ,
usageStart: string ,
usageEnd: string ,
instanceName: string ,
instanceId: string ,
instanceLocation: string ,
currency: string ,
usageQuantity: number ,
billableQuantity: number ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
}
,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
product: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByBillingPeriod (removed)
Description Lists the usage details for a scope by billing period. Usage details are 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/usageDetails
{
subscriptionId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
billingPeriodId: string ,
invoiceId: string ,
usageStart: string ,
usageEnd: string ,
instanceName: string ,
instanceId: string ,
instanceLocation: string ,
currency: string ,
usageQuantity: number ,
billableQuantity: number ,
pretaxCost: number ,
isEstimated: boolean ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
}
,
subscriptionGuid: string ,
subscriptionName: string ,
accountName: string ,
departmentName: string ,
product: string ,
consumedService: string ,
costCenter: string ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Marketplaces_ListByBillingPeriod (removed)
Description Lists the marketplaces for a scope by billing period and subscriptionId. Marketplaces are 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/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
subscriptionId: string ,
billingPeriodName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_ListByResourceGroupName (removed)
Description Lists all budgets for a resource group under a subscription.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_GetByResourceGroupName (removed)
Description Gets the budget for a resource group under a subscription by budget name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
}

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
parameters:
{
properties:
{
category: enum ,
amount: number ,
timeGrain: enum ,
timePeriod:
{
startDate: string ,
endDate: string ,
}
,
filters:
{
resourceGroups:
[
string ,
]
,
resources:
[
string ,
]
,
meters:
[
string ,
]
,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Consumption/budgets/{budgetName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
budgetName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
name: string ,
display:
{
provider: string ,
resource: string ,
operation: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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