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

The following fields are returned by SELECT queries:

The response body contains the Recipient User collection for the notification.

NameDatatypeDescription
propertiesobjectRecipient User entity contract properties.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_notificationselectresourceGroupName, serviceName, workspaceId, notificationName, subscriptionIdGets the list of the Notification Recipient User subscribed to the notification.
create_or_updateinsertresourceGroupName, serviceName, workspaceId, notificationName, userId, subscriptionIdAdds the API Management User to the list of Recipients for the Notification.
deletedeleteresourceGroupName, serviceName, workspaceId, notificationName, userId, subscriptionIdRemoves the API Management user from the list of Notification.

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.
userIdstringUser identifier. Must be unique in the current API Management service instance.
workspaceIdstringWorkspace identifier. Must be unique in the current API Management service instance.

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 resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND workspaceId = '{{ workspaceId }}' -- required
AND notificationName = '{{ notificationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds the API Management User to the list of Recipients for the Notification.

INSERT INTO azure.api_management.workspace_notification_recipient_users (
resourceGroupName,
serviceName,
workspaceId,
notificationName,
userId,
subscriptionId
)
SELECT
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ workspaceId }}',
'{{ notificationName }}',
'{{ userId }}',
'{{ subscriptionId }}'
RETURNING
properties
;

DELETE examples

Removes the API Management user from the list of Notification.

DELETE FROM azure.api_management.workspace_notification_recipient_users
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND workspaceId = '{{ workspaceId }}' --required
AND notificationName = '{{ notificationName }}' --required
AND userId = '{{ userId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;