volume_snapshots
Creates, updates, deletes, gets or lists a volume_snapshots
resource.
Overview
Name | volume_snapshots |
Type | Resource |
Id | azure.elastic_san.volume_snapshots |
Fields
- vw_volume_snapshots
- volume_snapshots
Name | Datatype | Description |
---|---|---|
creation_data | text | field from the properties object |
elasticSanName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
snapshotName | text | field from the properties object |
source_volume_size_gib | text | field from the properties object |
subscriptionId | text | field from the properties object |
volumeGroupName | text | field from the properties object |
volume_name | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties for Snapshot. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | elasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupName | Get a Volume Snapshot. |
list_by_volume_group | SELECT | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName | List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter |
create | INSERT | elasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupName, data__properties | Create a Volume Snapshot. |
delete | DELETE | elasticSanName, resourceGroupName, snapshotName, subscriptionId, volumeGroupName | Delete a Volume Snapshot. |
SELECT
examples
List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
- vw_volume_snapshots
- volume_snapshots
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 }}';
SELECT
properties
FROM azure.elastic_san.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: creationData
value:
- name: sourceId
value: string
- name: provisioningState
value: []
- name: sourceVolumeSizeGiB
value: integer
- name: volumeName
value: string
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 }}';