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

NameDatatypeDescription
propertiesobjectRecipient Email Contract Properties.

Methods

NameAccessible byRequired ParamsDescription
list_by_notificationSELECTnotificationName, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the list of the Notification Recipient Emails subscribed to a notification.
create_or_updateINSERTemail, notificationName, resourceGroupName, serviceName, subscriptionId, workspaceIdAdds the Email address to the list of Recipients for the Notification.
deleteDELETEemail, notificationName, resourceGroupName, serviceName, subscriptionId, workspaceIdRemoves the email from the list of Notification.

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 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_emails resource.

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

DELETE example

Deletes the specified workspace_notification_recipient_emails resource.

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