Skip to main content

iscsi_servers

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

Overview

Nameiscsi_servers
TypeResource
Idazure_extras.storsimple_1200_series.iscsi_servers

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
descriptiontextfield from the properties object
backup_schedule_group_idtextfield from the properties object
chap_idtextfield from the properties object
deviceNametextfield from the properties object
iscsiServerNametextfield from the properties object
managerNametextfield from the properties object
resourceGroupNametextfield from the properties object
reverse_chap_idtextfield from the properties object
storage_domain_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, iscsiServerName, managerName, resourceGroupName, subscriptionIdReturns the properties of the specified iSCSI server name.
list_by_deviceSELECTdeviceName, managerName, resourceGroupName, subscriptionIdRetrieves all the iSCSI in a device.
list_by_managerSELECTmanagerName, resourceGroupName, subscriptionIdRetrieves all the iSCSI servers in a manager.
create_or_updateINSERTdeviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId, data__propertiesCreates or updates the iSCSI server.
deleteDELETEdeviceName, iscsiServerName, managerName, resourceGroupName, subscriptionIdDeletes the iSCSI server.
backup_nowEXECdeviceName, iscsiServerName, managerName, resourceGroupName, subscriptionIdBackup the iSCSI server now.

SELECT examples

Retrieves all the iSCSI servers in a manager.

SELECT
id,
name,
description,
backup_schedule_group_id,
chap_id,
deviceName,
iscsiServerName,
managerName,
resourceGroupName,
reverse_chap_id,
storage_domain_id,
subscriptionId,
type
FROM azure_extras.storsimple_1200_series.vw_iscsi_servers
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified iscsi_servers resource.

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