Skip to main content

schema_registries

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

Overview

Nameschema_registries
TypeResource
Idazure.device_registry.schema_registries

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
display_nametextfield from the properties object
identitytextManaged service identity (either system assigned, or none)
locationtextThe geo-location where the resource lives
namespacetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
schemaRegistryNametextfield from the properties object
storage_account_container_urltextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
uuidtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, schemaRegistryName, subscriptionIdGet a SchemaRegistry
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList SchemaRegistry resources by resource group
list_by_subscriptionSELECTsubscriptionIdList SchemaRegistry resources by subscription ID
create_or_replaceINSERTresourceGroupName, schemaRegistryName, subscriptionIdCreate a SchemaRegistry
deleteDELETEresourceGroupName, schemaRegistryName, subscriptionIdDelete a SchemaRegistry
updateUPDATEresourceGroupName, schemaRegistryName, subscriptionIdUpdate a SchemaRegistry

SELECT examples

List SchemaRegistry resources by subscription ID

SELECT
description,
display_name,
identity,
location,
namespace,
provisioning_state,
resourceGroupName,
schemaRegistryName,
storage_account_container_url,
subscriptionId,
tags,
uuid
FROM azure.device_registry.vw_schema_registries
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.device_registry.schema_registries (
resourceGroupName,
schemaRegistryName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ schemaRegistryName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a schema_registries resource.

/*+ update */
UPDATE azure.device_registry.schema_registries
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND schemaRegistryName = '{{ schemaRegistryName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified schema_registries resource.

/*+ delete */
DELETE FROM azure.device_registry.schema_registries
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND schemaRegistryName = '{{ schemaRegistryName }}'
AND subscriptionId = '{{ subscriptionId }}';