notification_recipient_users
Creates, updates, deletes, gets or lists a notification_recipient_users
resource.
Overview
Name | notification_recipient_users |
Type | Resource |
Id | azure.api_management.notification_recipient_users |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Recipient User Contract Properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_notification | SELECT | notificationName, resourceGroupName, serviceName, subscriptionId | Gets the list of the Notification Recipient User subscribed to the notification. |
create_or_update | INSERT | notificationName, resourceGroupName, serviceName, subscriptionId, userId | Adds the API Management User to the list of Recipients for the Notification. |
delete | DELETE | notificationName, resourceGroupName, serviceName, subscriptionId, userId | Removes the API Management user from the list of Notification. |
SELECT
examples
Gets the list of the Notification Recipient User subscribed to the notification.
SELECT
properties
FROM azure.api_management.notification_recipient_users
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_users
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.notification_recipient_users (
notificationName,
resourceGroupName,
serviceName,
subscriptionId,
userId
)
SELECT
'{{ notificationName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ userId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified notification_recipient_users
resource.
/*+ delete */
DELETE FROM azure.api_management.notification_recipient_users
WHERE notificationName = '{{ notificationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}';