key_values
Creates, updates, deletes, gets or lists a key_values
resource.
Overview
Name | key_values |
Type | Resource |
Id | azure.app_configuration.key_values |
Fields
- vw_key_values
- key_values
Name | Datatype | Description |
---|---|---|
id | text | The resource ID. |
name | text | The name of the resource. |
configStoreName | text | field from the properties object |
content_type | text | field from the properties object |
e_tag | text | field from the properties object |
key | text | field from the properties object |
keyValueName | text | field from the properties object |
label | text | field from the properties object |
last_modified | text | field from the properties object |
locked | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | field from the properties object |
type | text | The type of the resource. |
value | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The name of the resource. |
properties | object | All key-value properties. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configStoreName, keyValueName, resourceGroupName, subscriptionId | Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. |
create_or_update | INSERT | configStoreName, keyValueName, resourceGroupName, subscriptionId | Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. |
delete | DELETE | configStoreName, keyValueName, resourceGroupName, subscriptionId | Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead. |
SELECT
examples
Gets the properties of the specified key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
- vw_key_values
- key_values
SELECT
id,
name,
configStoreName,
content_type,
e_tag,
key,
keyValueName,
label,
last_modified,
locked,
resourceGroupName,
subscriptionId,
tags,
type,
value
FROM azure.app_configuration.vw_key_values
WHERE configStoreName = '{{ configStoreName }}'
AND keyValueName = '{{ keyValueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure.app_configuration.key_values
WHERE configStoreName = '{{ configStoreName }}'
AND keyValueName = '{{ keyValueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new key_values
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_configuration.key_values (
configStoreName,
keyValueName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ configStoreName }}',
'{{ keyValueName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: key
value: string
- name: label
value: string
- name: value
value: string
- name: contentType
value: string
- name: eTag
value: string
- name: lastModified
value: string
- name: locked
value: boolean
- name: tags
value: object
DELETE
example
Deletes the specified key_values
resource.
/*+ delete */
DELETE FROM azure.app_configuration.key_values
WHERE configStoreName = '{{ configStoreName }}'
AND keyValueName = '{{ keyValueName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';