workspace_notification_recipient_emails
Creates, updates, deletes, gets or lists a workspace_notification_recipient_emails
resource.
Overview
Name | workspace_notification_recipient_emails |
Type | Resource |
Id | azure.api_management.workspace_notification_recipient_emails |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Recipient Email Contract Properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_notification | SELECT | notificationName, resourceGroupName, serviceName, subscriptionId, workspaceId | Gets the list of the Notification Recipient Emails subscribed to a notification. |
create_or_update | INSERT | email, notificationName, resourceGroupName, serviceName, subscriptionId, workspaceId | Adds the Email address to the list of Recipients for the Notification. |
delete | DELETE | email, notificationName, resourceGroupName, serviceName, subscriptionId, workspaceId | Removes 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.workspace_notification_recipient_emails (
email,
notificationName,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId
)
SELECT
'{{ email }}',
'{{ notificationName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}'
;
- name: your_resource_model_name
props: []
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 }}';