iscsi_servers
Creates, updates, deletes, gets or lists a iscsi_servers
resource.
Overview
Name | iscsi_servers |
Type | Resource |
Id | azure_extras.storsimple_1200_series.iscsi_servers |
Fields
- vw_iscsi_servers
- iscsi_servers
Name | Datatype | Description |
---|---|---|
id | text | The identifier. |
name | text | The name. |
description | text | field from the properties object |
backup_schedule_group_id | text | field from the properties object |
chap_id | text | field from the properties object |
deviceName | text | field from the properties object |
iscsiServerName | text | field from the properties object |
managerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
reverse_chap_id | text | field from the properties object |
storage_domain_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type. |
Name | Datatype | Description |
---|---|---|
id | string | The identifier. |
name | string | The name. |
properties | object | The iSCSI server properties. |
type | string | The type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Returns the properties of the specified iSCSI server name. |
list_by_device | SELECT | deviceName, managerName, resourceGroupName, subscriptionId | Retrieves all the iSCSI in a device. |
list_by_manager | SELECT | managerName, resourceGroupName, subscriptionId | Retrieves all the iSCSI servers in a manager. |
create_or_update | INSERT | deviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the iSCSI server. |
delete | DELETE | deviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Deletes the iSCSI server. |
backup_now | EXEC | deviceName, iscsiServerName, managerName, resourceGroupName, subscriptionId | Backup the iSCSI server now. |
SELECT
examples
Retrieves all the iSCSI servers in a manager.
- vw_iscsi_servers
- iscsi_servers
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 }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.storsimple_1200_series.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: storageDomainId
value: string
- name: backupScheduleGroupId
value: string
- name: description
value: string
- name: chapId
value: string
- name: reverseChapId
value: string
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 }}';