Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure.container_storage.volumes

Fields

NameDatatypeDescription
capacity_gibtextfield from the properties object
labelstextfield from the properties object
poolNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
volumeNametextfield from the properties object
volume_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTpoolName, resourceGroupName, subscriptionId, volumeNameGet a Volume
list_by_poolSELECTpoolName, resourceGroupName, subscriptionIdList Volume resources by Pool
create_or_updateINSERTpoolName, resourceGroupName, subscriptionId, volumeNameCreate a Volume
deleteDELETEpoolName, resourceGroupName, subscriptionId, volumeNameDelete a Volume
updateUPDATEpoolName, resourceGroupName, subscriptionId, volumeNameUpdate a Volume

SELECT examples

List Volume resources by Pool

SELECT
capacity_gib,
labels,
poolName,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
volumeName,
volume_type
FROM azure.container_storage.vw_volumes
WHERE poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_storage.volumes (
poolName,
resourceGroupName,
subscriptionId,
volumeName,
properties
)
SELECT
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeName }}',
'{{ properties }}'
;

UPDATE example

Updates a volumes resource.

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

DELETE example

Deletes the specified volumes resource.

/*+ delete */
DELETE FROM azure.container_storage.volumes
WHERE poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';