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

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

UsageDetails_List (new)
Description Lists the usage details for a scope by current 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 ,
$apply: string ,
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 ,
$apply: 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 ,
}
,
}
UsageDetailsByBillingAccount_List (new)
Description Lists the usage details by billingAccountId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/usageDetails
{
billingAccountId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByBillingAccount_ListByBillingPeriod (new)
Description Lists the usage details based on billingAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
billingAccountId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 ,
}
,
}
UsageDetailsByDepartment_List (new)
Description Lists the usage details by departmentId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Consumption/usageDetails
{
departmentId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByDepartment_ListByBillingPeriod (new)
Description Lists the usage details based on departmentId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
departmentId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 ,
}
,
}
UsageDetailsByEnrollmentAccount_List (new)
Description Lists the usage details by enrollmentAccountId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Consumption/usageDetails
{
enrollmentAccountId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByEnrollmentAccount_ListByBillingPeriod (new)
Description Lists the usage details based on enrollmentAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
enrollmentAccountId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 and current billing period. 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 ,
}
,
}
MarketplacesByBillingAccount_List (new)
Description Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
billingAccountId: 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 ,
}
,
}
MarketplacesByBillingAccount_ListByBillingPeriod (new)
Description Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
billingAccountId: 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 ,
}
,
}
MarketplacesByDepartment_List (new)
Description Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
departmentId: 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 ,
}
,
}
MarketplacesByDepartment_ListByBillingPeriod (new)
Description Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
departmentId: 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 ,
}
,
}
MarketplacesByEnrollmentAccounts_List (new)
Description Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
enrollmentAccountId: 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 ,
}
,
}
MarketplacesByEnrollmentAccounts_ListByBillingPeriod (new)
Description Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
enrollmentAccountId: 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 ,
}
,
}
GetBalancesByBillingAccount (new)
Description Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
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 ,
]
,
tags: object ,
}
,
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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (new)
Description Gets the budget for 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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

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

⚼ Request

PUT:  /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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

DELETE:  /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 ,
]
,
tags: object ,
}
,
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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_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 ,
}
,
}
CostTags_Get (new)
Description Get cost tags for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/costTags
{
api-version: string ,
billingAccountId: string ,
parameters:
{
properties:
{
costTags:
[
{
key: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Tags_Get (new)
Description Get all available tag keys for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_List (removed)
Description Lists the usage details for a scope by current 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 ,
$apply: string ,
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 ,
$apply: 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 ,
}
,
}
UsageDetailsByBillingAccount_List (removed)
Description Lists the usage details by billingAccountId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/usageDetails
{
billingAccountId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByBillingAccount_ListByBillingPeriod (removed)
Description Lists the usage details based on billingAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
billingAccountId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 ,
}
,
}
UsageDetailsByDepartment_List (removed)
Description Lists the usage details by departmentId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Consumption/usageDetails
{
departmentId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByDepartment_ListByBillingPeriod (removed)
Description Lists the usage details based on departmentId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
departmentId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 ,
}
,
}
UsageDetailsByEnrollmentAccount_List (removed)
Description Lists the usage details by enrollmentAccountId for a scope by current billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Consumption/usageDetails
{
enrollmentAccountId: string ,
$expand: string ,
$filter: string ,
$skiptoken: string ,
$top: integer ,
$apply: string ,
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 ,
}
,
}
UsageDetailsByEnrollmentAccount_ListByBillingPeriod (removed)
Description Lists the usage details based on enrollmentAccountId for a scope by billing period. Usage details are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/usageDetails
{
enrollmentAccountId: string ,
billingPeriodName: string ,
$expand: string ,
$filter: string ,
$apply: 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 and current billing period. 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 ,
}
,
}
MarketplacesByBillingAccount_List (removed)
Description Lists the marketplaces for a scope by billingAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
billingAccountId: 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 ,
}
,
}
MarketplacesByBillingAccount_ListByBillingPeriod (removed)
Description Lists the marketplaces for a scope by billing period and billingAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
billingAccountId: 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 ,
}
,
}
MarketplacesByDepartment_List (removed)
Description Lists the marketplaces for a scope by departmentId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
departmentId: 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 ,
}
,
}
MarketplacesByDepartment_ListByBillingPeriod (removed)
Description Lists the marketplaces for a scope by billing period and departmentId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
departmentId: 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 ,
}
,
}
MarketplacesByEnrollmentAccounts_List (removed)
Description Lists the marketplaces for a scope by enrollmentAccountId and current billing period. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
enrollmentAccountId: 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 ,
}
,
}
MarketplacesByEnrollmentAccounts_ListByBillingPeriod (removed)
Description Lists the marketplaces for a scope by billing period and enrollmentAccountId. Marketplaces are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/marketplaces
{
$filter: string ,
$top: integer ,
$skiptoken: string ,
api-version: string ,
enrollmentAccountId: 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 ,
}
,
}
GetBalancesByBillingAccount (removed)
Description Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
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 ,
]
,
tags: object ,
}
,
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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_Get (removed)
Description Gets the budget for 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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}

⚐ Response (default)

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

⚼ Request

PUT:  /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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

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

⚼ Request

DELETE:  /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 ,
]
,
tags: object ,
}
,
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 ,
]
,
tags: object ,
}
,
currentSpend:
{
amount: number ,
unit: string ,
}
,
notifications: object ,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Budgets_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 ,
}
,
}
CostTags_Get (removed)
Description Get cost tags for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/costTags
{
api-version: string ,
billingAccountId: string ,
parameters:
{
properties:
{
costTags:
[
{
key: string ,
}
,
]
,
}
,
}
,
}

⚐ Response (200)

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

⚐ Response (201)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
Tags_Get (removed)
Description Get all available tag keys for a billing account.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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