Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure.elastic_san.volumes

Fields

NameDatatypeDescription
creation_datatextfield from the properties object
elasticSanNametextfield from the properties object
managed_bytextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
size_gibtextfield from the properties object
storage_targettextfield from the properties object
subscriptionIdtextfield from the properties object
volumeGroupNametextfield from the properties object
volumeNametextfield from the properties object
volume_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTelasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeNameGet an Volume.
list_by_volume_groupSELECTelasticSanName, resourceGroupName, subscriptionId, volumeGroupNameList Volumes in a VolumeGroup.
createINSERTelasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeName, data__propertiesCreate a Volume.
deleteDELETEelasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeNameDelete an Volume.
updateUPDATEelasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeNameUpdate an Volume.

SELECT examples

List Volumes in a VolumeGroup.

SELECT
creation_data,
elasticSanName,
managed_by,
provisioning_state,
resourceGroupName,
size_gib,
storage_target,
subscriptionId,
volumeGroupName,
volumeName,
volume_id
FROM azure.elastic_san.vw_volumes
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 volumes resource.

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

UPDATE example

Updates a volumes resource.

/*+ update */
UPDATE azure.elastic_san.volumes
SET
properties = '{{ properties }}'
WHERE
elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}'
AND volumeName = '{{ volumeName }}';

DELETE example

Deletes the specified volumes resource.

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