Skip to main content

snapshots

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

Overview

Namesnapshots
TypeResource
Idazure.app_configuration_dataplane.snapshots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the snapshot. Required.
composition_typestringThe composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label. Known values are: "key" and "key_label". (key, key_label)
createdstring (date-time)The time that the snapshot was created.
descriptionstringThe description of the snapshot.
etagstringA value representing the current state of the snapshot.
expiresstring (date-time)The time that the snapshot will expire.
filtersarrayA list of filters used to filter the key-values included in the snapshot. Required.
items_countintegerThe amount of key-values in the snapshot.
retention_periodintegerThe amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used.
sizeintegerThe size in bytes of the snapshot.
statusstringThe current status of the snapshot. Known values are: "provisioning", "ready", "archived", and "failed". (provisioning, ready, archived, failed)
tagsobjectThe tags of the snapshot.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_snapshotselectname, config_store_name$Select, Sync-TokenGets a single key-value snapshot. Gets a single key-value snapshot.
get_snapshotsselectconfig_store_namename, After, $Select, status, Sync-TokenGets a list of key-value snapshots. Gets a list of key-value snapshots.
create_snapshotinsertname, config_store_name, filtersSync-TokenCreates a key-value snapshot. Creates a key-value snapshot.

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: )
namestringThe name of the key-value snapshot to create. Required.
$SelectarrayUsed to select what fields are present in the returned resource(s). 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.
namestringA filter for the name of the returned snapshots. Default value is None.
statusarrayUsed to filter returned snapshots by their status property. Default value is None.

SELECT examples

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

SELECT
name,
composition_type,
created,
description,
etag,
expires,
filters,
items_count,
retention_period,
size,
status,
tags
FROM azure.app_configuration_dataplane.snapshots
WHERE name = '{{ name }}' -- required
AND config_store_name = '{{ config_store_name }}' -- required
AND $Select = '{{ $Select }}'
AND Sync-Token = '{{ Sync-Token }}'
;

INSERT examples

Creates a key-value snapshot. Creates a key-value snapshot.

INSERT INTO azure.app_configuration_dataplane.snapshots (
filters,
composition_type,
retention_period,
tags,
description,
name,
config_store_name,
Sync-Token
)
SELECT
'{{ filters }}' /* required */,
'{{ composition_type }}',
{{ retention_period }},
'{{ tags }}',
'{{ description }}',
'{{ name }}',
'{{ config_store_name }}',
'{{ Sync-Token }}'
RETURNING
name,
composition_type,
created,
description,
etag,
expires,
filters,
items_count,
retention_period,
size,
status,
tags
;