Skip to main content

resource_type_registrations

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

Overview

Nameresource_type_registrations
TypeResource
Idazure.provider_hub.resource_type_registrations

Fields

NameDatatypeDescription
propertiesobject

Methods

NameAccessible byRequired ParamsDescription
getSELECTproviderNamespace, resourceType, subscriptionIdGets a resource type details in the given subscription and provider.
list_by_provider_registrationSELECTproviderNamespace, subscriptionIdGets the list of the resource types for the given provider.
create_or_updateINSERTproviderNamespace, resourceType, subscriptionIdCreates or updates a resource type.
deleteDELETEproviderNamespace, resourceType, subscriptionIdDeletes a resource type

SELECT examples

Gets the list of the resource types for the given provider.

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

INSERT example

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

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

DELETE example

Deletes the specified resource_type_registrations resource.

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