namespace_topic_event_subscriptions
Creates, updates, deletes, gets or lists a namespace_topic_event_subscriptions
resource.
Overview
Name | namespace_topic_event_subscriptions |
Type | Resource |
Id | azure.event_grid.namespace_topic_event_subscriptions |
Fields
- vw_namespace_topic_event_subscriptions
- namespace_topic_event_subscriptions
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
delivery_configuration | text | field from the properties object |
eventSubscriptionName | text | field from the properties object |
event_delivery_schema | text | field from the properties object |
expiration_time_utc | text | field from the properties object |
filters_configuration | text | field from the properties object |
namespaceName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
topicName | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of the event subscription. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | eventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicName | Get properties of an event subscription of a namespace topic. |
list_by_namespace_topic | SELECT | namespaceName, resourceGroupName, subscriptionId, topicName | List event subscriptions that belong to a specific namespace topic. |
create_or_update | INSERT | eventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicName | Asynchronously creates or updates an event subscription of a namespace topic with the specified parameters. Existing event subscriptions will be updated with this API. |
delete | DELETE | eventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicName | Delete an existing event subscription of a namespace topic. |
update | UPDATE | eventSubscriptionName, namespaceName, resourceGroupName, subscriptionId, topicName | Update an existing event subscription of a namespace topic. |
SELECT
examples
List event subscriptions that belong to a specific namespace topic.
- vw_namespace_topic_event_subscriptions
- namespace_topic_event_subscriptions
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.event_grid.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.namespace_topic_event_subscriptions (
eventSubscriptionName,
namespaceName,
resourceGroupName,
subscriptionId,
topicName,
properties
)
SELECT
'{{ eventSubscriptionName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ topicName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: deliveryConfiguration
value:
- name: deliveryMode
value: string
- name: queue
value:
- name: receiveLockDurationInSeconds
value: integer
- name: maxDeliveryCount
value: integer
- name: deadLetterDestinationWithResourceIdentity
value:
- name: identity
value:
- name: type
value: string
- name: userAssignedIdentity
value: string
- name: deadLetterDestination
value:
- name: endpointType
value: string
- name: eventTimeToLive
value: string
- name: push
value:
- name: maxDeliveryCount
value: integer
- name: eventTimeToLive
value: string
- name: deliveryWithResourceIdentity
value:
- name: destination
value:
- name: endpointType
value: string
- name: eventDeliverySchema
value: string
- name: filtersConfiguration
value:
- name: includedEventTypes
value:
- string
- name: filters
value:
- - name: operatorType
value: string
- name: key
value: string
- name: expirationTimeUtc
value: string
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 }}';