Skip to main content

partner_topic_event_subscriptions

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

Overview

Namepartner_topic_event_subscriptions
TypeResource
Idazure.event_grid.partner_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
partnerTopicNametextfield 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
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, partnerTopicName, resourceGroupName, subscriptionIdGet properties of an event subscription of a partner topic.
list_by_partner_topicSELECTpartnerTopicName, resourceGroupName, subscriptionIdList event subscriptions that belong to a specific partner topic.
create_or_updateINSERTeventSubscriptionName, partnerTopicName, resourceGroupName, subscriptionIdAsynchronously creates or updates an event subscription of a partner topic with the specified parameters. Existing event subscriptions will be updated with this API.
deleteDELETEeventSubscriptionName, partnerTopicName, resourceGroupName, subscriptionIdDelete an existing event subscription of a partner topic.
updateUPDATEeventSubscriptionName, partnerTopicName, resourceGroupName, subscriptionIdUpdate an existing event subscription of a partner topic.

SELECT examples

List event subscriptions that belong to a specific partner 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,
partnerTopicName,
provisioning_state,
resourceGroupName,
retry_policy,
subscriptionId,
system_data,
topic,
type
FROM azure.event_grid.vw_partner_topic_event_subscriptions
WHERE partnerTopicName = '{{ partnerTopicName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a partner_topic_event_subscriptions resource.

/*+ update */
UPDATE azure.event_grid.partner_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 partnerTopicName = '{{ partnerTopicName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified partner_topic_event_subscriptions resource.

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