Skip to main content

iscsi_targets

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

Overview

Nameiscsi_targets
TypeResource
Idazure.storage_pool.iscsi_targets

Fields

NameDatatypeDescription
acl_modetextfield from the properties object
diskPoolNametextfield from the properties object
endpointstextfield from the properties object
iscsiTargetNametextfield from the properties object
lunstextfield from the properties object
managed_bytextfield from the properties object
managed_by_extendedtextfield from the properties object
porttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sessionstextfield from the properties object
static_aclstextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
target_iqntextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiskPoolName, iscsiTargetName, resourceGroupName, subscriptionIdGet an iSCSI Target.
list_by_disk_poolSELECTdiskPoolName, resourceGroupName, subscriptionIdGet iSCSI Targets in a Disk pool.
create_or_updateINSERTdiskPoolName, iscsiTargetName, resourceGroupName, subscriptionId, data__propertiesCreate or Update an iSCSI Target.
deleteDELETEdiskPoolName, iscsiTargetName, resourceGroupName, subscriptionIdDelete an iSCSI Target.
updateUPDATEdiskPoolName, iscsiTargetName, resourceGroupName, subscriptionId, data__propertiesUpdate an iSCSI Target.

SELECT examples

Get iSCSI Targets in a Disk pool.

SELECT
acl_mode,
diskPoolName,
endpoints,
iscsiTargetName,
luns,
managed_by,
managed_by_extended,
port,
provisioning_state,
resourceGroupName,
sessions,
static_acls,
status,
subscriptionId,
system_data,
target_iqn
FROM azure.storage_pool.vw_iscsi_targets
WHERE diskPoolName = '{{ diskPoolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.storage_pool.iscsi_targets (
diskPoolName,
iscsiTargetName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
managedBy,
managedByExtended
)
SELECT
'{{ diskPoolName }}',
'{{ iscsiTargetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ managedBy }}',
'{{ managedByExtended }}'
;

UPDATE example

Updates a iscsi_targets resource.

/*+ update */
UPDATE azure.storage_pool.iscsi_targets
SET
properties = '{{ properties }}',
managedBy = '{{ managedBy }}',
managedByExtended = '{{ managedByExtended }}'
WHERE
diskPoolName = '{{ diskPoolName }}'
AND iscsiTargetName = '{{ iscsiTargetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND data__properties = '{{ data__properties }}';

DELETE example

Deletes the specified iscsi_targets resource.

/*+ delete */
DELETE FROM azure.storage_pool.iscsi_targets
WHERE diskPoolName = '{{ diskPoolName }}'
AND iscsiTargetName = '{{ iscsiTargetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';