schema_registries
Creates, updates, deletes, gets or lists a schema_registries
resource.
Overview
Name | schema_registries |
Type | Resource |
Id | azure.event_hubs.schema_registries |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
location | string | The geo-location where the resource lives |
properties | object | |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | namespaceName, resourceGroupName, schemaGroupName, subscriptionId | Gets the details of an EventHub schema group. |
list_by_namespace | SELECT | namespaceName, resourceGroupName, subscriptionId | Gets all the Schema Groups in a Namespace. |
create_or_update | INSERT | namespaceName, resourceGroupName, schemaGroupName, subscriptionId | Creates or Updates an EventHub schema group. |
delete | DELETE | namespaceName, resourceGroupName, schemaGroupName, subscriptionId | Deletes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_hubs.schema_registries (
namespaceName,
resourceGroupName,
schemaGroupName,
subscriptionId,
properties
)
SELECT
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ schemaGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: updatedAtUtc
value: string
- name: createdAtUtc
value: string
- name: eTag
value: string
- name: groupProperties
value: object
- name: schemaCompatibility
value: string
- name: schemaType
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
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 }}';