rate_cards
Creates, updates, deletes, gets or lists a rate_cards
resource.
Overview
Name | rate_cards |
Type | Resource |
Id | azure_extras.commerce.rate_cards |
Fields
The following fields are returned by SELECT
queries:
- get
Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.
Name | Datatype | Description |
---|---|---|
Currency | string | The currency in which the rates are provided. |
IsTaxIncluded | boolean | All rates are pretax, so this will always be returned as 'false'. |
Locale | string | The culture in which the resource information is localized. |
Meters | array | A list of meters. |
OfferTerms | array | A list of offer terms. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | $filter , subscriptionId | 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. |
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.
Name | Datatype | Description |
---|---|---|
$filter | string | The 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. |
subscriptionId | string | It uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
SELECT
examples
- get
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
;