Skip to main content

rate_cards

Creates, updates, deletes, gets or lists a rate_cards resource.

Overview

Namerate_cards
TypeResource
Idazure_extras.commerce.rate_cards

Fields

The following fields are returned by SELECT queries:

Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.

NameDatatypeDescription
CurrencystringThe currency in which the rates are provided.
IsTaxIncludedbooleanAll rates are pretax, so this will always be returned as 'false'.
LocalestringThe culture in which the resource information is localized.
MetersarrayA list of meters.
OfferTermsarrayA list of offer terms.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselect$filter, subscriptionIdEnables 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
$filterstringThe filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale', 'Region' are required to be a part of the $filter.
subscriptionIdstringIt uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

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.

SELECT
Currency,
IsTaxIncluded,
Locale,
Meters,
OfferTerms
FROM azure_extras.commerce.rate_cards
WHERE $filter = '{{ $filter }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;