Skip to main content

notification_recipient_emails

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

Overview

Namenotification_recipient_emails
TypeResource
Idazure.api_management.notification_recipient_emails

Fields

NameDatatypeDescription
propertiesobjectRecipient Email Contract Properties.

Methods

NameAccessible byRequired ParamsDescription
list_by_notificationSELECTnotificationName, resourceGroupName, serviceName, subscriptionIdGets the list of the Notification Recipient Emails subscribed to a notification.
create_or_updateINSERTemail, notificationName, resourceGroupName, serviceName, subscriptionIdAdds the Email address to the list of Recipients for the Notification.
deleteDELETEemail, notificationName, resourceGroupName, serviceName, subscriptionIdRemoves 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.notification_recipient_emails
WHERE notificationName = '{{ notificationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new notification_recipient_emails resource.

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

DELETE example

Deletes the specified notification_recipient_emails resource.

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