Skip to main content

workspace_notifications

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

Overview

Nameworkspace_notifications
TypeResource
Idazure.api_management.workspace_notifications

Fields

The following fields are returned by SELECT queries:

The response body contains the specified Notification.

NameDatatypeDescription
propertiesobjectNotification entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, workspaceId, notificationName, subscriptionIdGets the details of the Notification specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, workspaceId, subscriptionId$top, $skipLists a collection of properties defined within a service instance.
create_or_updateinsertresourceGroupName, serviceName, workspaceId, notificationName, subscriptionIdIf-MatchCreate or Update API Management publisher notification for the workspace.

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
notificationNamestringNotification Name Identifier.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
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.
$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 Notification specified by its identifier.

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

INSERT examples

Create or Update API Management publisher notification for the workspace.

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