workspace_notification_recipient_users
Creates, updates, deletes, gets or lists a workspace_notification_recipient_users
resource.
Overview
Name | workspace_notification_recipient_users |
Type | Resource |
Id | azure.api_management.workspace_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, workspaceId | Gets the list of the Notification Recipient User subscribed to the notification. |
create_or_update | INSERT | notificationName, resourceGroupName, serviceName, subscriptionId, userId, workspaceId | Adds the API Management User to the list of Recipients for the Notification. |
delete | DELETE | notificationName, resourceGroupName, serviceName, subscriptionId, userId, workspaceId | 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.workspace_notification_recipient_users
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_users
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.workspace_notification_recipient_users (
notificationName,
resourceGroupName,
serviceName,
subscriptionId,
userId,
workspaceId
)
SELECT
'{{ notificationName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ userId }}',
'{{ workspaceId }}'
;
- name: your_resource_model_name
props: []
DELETE
example
Deletes the specified workspace_notification_recipient_users
resource.
/*+ delete */
DELETE FROM azure.api_management.workspace_notification_recipient_users
WHERE notificationName = '{{ notificationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userId = '{{ userId }}'
AND workspaceId = '{{ workspaceId }}';