Skip to main content

iscsi_disks

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

Overview

Nameiscsi_disks
TypeResource
Idazure_extras.storsimple_1200_series.iscsi_disks

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
descriptiontextfield from the properties object
access_control_recordstextfield from the properties object
data_policytextfield from the properties object
deviceNametextfield from the properties object
diskNametextfield from the properties object
disk_statustextfield from the properties object
iscsiServerNametextfield from the properties object
local_used_capacity_in_bytestextfield from the properties object
managerNametextfield from the properties object
monitoring_statustextfield from the properties object
provisioned_capacity_in_bytestextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.
used_capacity_in_bytestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionIdReturns the properties of the specified iSCSI disk name.
list_by_deviceSELECTdeviceName, managerName, resourceGroupName, subscriptionIdRetrieves all the iSCSI disks in a device.
list_by_iscsi_serverSELECTdeviceName, iscsiServerName, managerName, resourceGroupName, subscriptionIdRetrieves all the disks in a iSCSI server.
create_or_updateINSERTdeviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionId, data__propertiesCreates or updates the iSCSI disk.
deleteDELETEdeviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionIdDeletes the iSCSI disk.

SELECT examples

Retrieves all the iSCSI disks in a device.

SELECT
id,
name,
description,
access_control_records,
data_policy,
deviceName,
diskName,
disk_status,
iscsiServerName,
local_used_capacity_in_bytes,
managerName,
monitoring_status,
provisioned_capacity_in_bytes,
resourceGroupName,
subscriptionId,
type,
used_capacity_in_bytes
FROM azure_extras.storsimple_1200_series.vw_iscsi_disks
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 iscsi_disks resource.

/*+ create */
INSERT INTO azure_extras.storsimple_1200_series.iscsi_disks (
deviceName,
diskName,
iscsiServerName,
managerName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ diskName }}',
'{{ iscsiServerName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified iscsi_disks resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.iscsi_disks
WHERE deviceName = '{{ deviceName }}'
AND diskName = '{{ diskName }}'
AND iscsiServerName = '{{ iscsiServerName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';