Skip to main content

skus

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

Overview

Nameskus
TypeResource
Idazure.provider_hub.skus

Fields

NameDatatypeDescription
propertiesobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTproviderNamespace, resourceType, sku, subscriptionIdGets the sku details for the given resource type and sku name.
list_by_resource_type_registrationsSELECTproviderNamespace, resourceType, subscriptionIdGets the list of skus for the given resource type.
list_by_resource_type_registrations_nested_resource_type_firstSELECTnestedResourceTypeFirst, providerNamespace, resourceType, subscriptionIdGets the list of skus for the given resource type.
list_by_resource_type_registrations_nested_resource_type_secondSELECTnestedResourceTypeFirst, nestedResourceTypeSecond, providerNamespace, resourceType, subscriptionIdGets the list of skus for the given resource type.
list_by_resource_type_registrations_nested_resource_type_thirdSELECTnestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, providerNamespace, resourceType, subscriptionIdGets the list of skus for the given resource type.
create_or_updateINSERTproviderNamespace, resourceType, sku, subscriptionIdCreates or updates the resource type skus in the given resource type.
deleteDELETEproviderNamespace, resourceType, sku, subscriptionIdDeletes a resource type sku.

SELECT examples

Gets the list of skus for the given resource type.

SELECT
properties
FROM azure.provider_hub.skus
WHERE providerNamespace = '{{ providerNamespace }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new skus resource.

/*+ create */
INSERT INTO azure.provider_hub.skus (
providerNamespace,
resourceType,
sku,
subscriptionId,
properties
)
SELECT
'{{ providerNamespace }}',
'{{ resourceType }}',
'{{ sku }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified skus resource.

/*+ delete */
DELETE FROM azure.provider_hub.skus
WHERE providerNamespace = '{{ providerNamespace }}'
AND resourceType = '{{ resourceType }}'
AND sku = '{{ sku }}'
AND subscriptionId = '{{ subscriptionId }}';