Skip to main content

workspace_notification_recipient_users

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

Overview

Nameworkspace_notification_recipient_users
TypeResource
Idazure.api_management.workspace_notification_recipient_users

Fields

NameDatatypeDescription
propertiesobjectRecipient User Contract Properties.

Methods

NameAccessible byRequired ParamsDescription
list_by_notificationSELECTnotificationName, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the list of the Notification Recipient User subscribed to the notification.
create_or_updateINSERTnotificationName, resourceGroupName, serviceName, subscriptionId, userId, workspaceIdAdds the API Management User to the list of Recipients for the Notification.
deleteDELETEnotificationName, resourceGroupName, serviceName, subscriptionId, userId, workspaceIdRemoves the API Management user from the list of Notification.

SELECT examples

Gets the list of the Notification Recipient User subscribed to the notification.

SELECT
properties
FROM azure.api_management.workspace_notification_recipient_users
WHERE notificationName = '{{ notificationName }}'
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_notification_recipient_users resource.

/*+ create */
INSERT INTO azure.api_management.workspace_notification_recipient_users (
notificationName,
resourceGroupName,
serviceName,
subscriptionId,
userId,
workspaceId
)
SELECT
'{{ notificationName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ userId }}',
'{{ workspaceId }}'
;

DELETE example

Deletes the specified workspace_notification_recipient_users resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_notification_recipient_users
WHERE notificationName = '{{ notificationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}'
AND workspaceId = '{{ workspaceId }}';