Skip to main content

catalogs

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

Overview

Namecatalogs
TypeResource
Idazure.reservations.catalogs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of sku.
billingPlansobjectThe billing plan options available for this sku.
capabilitiesarray:vartype capabilities: list[~azure.mgmt.reservations.models.SkuCapability]
locationsarray:vartype locations: list[str]
msrpobjectPricing information about the sku.
resourceTypestringThe type of resource the sku applies to.
restrictionsarray:vartype restrictions: list[~azure.mgmt.reservations.models.SkuRestriction]
sizestringThe size of this sku.
skuPropertiesarray:vartype sku_properties: list[~azure.mgmt.reservations.models.SkuProperty]
termsarrayAvailable reservation terms for this resource.
tierstringThe tier of this sku.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_catalogselectsubscription_idreservedResourceType, location, publisherId, offerId, planId, $filter, $skip, $takeGet the regions and skus that are available for RI purchase for the specified Azure subscription. Get the regions and skus that are available for RI purchase for the specified Azure subscription.

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
subscription_idstringThe ID of the target subscription. The value must be an UUID. Required.
$filterstringMay be used to filter by Catalog properties. The filter supports 'eq', 'or', and 'and'. Default value is None.
$skipnumberThe number of reservations to skip from the list before returning results. Default value is None.
$takenumberTo number of reservations to return. Default value is None.
locationstringFilters the skus based on the location specified in this parameter. This can be an azure region or global. Default value is None.
offerIdstringOffer id used to get the third party products. Default value is None.
planIdstringPlan id used to get the third party products. Default value is None.
publisherIdstringPublisher id used to get the third party products. Default value is None.
reservedResourceTypestringThe type of the resource for which the skus should be provided. Default value is None.

SELECT examples

Get the regions and skus that are available for RI purchase for the specified Azure subscription. Get the regions and skus that are available for RI purchase for the specified Azure subscription.

SELECT
name,
billingPlans,
capabilities,
locations,
msrp,
resourceType,
restrictions,
size,
skuProperties,
terms,
tier
FROM azure.reservations.catalogs
WHERE subscription_id = '{{ subscription_id }}' -- required
AND reservedResourceType = '{{ reservedResourceType }}'
AND location = '{{ location }}'
AND publisherId = '{{ publisherId }}'
AND offerId = '{{ offerId }}'
AND planId = '{{ planId }}'
AND $filter = '{{ $filter }}'
AND $skip = '{{ $skip }}'
AND $take = '{{ $take }}'
;