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

The following fields are returned by SELECT queries:

Successfully retrieved the Schema Group description.

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
systemDataobjectThe system meta data relating to this resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, namespaceName, schemaGroupName, subscriptionIdGets the details of an EventHub schema group.
list_by_namespaceselectresourceGroupName, namespaceName, subscriptionId$skip, $topGets all the Schema Groups in a Namespace.
create_or_updateinsertresourceGroupName, namespaceName, schemaGroupName, subscriptionIdCreates or Updates an EventHub schema group.
deletedeleteresourceGroupName, namespaceName, schemaGroupName, subscriptionIdDeletes an EventHub schema group.

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
namespaceNamestringThe Namespace name
resourceGroupNamestringName of the resource group within the azure subscription.
schemaGroupNamestringThe Schema Group name
subscriptionIdstringSubscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$skipintegerSkip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls.
$topintegerMay be used to limit the number of results to the most recent N usageDetails.

SELECT examples

Gets the details of an EventHub schema group.

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

INSERT examples

Creates or Updates an EventHub schema group.

INSERT INTO azure.event_hubs.schema_registries (
data__properties,
resourceGroupName,
namespaceName,
schemaGroupName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ namespaceName }}',
'{{ schemaGroupName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

DELETE examples

Deletes an EventHub schema group.

DELETE FROM azure.event_hubs.schema_registries
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND namespaceName = '{{ namespaceName }}' --required
AND schemaGroupName = '{{ schemaGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;