Skip to main content

metadata_schemas

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

Overview

Namemetadata_schemas
TypeResource
Idazure.api_center.metadata_schemas

Fields

NameDatatypeDescription
assigned_totextfield from the properties object
metadataSchemaNametextfield from the properties object
resourceGroupNametextfield from the properties object
schematextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmetadataSchemaName, resourceGroupName, serviceName, subscriptionIdReturns details of the metadata schema.
listSELECTresourceGroupName, serviceName, subscriptionIdReturns a collection of metadata schemas.
create_or_updateINSERTmetadataSchemaName, resourceGroupName, serviceName, subscriptionIdCreates new or updates existing metadata schema.
deleteDELETEmetadataSchemaName, resourceGroupName, serviceName, subscriptionIdDeletes specified metadata schema.

SELECT examples

Returns a collection of metadata schemas.

SELECT
assigned_to,
metadataSchemaName,
resourceGroupName,
schema,
serviceName,
subscriptionId
FROM azure.api_center.vw_metadata_schemas
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_center.metadata_schemas (
metadataSchemaName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ metadataSchemaName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified metadata_schemas resource.

/*+ delete */
DELETE FROM azure.api_center.metadata_schemas
WHERE metadataSchemaName = '{{ metadataSchemaName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';