Skip to main content

system_topic_event_subscriptions

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

Overview

Namesystem_topic_event_subscriptions
TypeResource
Idazure.event_grid.system_topic_event_subscriptions

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
dead_letter_destinationtextfield from the properties object
dead_letter_with_resource_identitytextfield from the properties object
delivery_with_resource_identitytextfield from the properties object
destinationtextfield from the properties object
eventSubscriptionNametextfield from the properties object
event_delivery_schematextfield from the properties object
expiration_time_utctextfield from the properties object
filtertextfield from the properties object
labelstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
retry_policytextfield from the properties object
subscriptionIdtextfield from the properties object
systemTopicNametextfield from the properties object
system_datatextfield from the properties object
topictextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTeventSubscriptionName, resourceGroupName, subscriptionId, systemTopicNameGet an event subscription.
list_by_system_topicSELECTresourceGroupName, subscriptionId, systemTopicNameList event subscriptions that belong to a specific system topic.
create_or_updateINSERTeventSubscriptionName, resourceGroupName, subscriptionId, systemTopicNameAsynchronously creates or updates an event subscription with the specified parameters. Existing event subscriptions will be updated with this API.
deleteDELETEeventSubscriptionName, resourceGroupName, subscriptionId, systemTopicNameDelete an existing event subscription of a system topic.
updateUPDATEeventSubscriptionName, resourceGroupName, subscriptionId, systemTopicNameUpdate an existing event subscription of a system topic.

SELECT examples

List event subscriptions that belong to a specific system topic.

SELECT
id,
name,
dead_letter_destination,
dead_letter_with_resource_identity,
delivery_with_resource_identity,
destination,
eventSubscriptionName,
event_delivery_schema,
expiration_time_utc,
filter,
labels,
provisioning_state,
resourceGroupName,
retry_policy,
subscriptionId,
systemTopicName,
system_data,
topic,
type
FROM azure.event_grid.vw_system_topic_event_subscriptions
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemTopicName = '{{ systemTopicName }}';

INSERT example

Use the following StackQL query and manifest file to create a new system_topic_event_subscriptions resource.

/*+ create */
INSERT INTO azure.event_grid.system_topic_event_subscriptions (
eventSubscriptionName,
resourceGroupName,
subscriptionId,
systemTopicName,
properties
)
SELECT
'{{ eventSubscriptionName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ systemTopicName }}',
'{{ properties }}'
;

UPDATE example

Updates a system_topic_event_subscriptions resource.

/*+ update */
UPDATE azure.event_grid.system_topic_event_subscriptions
SET
destination = '{{ destination }}',
deliveryWithResourceIdentity = '{{ deliveryWithResourceIdentity }}',
filter = '{{ filter }}',
labels = '{{ labels }}',
expirationTimeUtc = '{{ expirationTimeUtc }}',
eventDeliverySchema = '{{ eventDeliverySchema }}',
retryPolicy = '{{ retryPolicy }}',
deadLetterDestination = '{{ deadLetterDestination }}',
deadLetterWithResourceIdentity = '{{ deadLetterWithResourceIdentity }}'
WHERE
eventSubscriptionName = '{{ eventSubscriptionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemTopicName = '{{ systemTopicName }}';

DELETE example

Deletes the specified system_topic_event_subscriptions resource.

/*+ delete */
DELETE FROM azure.event_grid.system_topic_event_subscriptions
WHERE eventSubscriptionName = '{{ eventSubscriptionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND systemTopicName = '{{ systemTopicName }}';