iscsi_disks
Creates, updates, deletes, gets or lists a iscsi_disks
resource.
Overview
Name | iscsi_disks |
Type | Resource |
Id | azure_extras.storsimple_1200_series.iscsi_disks |
Fields
- vw_iscsi_disks
- iscsi_disks
Name | Datatype | Description |
---|---|---|
id | text | The identifier. |
name | text | The name. |
description | text | field from the properties object |
access_control_records | text | field from the properties object |
data_policy | text | field from the properties object |
deviceName | text | field from the properties object |
diskName | text | field from the properties object |
disk_status | text | field from the properties object |
iscsiServerName | text | field from the properties object |
local_used_capacity_in_bytes | text | field from the properties object |
managerName | text | field from the properties object |
monitoring_status | text | field from the properties object |
provisioned_capacity_in_bytes | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type. |
used_capacity_in_bytes | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The identifier. |
name | string | The name. |
properties | object | The iSCSI disk properties. |
type | string | The type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Returns the properties of the specified iSCSI disk name. |
list_by_device | SELECT | deviceName, managerName, resourceGroupName, subscriptionId | Retrieves all the iSCSI disks in a device. |
list_by_iscsi_server | SELECT | deviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Retrieves all the disks in a iSCSI server. |
create_or_update | INSERT | deviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the iSCSI disk. |
delete | DELETE | deviceName, diskName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Deletes the iSCSI disk. |
SELECT
examples
Retrieves all the iSCSI disks in a device.
- vw_iscsi_disks
- iscsi_disks
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.storsimple_1200_series.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: description
value: string
- name: diskStatus
value: string
- name: accessControlRecords
value:
- string
- name: dataPolicy
value: string
- name: provisionedCapacityInBytes
value: integer
- name: usedCapacityInBytes
value: integer
- name: localUsedCapacityInBytes
value: integer
- name: monitoringStatus
value: string
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 }}';