resource_type_registrations
Creates, updates, deletes, gets or lists a resource_type_registrations
resource.
Overview
Name | resource_type_registrations |
Type | Resource |
Id | azure.provider_hub.resource_type_registrations |
Fields
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | providerNamespace, resourceType, subscriptionId | Gets a resource type details in the given subscription and provider. |
list_by_provider_registration | SELECT | providerNamespace, subscriptionId | Gets the list of the resource types for the given provider. |
create_or_update | INSERT | providerNamespace, resourceType, subscriptionId | Creates or updates a resource type. |
delete | DELETE | providerNamespace, resourceType, subscriptionId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.provider_hub.resource_type_registrations (
providerNamespace,
resourceType,
subscriptionId,
properties
)
SELECT
'{{ providerNamespace }}',
'{{ resourceType }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
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 }}';