Skip to main content

volume_snapshots

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

Overview

Namevolume_snapshots
TypeResource
Idazure.elastic_san.volume_snapshots

Fields

NameDatatypeDescription
creation_datatextfield from the properties object
elasticSanNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
snapshotNametextfield from the properties object
source_volume_size_gibtextfield from the properties object
subscriptionIdtextfield from the properties object
volumeGroupNametextfield from the properties object
volume_nametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTelasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupNameGet a Volume Snapshot.
list_by_volume_groupSELECTelasticSanName, resourceGroupName, subscriptionId, volumeGroupNameList Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
createINSERTelasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupName, data__propertiesCreate a Volume Snapshot.
deleteDELETEelasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupNameDelete a Volume Snapshot.

SELECT examples

List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter

SELECT
creation_data,
elasticSanName,
provisioning_state,
resourceGroupName,
snapshotName,
source_volume_size_gib,
subscriptionId,
volumeGroupName,
volume_name
FROM azure.elastic_san.vw_volume_snapshots
WHERE elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.elastic_san.volume_snapshots (
elasticSanName,
resourceGroupName,
snapshotName,
subscriptionId,
volumeGroupName,
data__properties,
properties
)
SELECT
'{{ elasticSanName }}',
'{{ resourceGroupName }}',
'{{ snapshotName }}',
'{{ subscriptionId }}',
'{{ volumeGroupName }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified volume_snapshots resource.

/*+ delete */
DELETE FROM azure.elastic_san.volume_snapshots
WHERE elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND snapshotName = '{{ snapshotName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}';