Skip to main content

notification_recipient_email

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

Overview

Namenotification_recipient_email
TypeResource
Idazure.api_management.notification_recipient_email

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
emailstringUser Email subscribed to notification.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_notificationselectresource_group_name, service_name, notification_name, subscription_idGets the list of the Notification Recipient Emails subscribed to a notification.
create_or_updateinsertresource_group_name, service_name, notification_name, email, subscription_idAdds the Email address to the list of Recipients for the Notification.
create_or_updatereplaceresource_group_name, service_name, notification_name, email, subscription_idAdds the Email address to the list of Recipients for the Notification.
deletedeleteresource_group_name, service_name, notification_name, email, subscription_idRemoves the email from the list of Notification.
check_entity_existsexecresource_group_name, service_name, notification_name, email, subscription_idDetermine if Notification Recipient Email subscribed to the 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. Required.
notification_namestringNotification Name Identifier. Known values are: "RequestPublisherNotificationMessage", "PurchasePublisherNotificationMessage", "NewApplicationNotificationMessage", "BCC", "NewIssuePublisherNotificationMessage", "AccountClosedPublisher", and "QuotaLimitApproachingPublisherNotificationMessage". Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

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

SELECT
id,
name,
email,
systemData,
type
FROM azure.api_management.notification_recipient_email
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND notification_name = '{{ notification_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

INSERT INTO azure.api_management.notification_recipient_email (
resource_group_name,
service_name,
notification_name,
email,
subscription_id
)
SELECT
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ notification_name }}',
'{{ email }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

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

REPLACE azure.api_management.notification_recipient_email
SET
-- No updatable properties
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND notification_name = '{{ notification_name }}' --required
AND email = '{{ email }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Removes the email from the list of Notification.

DELETE FROM azure.api_management.notification_recipient_email
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND notification_name = '{{ notification_name }}' --required
AND email = '{{ email }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Determine if Notification Recipient Email subscribed to the notification.

EXEC azure.api_management.notification_recipient_email.check_entity_exists 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@notification_name='{{ notification_name }}' --required,
@email='{{ email }}' --required,
@subscription_id='{{ subscription_id }}' --required
;