Microsoft.Commerce (preview:2015-06-01)

2025/09/19 • 2 new, 2 deleted methods

UsageAggregates_List (new)
Description Query aggregated Azure subscription consumption data for a date range.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates
{
reportedStartTime: string ,
reportedEndTime: string ,
showDetails: boolean ,
aggregationGranularity: string ,
continuationToken: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
subscriptionId: string ,
meterId: string ,
usageStartTime: string ,
usageEndTime: string ,
quantity: number ,
unit: string ,
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
meterRegion: string ,
infoFields: string ,
instanceData: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RateCard_Get (new)
Description Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
Currency: string ,
Locale: string ,
IsTaxIncluded: boolean ,
OfferTerms:
[
{
Name: enum ,
EffectiveDate: string ,
}
,
]
,
Meters:
[
{
MeterId: string ,
MeterName: string ,
MeterCategory: string ,
MeterSubCategory: string ,
Unit: string ,
MeterTags:
[
string ,
]
,
MeterRegion: string ,
MeterRates: object ,
EffectiveDate: string ,
IncludedQuantity: number ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}
UsageAggregates_List (removed)
Description Query aggregated Azure subscription consumption data for a date range.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates
{
reportedStartTime: string ,
reportedEndTime: string ,
showDetails: boolean ,
aggregationGranularity: string ,
continuationToken: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
subscriptionId: string ,
meterId: string ,
usageStartTime: string ,
usageEndTime: string ,
quantity: number ,
unit: string ,
meterName: string ,
meterCategory: string ,
meterSubCategory: string ,
meterRegion: string ,
infoFields: string ,
instanceData: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
RateCard_Get (removed)
Description Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
Currency: string ,
Locale: string ,
IsTaxIncluded: boolean ,
OfferTerms:
[
{
Name: enum ,
EffectiveDate: string ,
}
,
]
,
Meters:
[
{
MeterId: string ,
MeterName: string ,
MeterCategory: string ,
MeterSubCategory: string ,
Unit: string ,
MeterTags:
[
string ,
]
,
MeterRegion: string ,
MeterRates: object ,
EffectiveDate: string ,
IncludedQuantity: number ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
}