Skip to main content

schema_registries

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

Overview

Nameschema_registries
TypeResource
Idazure.event_hubs.schema_registries

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
locationstringThe geo-location where the resource lives
propertiesobject
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

NameAccessible byRequired ParamsDescription
getSELECTnamespaceName, resourceGroupName, schemaGroupName, subscriptionIdGets the details of an EventHub schema group.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGets all the Schema Groups in a Namespace.
create_or_updateINSERTnamespaceName, resourceGroupName, schemaGroupName, subscriptionIdCreates or Updates an EventHub schema group.
deleteDELETEnamespaceName, resourceGroupName, schemaGroupName, subscriptionIdDeletes an EventHub schema group.

SELECT examples

Gets all the Schema Groups in a Namespace.

SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.event_hubs.schema_registries
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_hubs.schema_registries (
namespaceName,
resourceGroupName,
schemaGroupName,
subscriptionId,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ schemaGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified schema_registries resource.

/*+ delete */
DELETE FROM azure.event_hubs.schema_registries
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND schemaGroupName = '{{ schemaGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';