Skip to main content

workspace_notification

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

Overview

Nameworkspace_notification
TypeResource
Idazure.api_management.workspace_notification

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.
descriptionstringDescription of the Notification.
recipientsobjectRecipient Parameter values.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringTitle of the Notification. Required.
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
getselectresource_group_name, service_name, workspace_id, notification_name, subscription_idGets the details of the Notification specified by its identifier.
list_by_serviceselectresource_group_name, service_name, workspace_id, subscription_id$top, $skipLists a collection of properties defined within a service instance.
create_or_updateinsertresource_group_name, service_name, workspace_id, notification_name, subscription_idCreate or Update API Management publisher notification for the workspace.
create_or_updatereplaceresource_group_name, service_name, workspace_id, notification_name, subscription_idCreate or Update API Management publisher notification for the workspace.

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
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
workspace_idstringWorkspace identifier. Must be unique in the current API Management service instance. Required.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Gets the details of the Notification specified by its identifier.

SELECT
id,
name,
description,
recipients,
systemData,
title,
type
FROM azure.api_management.workspace_notification
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
AND notification_name = '{{ notification_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or Update API Management publisher notification for the workspace.

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

REPLACE examples

Create or Update API Management publisher notification for the workspace.

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