file_servers
Creates, updates, deletes, gets or lists a file_servers
resource.
Overview
Name | file_servers |
Type | Resource |
Id | azure_extras.storsimple_1200_series.file_servers |
Fields
- vw_file_servers
- file_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 |
deviceName | text | field from the properties object |
domain_name | text | field from the properties object |
fileServerName | text | field from the properties object |
managerName | text | field from the properties object |
resourceGroupName | 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 file server properties. |
type | string | The type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deviceName, fileServerName, managerName, resourceGroupName, subscriptionId | Returns the properties of the specified file server name. |
list_by_device | SELECT | deviceName, managerName, resourceGroupName, subscriptionId | Retrieves all the file servers in a device. |
list_by_manager | SELECT | managerName, resourceGroupName, subscriptionId | Retrieves all the file servers in a manager. |
create_or_update | INSERT | deviceName, fileServerName, managerName, resourceGroupName, subscriptionId, data__properties | Creates or updates the file server. |
delete | DELETE | deviceName, fileServerName, managerName, resourceGroupName, subscriptionId | Deletes the file server. |
backup_now | EXEC | deviceName, fileServerName, managerName, resourceGroupName, subscriptionId | Backup the file server now. |
SELECT
examples
Retrieves all the file servers in a manager.
- vw_file_servers
- file_servers
SELECT
id,
name,
description,
backup_schedule_group_id,
deviceName,
domain_name,
fileServerName,
managerName,
resourceGroupName,
storage_domain_id,
subscriptionId,
type
FROM azure_extras.storsimple_1200_series.vw_file_servers
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
type
FROM azure_extras.storsimple_1200_series.file_servers
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new file_servers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.storsimple_1200_series.file_servers (
deviceName,
fileServerName,
managerName,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ fileServerName }}',
'{{ 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: domainName
value: string
- name: storageDomainId
value: string
- name: backupScheduleGroupId
value: string
- name: description
value: string
DELETE
example
Deletes the specified file_servers
resource.
/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.file_servers
WHERE deviceName = '{{ deviceName }}'
AND fileServerName = '{{ fileServerName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';