Skip to main content

key_values

Creates, updates, deletes, gets or lists a key_values resource.

Overview

Namekey_values
TypeResource
Idazure.app_configuration_dataplane.key_values

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
content_typestringThe content type of the value stored within the key-value.
descriptionstringThe description of the key-value.
etagstringA value representing the current state of the resource.
keystringThe key of the key-value. Required.
labelstringThe label the key-value belongs to.
last_modifiedstring (date-time)A date representing the last time the key-value was modified.
lockedbooleanIndicates whether the key-value is locked.
tagsobjectThe tags of the key-value.
valuestringThe value of the key-value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_key_valueselectkey_name, config_store_namelabel, $Select, Sync-Token, Accept-DatetimeGets a single key-value. Gets a single key-value.
get_key_valuesselectconfig_store_namekey, label, Sync-Token, After, Accept-Datetime, $Select, snapshotGets a list of key-values. Gets a list of key-values.
delete_key_valuedeletekey_name, config_store_namelabel, Sync-TokenDeletes a key-value. Deletes a key-value.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
config_store_namestringApp Configuration store name. (default: )
key_namestringThe key of the key-value to delete. Required.
$SelectarrayUsed to select what fields are present in the returned resource(s). Default value is None.
Accept-DatetimestringRequests the server to respond with the state of the resource at the specified time. Default value is None.
AfterstringInstructs the server to return elements that appear after the element referred to by the specified token. Default value is None.
Sync-TokenstringUsed to guarantee real-time consistency between requests. Default value is None.
keystringA filter used to match keys. Syntax reference: https://aka.ms/azconfig/docs/keyvaluefiltering _. Default value is None.
labelstringThe label of the key-value to delete. Default value is None.
snapshotstringA filter used get key-values for a snapshot. The value should be the name of the snapshot. Not valid when used with 'key' and 'label' filters. Default value is None.

SELECT examples

Gets a single key-value. Gets a single key-value.

SELECT
content_type,
description,
etag,
key,
label,
last_modified,
locked,
tags,
value
FROM azure.app_configuration_dataplane.key_values
WHERE key_name = '{{ key_name }}' -- required
AND config_store_name = '{{ config_store_name }}' -- required
AND label = '{{ label }}'
AND $Select = '{{ $Select }}'
AND Sync-Token = '{{ Sync-Token }}'
AND Accept-Datetime = '{{ Accept-Datetime }}'
;

DELETE examples

Deletes a key-value. Deletes a key-value.

DELETE FROM azure.app_configuration_dataplane.key_values
WHERE key_name = '{{ key_name }}' --required
AND config_store_name = '{{ config_store_name }}' --required
AND label = '{{ label }}'
AND Sync-Token = '{{ Sync-Token }}'
;