Skip to main content

schema_registry

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

Overview

Nameschema_registry
TypeResource
Idazure.event_hub.schema_registry

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
createdAtUtcstring (date-time)Exact time the Schema Group was created.
eTagstringThe ETag value.
groupPropertiesobjectdictionary object for SchemaGroup group properties.
locationstringThe geo-location where the resource lives.
schemaCompatibilitystringKnown values are: "None", "Backward", and "Forward".
schemaTypestringKnown values are: "Unknown" and "Avro".
systemDataobjectThe system meta data relating to this resource.
typestringThe type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs".
updatedAtUtcstring (date-time)Exact time the Schema Group was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, namespace_name, schema_group_name, subscription_idGets the details of an EventHub schema group.
list_by_namespaceselectresource_group_name, namespace_name, subscription_id$skip, $topGets all the Schema Groups in a Namespace.
create_or_updateinsertresource_group_name, namespace_name, schema_group_name, subscription_idCreates or Updates an EventHub schema group.
create_or_updatereplaceresource_group_name, namespace_name, schema_group_name, subscription_idCreates or Updates an EventHub schema group.
deletedeleteresource_group_name, namespace_name, schema_group_name, subscription_idDeletes 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
namespace_namestringThe Namespace name. Required.
resource_group_namestringName of the resource group within the azure subscription. Required.
schema_group_namestringThe Schema Group name. Required.
subscription_idstring
$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. Default value is None.
$topintegerMay be used to limit the number of results to the most recent N usageDetails. Default value is None.

SELECT examples

Gets the details of an EventHub schema group.

SELECT
id,
name,
createdAtUtc,
eTag,
groupProperties,
location,
schemaCompatibility,
schemaType,
systemData,
type,
updatedAtUtc
FROM azure.event_hub.schema_registry
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND namespace_name = '{{ namespace_name }}' -- required
AND schema_group_name = '{{ schema_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or Updates an EventHub schema group.

INSERT INTO azure.event_hub.schema_registry (
properties,
resource_group_name,
namespace_name,
schema_group_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ namespace_name }}',
'{{ schema_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
type
;

REPLACE examples

Creates or Updates an EventHub schema group.

REPLACE azure.event_hub.schema_registry
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND schema_group_name = '{{ schema_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
type;

DELETE examples

Deletes an EventHub schema group.

DELETE FROM azure.event_hub.schema_registry
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND namespace_name = '{{ namespace_name }}' --required
AND schema_group_name = '{{ schema_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;