Skip to main content

workspace_global_schemata

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

Overview

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdGets the details of the Schema specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of schemas registered with workspace in a service instance.
create_or_updateINSERTresourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdCreates new or updates existing specified Schema of the workspace in an API Management service instance.
deleteDELETEIf-Match, resourceGroupName, schemaId, serviceName, subscriptionId, workspaceIdDeletes specific Schema.

SELECT examples

Lists a collection of schemas registered with workspace in a service instance.

SELECT
description,
document,
provisioning_state,
resourceGroupName,
schemaId,
schema_type,
serviceName,
subscriptionId,
value,
workspaceId
FROM azure.api_management.vw_workspace_global_schemata
WHERE 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_global_schemata resource.

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

DELETE example

Deletes the specified workspace_global_schemata resource.

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