Skip to main content

namespace_topic_event_subscriptions

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

Overview

Namenamespace_topic_event_subscriptions
TypeResource
Idazure.event_grid.namespace_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
delivery_configurationtextfield from the properties object
eventSubscriptionNametextfield from the properties object
event_delivery_schematextfield from the properties object
expiration_time_utctextfield from the properties object
filters_configurationtextfield from the properties object
namespaceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
topicNametextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTeventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicNameGet properties of an event subscription of a namespace topic.
list_by_namespace_topicSELECTnamespaceName, resourceGroupName, subscriptionId, topicNameList event subscriptions that belong to a specific namespace topic.
create_or_updateINSERTeventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicNameAsynchronously creates or updates an event subscription of a namespace topic with the specified parameters. Existing event subscriptions will be updated with this API.
deleteDELETEeventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicNameDelete an existing event subscription of a namespace topic.
updateUPDATEeventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicNameUpdate an existing event subscription of a namespace topic.

SELECT examples

List event subscriptions that belong to a specific namespace topic.

SELECT
id,
name,
delivery_configuration,
eventSubscriptionName,
event_delivery_schema,
expiration_time_utc,
filters_configuration,
namespaceName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
topicName,
type
FROM azure.event_grid.vw_namespace_topic_event_subscriptions
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';

INSERT example

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

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

UPDATE example

Updates a namespace_topic_event_subscriptions resource.

/*+ update */
UPDATE azure.event_grid.namespace_topic_event_subscriptions
SET
properties = '{{ properties }}'
WHERE
eventSubscriptionName = '{{ eventSubscriptionName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';

DELETE example

Deletes the specified namespace_topic_event_subscriptions resource.

/*+ delete */
DELETE FROM azure.event_grid.namespace_topic_event_subscriptions
WHERE eventSubscriptionName = '{{ eventSubscriptionName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND topicName = '{{ topicName }}';