dapr_component_resiliency_policies
Creates, updates, deletes, gets or lists a dapr_component_resiliency_policies
resource.
Overview
Name | dapr_component_resiliency_policies |
Type | Resource |
Id | azure.container_apps.dapr_component_resiliency_policies |
Fields
Name | Datatype | Description |
---|---|---|
properties | object | Dapr Component Resiliency Policy resource specific properties |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | componentName, environmentName, name, resourceGroupName, subscriptionId | |
list | SELECT | componentName, environmentName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | componentName, environmentName, name, resourceGroupName, subscriptionId | Creates or updates a resiliency policy for a Dapr component. |
delete | DELETE | componentName, environmentName, name, resourceGroupName, subscriptionId | Delete a resiliency policy for a Dapr component. |
SELECT
examples
SELECT
properties
FROM azure.container_apps.dapr_component_resiliency_policies
WHERE componentName = '{{ componentName }}'
AND environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new dapr_component_resiliency_policies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.dapr_component_resiliency_policies (
componentName,
environmentName,
name,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ componentName }}',
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: inboundPolicy
value:
- name: httpRetryPolicy
value:
- name: maxRetries
value: integer
- name: retryBackOff
value:
- name: initialDelayInMilliseconds
value: integer
- name: maxIntervalInMilliseconds
value: integer
- name: timeoutPolicy
value:
- name: responseTimeoutInSeconds
value: integer
- name: circuitBreakerPolicy
value:
- name: consecutiveErrors
value: integer
- name: timeoutInSeconds
value: integer
- name: intervalInSeconds
value: integer
DELETE
example
Deletes the specified dapr_component_resiliency_policies
resource.
/*+ delete */
DELETE FROM azure.container_apps.dapr_component_resiliency_policies
WHERE componentName = '{{ componentName }}'
AND environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';