Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure_extras.storsimple_8000_series.volumes

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe name of the object.
access_control_record_idstextfield from the properties object
backup_policy_idstextfield from the properties object
backup_statustextfield from the properties object
deviceNametextfield from the properties object
kindtextThe Kind of the object. Currently only Series8000 is supported
managerNametextfield from the properties object
monitoring_statustextfield from the properties object
operation_statustextfield from the properties object
resourceGroupNametextfield from the properties object
size_in_bytestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe hierarchical type of the object.
volumeContainerNametextfield from the properties object
volumeNametextfield from the properties object
volume_container_idtextfield from the properties object
volume_statustextfield from the properties object
volume_typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeNameReturns the properties of the specified volume name.
list_by_deviceSELECTdeviceName, managerName, resourceGroupName, subscriptionIdRetrieves all the volumes in a device.
list_by_volume_containerSELECTdeviceName, managerName, resourceGroupName, subscriptionId, volumeContainerNameRetrieves all the volumes in a volume container.
create_or_updateINSERTdeviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeName, data__propertiesCreates or updates the volume.
deleteDELETEdeviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeNameDeletes the volume.

SELECT examples

Retrieves all the volumes in a device.

SELECT
id,
name,
access_control_record_ids,
backup_policy_ids,
backup_status,
deviceName,
kind,
managerName,
monitoring_status,
operation_status,
resourceGroupName,
size_in_bytes,
subscriptionId,
type,
volumeContainerName,
volumeName,
volume_container_id,
volume_status,
volume_type
FROM azure_extras.storsimple_8000_series.vw_volumes
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
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_extras.storsimple_8000_series.volumes (
deviceName,
managerName,
resourceGroupName,
subscriptionId,
volumeContainerName,
volumeName,
data__properties,
kind,
properties
)
SELECT
'{{ deviceName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeContainerName }}',
'{{ volumeName }}',
'{{ data__properties }}',
'{{ kind }}',
'{{ properties }}'
;

DELETE example

Deletes the specified volumes resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_8000_series.volumes
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeContainerName = '{{ volumeContainerName }}'
AND volumeName = '{{ volumeName }}';