iscsi_targets
Creates, updates, deletes, gets or lists a iscsi_targets
resource.
Overview
Name | iscsi_targets |
Type | Resource |
Id | azure.storage_pool.iscsi_targets |
Fields
- vw_iscsi_targets
- iscsi_targets
Name | Datatype | Description |
---|---|---|
acl_mode | text | field from the properties object |
diskPoolName | text | field from the properties object |
endpoints | text | field from the properties object |
iscsiTargetName | text | field from the properties object |
luns | text | field from the properties object |
managed_by | text | field from the properties object |
managed_by_extended | text | field from the properties object |
port | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sessions | text | field from the properties object |
static_acls | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
target_iqn | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
managedBy | string | Azure resource id. Indicates if this resource is managed by another Azure resource. |
managedByExtended | array | List of Azure resource ids that manage this resource. |
properties | object | Response properties for iSCSI Target operations. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | diskPoolName, iscsiTargetName, resourceGroupName, subscriptionId | Get an iSCSI Target. |
list_by_disk_pool | SELECT | diskPoolName, resourceGroupName, subscriptionId | Get iSCSI Targets in a Disk pool. |
create_or_update | INSERT | diskPoolName, iscsiTargetName, resourceGroupName, subscriptionId, data__properties | Create or Update an iSCSI Target. |
delete | DELETE | diskPoolName, iscsiTargetName, resourceGroupName, subscriptionId | Delete an iSCSI Target. |
update | UPDATE | diskPoolName, iscsiTargetName, resourceGroupName, subscriptionId, data__properties | Update an iSCSI Target. |
SELECT
examples
Get iSCSI Targets in a Disk pool.
- vw_iscsi_targets
- iscsi_targets
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 }}';
SELECT
managedBy,
managedByExtended,
properties,
systemData
FROM azure.storage_pool.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: aclMode
value: []
- name: targetIqn
value: string
- name: staticAcls
value:
- - name: initiatorIqn
value: string
- name: mappedLuns
value:
- string
- name: luns
value:
- - name: name
value: string
- name: managedDiskAzureResourceId
value: string
- name: lun
value: integer
- name: managedBy
value: []
- name: managedByExtended
value: []
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 }}';