dapr_subscriptions
Creates, updates, deletes, gets or lists a dapr_subscriptions
resource.
Overview
Name | dapr_subscriptions |
Type | Resource |
Id | azure.container_apps.dapr_subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Dapr PubSub Event Subscription resource specific properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentName, name, resourceGroupName, subscriptionId | |
list | SELECT | environmentName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | environmentName, name, resourceGroupName, subscriptionId | Creates or updates a Dapr subscription in a Managed Environment. |
delete | DELETE | environmentName, name, resourceGroupName, subscriptionId | Delete a Dapr subscription from a Managed Environment. |
SELECT
examples
SELECT
properties
FROM azure.container_apps.dapr_subscriptions
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dapr_subscriptions
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.dapr_subscriptions (
environmentName,
name,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: pubsubName
value: string
- name: topic
value: string
- name: deadLetterTopic
value: string
- name: routes
value:
- name: rules
value:
- - name: match
value: string
- name: path
value: string
- name: default
value: string
- name: scopes
value:
- string
- name: metadata
value: object
- name: bulkSubscribe
value:
- name: enabled
value: boolean
- name: maxMessagesCount
value: integer
- name: maxAwaitDurationMs
value: integer
DELETE
example
Deletes the specified dapr_subscriptions
resource.
/*+ delete */
DELETE FROM azure.container_apps.dapr_subscriptions
WHERE environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';