Skip to main content

workspace_notification_recipient_emails

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

Overview

Nameworkspace_notification_recipient_emails
TypeResource
Idazure.api_management.workspace_notification_recipient_emails

Fields

The following fields are returned by SELECT queries:

The response body contains the Recipient Email collection subscribed to the notification.

NameDatatypeDescription
propertiesobjectRecipient Email 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 Emails subscribed to a notification.
create_or_updateinsertresourceGroupName, serviceName, workspaceId, notificationName, email, subscriptionIdAdds the Email address to the list of Recipients for the Notification.
deletedeleteresourceGroupName, serviceName, workspaceId, notificationName, email, subscriptionIdRemoves the email 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
emailstringEmail identifier.
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.

SELECT examples

Gets the list of the Notification Recipient Emails subscribed to a notification.

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

INSERT examples

Adds the Email address to the list of Recipients for the Notification.

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

DELETE examples

Removes the email from the list of Notification.

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