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

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

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 ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByBillingAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByBillingAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByDepartment (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByDepartment (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByEnrollmentAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByEnrollmentAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
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 ,
offerId: string ,
}
,
]
,
nextLink: string ,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
properties:
{
pricesheets:
[
{
billingPeriodId: string ,
meterId: string ,
meterDetails:
{
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
unit: string ,
meterLocation: string ,
totalIncludedQuantity: number ,
pretaxStandardRate: number ,
}
,
unitOfMeasure: string ,
includedQuantity: number ,
partNumber: string ,
unitPrice: number ,
currencyCode: string ,
offerId: string ,
}
,
]
,
nextLink: 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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByBillingAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByBillingAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByDepartment (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByDepartment (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListByEnrollmentAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
UsageDetails_ListForBillingPeriodByEnrollmentAccount (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 ,
partNumber: string ,
resourceGuid: string ,
offerId: string ,
chargesBilledSeparately: boolean ,
additionalProperties: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

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

⚐ Response (default)

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