Skip to main content

snapshots

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

Overview

Namesnapshots
TypeResource
Idazure_isv.netapp.snapshots

Fields

NameDatatypeDescription
accountNametextfield from the properties object
createdtextfield from the properties object
locationtextResource location
poolNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
snapshotNametextfield from the properties object
snapshot_idtextfield from the properties object
subscriptionIdtextfield from the properties object
volumeNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, poolName, resourceGroupName, snapshotName, subscriptionId, volumeNameGet details of the specified snapshot
listSELECTaccountName, poolName, resourceGroupName, subscriptionId, volumeNameList all snapshots associated with the volume
createINSERTaccountName, poolName, resourceGroupName, snapshotName, subscriptionId, volumeName, data__locationCreate the specified snapshot within the given volume
deleteDELETEaccountName, poolName, resourceGroupName, snapshotName, subscriptionId, volumeNameDelete snapshot
updateUPDATEaccountName, poolName, resourceGroupName, snapshotName, subscriptionId, volumeNamePatch a snapshot
restore_filesEXECaccountName, poolName, resourceGroupName, snapshotName, subscriptionId, volumeName, data__filePathsRestore the specified files from the specified snapshot to the active filesystem

SELECT examples

List all snapshots associated with the volume

SELECT
accountName,
created,
location,
poolName,
provisioning_state,
resourceGroupName,
snapshotName,
snapshot_id,
subscriptionId,
volumeName
FROM azure_isv.netapp.vw_snapshots
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.netapp.snapshots (
accountName,
poolName,
resourceGroupName,
snapshotName,
subscriptionId,
volumeName,
data__location,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ snapshotName }}',
'{{ subscriptionId }}',
'{{ volumeName }}',
'{{ data__location }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a snapshots resource.

/*+ update */
UPDATE azure_isv.netapp.snapshots
SET

WHERE
accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND snapshotName = '{{ snapshotName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';

DELETE example

Deletes the specified snapshots resource.

/*+ delete */
DELETE FROM azure_isv.netapp.snapshots
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND snapshotName = '{{ snapshotName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';