Skip to main content

api_schemata

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

Overview

Nameapi_schemata
TypeResource
Idazure.api_management.api_schemata

Fields

NameDatatypeDescription
apiIdtextfield from the properties object
content_typetextfield 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
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, resourceGroupName, schemaId, serviceName, subscriptionIdGet the schema configuration at the API level.
list_by_apiSELECTapiId, resourceGroupName, serviceName, subscriptionIdGet the schema configuration at the API level.
create_or_updateINSERTapiId, resourceGroupName, schemaId, serviceName, subscriptionIdCreates or updates schema configuration for the API.
deleteDELETEIf-Match, apiId, resourceGroupName, schemaId, serviceName, subscriptionIdDeletes the schema configuration at the Api.

SELECT examples

Get the schema configuration at the API level.

SELECT
apiId,
content_type,
document,
provisioning_state,
resourceGroupName,
schemaId,
serviceName,
subscriptionId
FROM azure.api_management.vw_api_schemata
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified api_schemata resource.

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