Skip to main content

global_schemata

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

Overview

Nameglobal_schemata
TypeResource
Idazure.api_management.global_schemata

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
documenttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
schemaIdtextfield from the properties object
schema_typetextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
valuetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, schemaId, serviceName, subscriptionIdGets the details of the Schema specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of schemas registered with service instance.
create_or_updateINSERTresourceGroupName, schemaId, serviceName, subscriptionIdCreates new or updates existing specified Schema of the API Management service instance.
deleteDELETEIf-Match, resourceGroupName, schemaId, serviceName, subscriptionIdDeletes specific Schema.

SELECT examples

Lists a collection of schemas registered with service instance.

SELECT
description,
document,
provisioning_state,
resourceGroupName,
schemaId,
schema_type,
serviceName,
subscriptionId,
value
FROM azure.api_management.vw_global_schemata
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.global_schemata (
resourceGroupName,
schemaId,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ schemaId }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified global_schemata resource.

/*+ delete */
DELETE FROM azure.api_management.global_schemata
WHERE If-Match = '{{ If-Match }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND schemaId = '{{ schemaId }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';