Skip to main content

snapshots

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

Overview

Namesnapshots
TypeResource
Idazure.aks.snapshots

Fields

NameDatatypeDescription
creation_datatextfield from the properties object
enable_fipstextfield from the properties object
kubernetes_versiontextfield from the properties object
locationtextThe geo-location where the resource lives
node_image_versiontextfield from the properties object
os_skutextfield from the properties object
os_typetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
snapshot_typetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
vm_sizetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionId
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionId
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId
deleteDELETEresourceGroupName, resourceName, subscriptionId
update_tagsEXECresourceGroupName, resourceName, subscriptionId

SELECT examples

SELECT
creation_data,
enable_fips,
kubernetes_version,
location,
node_image_version,
os_sku,
os_type,
resourceGroupName,
resourceName,
snapshot_type,
subscriptionId,
tags,
vm_size
FROM azure.aks.vw_snapshots
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new snapshots resource.

/*+ create */
INSERT INTO azure.aks.snapshots (
resourceGroupName,
resourceName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

DELETE example

Deletes the specified snapshots resource.

/*+ delete */
DELETE FROM azure.aks.snapshots
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';