function_secret_slots
Creates, updates, deletes, gets or lists a function_secret_slots
resource.
Overview
Name | function_secret_slots |
Type | Resource |
Id | azure.app_service.function_secret_slots |
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, slot, 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, slot, subscriptionId | Description for Add or update a function secret. |
delete | DELETE | functionName, keyName, name, resourceGroupName, slot, 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_secret_slots
WHERE functionName = '{{ functionName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new function_secret_slots
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.function_secret_slots (
functionName,
keyName,
name,
resourceGroupName,
slot,
subscriptionId,
name,
value
)
SELECT
'{{ functionName }}',
'{{ keyName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ slot }}',
'{{ subscriptionId }}',
'{{ name }}',
'{{ value }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: value
value: string
DELETE
example
Deletes the specified function_secret_slots
resource.
/*+ delete */
DELETE FROM azure.app_service.function_secret_slots
WHERE functionName = '{{ functionName }}'
AND keyName = '{{ keyName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND slot = '{{ slot }}'
AND subscriptionId = '{{ subscriptionId }}';