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

The following fields are returned by SELECT queries:

The response body contains the specified Schema entity.

NameDatatypeDescription
propertiesobjectProperties of the Global Schema.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, workspaceId, schemaId, subscriptionIdGets the details of the Schema specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, workspaceId, subscriptionId$filter, $top, $skipLists a collection of schemas registered with workspace in a service instance.
create_or_updateinsertresourceGroupName, serviceName, workspaceId, schemaId, subscriptionIdIf-MatchCreates new or updates existing specified Schema of the workspace in an API Management service instance.
deletedeleteresourceGroupName, serviceName, workspaceId, schemaId, If-Match, subscriptionIdDeletes specific Schema.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
schemaIdstringSchema id identifier. Must be unique in the current API Management service instance.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
workspaceIdstringWorkspace identifier. Must be unique in the current API Management service instance.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Gets the details of the Schema specified by its identifier.

SELECT
properties
FROM azure.api_management.workspace_global_schemata
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND workspaceId = '{{ workspaceId }}' -- required
AND schemaId = '{{ schemaId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates new or updates existing specified Schema of the workspace in an API Management service instance.

INSERT INTO azure.api_management.workspace_global_schemata (
data__properties,
resourceGroupName,
serviceName,
workspaceId,
schemaId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ workspaceId }}',
'{{ schemaId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

DELETE examples

Deletes specific Schema.

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