dapr_components
Creates, updates, deletes, gets or lists a dapr_components
resource.
Overview
Name | dapr_components |
Type | Resource |
Id | azure.container_apps.dapr_components |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Dapr Component resource specific properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | componentName, environmentName, resourceGroupName, subscriptionId | |
list | SELECT | environmentName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | componentName, environmentName, resourceGroupName, subscriptionId | Creates or updates a Dapr Component in a Managed Environment. |
delete | DELETE | componentName, environmentName, resourceGroupName, subscriptionId | Delete a Dapr Component from a Managed Environment. |
SELECT
examples
SELECT
properties
FROM azure.container_apps.dapr_components
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dapr_components
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.dapr_components (
componentName,
environmentName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ componentName }}',
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: componentType
value: string
- name: version
value: string
- name: ignoreErrors
value: boolean
- name: initTimeout
value: string
- name: secrets
value:
- - name: name
value: string
- name: value
value: string
- name: identity
value: string
- name: keyVaultUrl
value: string
- name: secretStoreComponent
value: string
- name: metadata
value:
- - name: name
value: string
- name: value
value: string
- name: secretRef
value: string
- name: scopes
value:
- string
- name: serviceComponentBind
value:
- - name: name
value: string
- name: serviceId
value: string
- name: metadata
value:
- name: name
value: string
- name: value
value: string
DELETE
example
Deletes the specified dapr_components
resource.
/*+ delete */
DELETE FROM azure.container_apps.dapr_components
WHERE componentName = '{{ componentName }}'
AND environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';