function_secrets
Creates, updates, deletes, gets or lists a function_secrets
resource.
Overview
Name | function_secrets |
Type | Resource |
Id | azure.app_service.function_secrets |
Fields
Name | Datatype | Description |
---|---|---|
key | string | Secret key. |
trigger_url | string | Trigger URL. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT | functionName, name, resourceGroupName, subscriptionId | Description for Get function secrets for a function in a web site, or a deployment slot. |
create_or_update | INSERT | functionName, keyName, name, resourceGroupName, subscriptionId | Description for Add or update a function secret. |
delete | DELETE | functionName, keyName, name, resourceGroupName, subscriptionId | Description for Delete a function secret. |
SELECT
examples
Description for Get function secrets for a function in a web site, or a deployment slot.
SELECT
key,
trigger_url
FROM azure.app_service.function_secrets
WHERE functionName = '{{ functionName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new function_secrets
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.function_secrets (
functionName,
keyName,
name,
resourceGroupName,
subscriptionId,
name,
value
)
SELECT
'{{ functionName }}',
'{{ keyName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ value }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: value
value: string
DELETE
example
Deletes the specified function_secrets
resource.
/*+ delete */
DELETE FROM azure.app_service.function_secrets
WHERE functionName = '{{ functionName }}'
AND keyName = '{{ keyName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';