Skip to main content

workspace_api_schemata

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

Overview

Nameworkspace_api_schemata
TypeResource
Idazure.api_management.workspace_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
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, resourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdGet the schema configuration at the API level.
list_by_apiSELECTapiId, resourceGroupName, serviceName, subscriptionId, workspaceIdGet the schema configuration at the API level.
create_or_updateINSERTapiId, resourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdCreates or updates schema configuration for the API.
deleteDELETEIf-Match, apiId, resourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdDeletes 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,
workspaceId
FROM azure.api_management.vw_workspace_api_schemata
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

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

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

DELETE example

Deletes the specified workspace_api_schemata resource.

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