Skip to main content

file_servers

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

Overview

Namefile_servers
TypeResource
Idazure_extras.storsimple_1200_series.file_servers

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
descriptiontextfield from the properties object
backup_schedule_group_idtextfield from the properties object
deviceNametextfield from the properties object
domain_nametextfield from the properties object
fileServerNametextfield from the properties object
managerNametextfield from the properties object
resourceGroupNametextfield from the properties object
storage_domain_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.

Methods

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

SELECT examples

Retrieves all the file servers in a manager.

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 }}';

INSERT example

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

/*+ 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 }}'
;

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 }}';