Skip to main content

file_shares

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

Overview

Namefile_shares
TypeResource
Idazure_extras.storsimple_1200_series.file_shares

Fields

NameDatatypeDescription
idtextThe identifier.
nametextThe name.
descriptiontextfield from the properties object
admin_usertextfield from the properties object
data_policytextfield from the properties object
deviceNametextfield from the properties object
fileServerNametextfield from the properties object
local_used_capacity_in_bytestextfield from the properties object
managerNametextfield from the properties object
monitoring_statustextfield from the properties object
provisioned_capacity_in_bytestextfield from the properties object
resourceGroupNametextfield from the properties object
shareNametextfield from the properties object
share_statustextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type.
used_capacity_in_bytestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, fileServerName, managerName, resourceGroupName, shareName, subscriptionIdReturns the properties of the specified file share name.
list_by_deviceSELECTdeviceName, managerName, resourceGroupName, subscriptionIdRetrieves all the file shares in a device.
list_by_file_serverSELECTdeviceName, fileServerName, managerName, resourceGroupName, subscriptionIdRetrieves all the file shares in a file server.
create_or_updateINSERTdeviceName, fileServerName, managerName, resourceGroupName, shareName, subscriptionId, data__propertiesCreates or updates the file share.
deleteDELETEdeviceName, fileServerName, managerName, resourceGroupName, shareName, subscriptionIdDeletes the file share.

SELECT examples

Retrieves all the file shares in a device.

SELECT
id,
name,
description,
admin_user,
data_policy,
deviceName,
fileServerName,
local_used_capacity_in_bytes,
managerName,
monitoring_status,
provisioned_capacity_in_bytes,
resourceGroupName,
shareName,
share_status,
subscriptionId,
type,
used_capacity_in_bytes
FROM azure_extras.storsimple_1200_series.vw_file_shares
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 file_shares resource.

/*+ create */
INSERT INTO azure_extras.storsimple_1200_series.file_shares (
deviceName,
fileServerName,
managerName,
resourceGroupName,
shareName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ fileServerName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ shareName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified file_shares resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_1200_series.file_shares
WHERE deviceName = '{{ deviceName }}'
AND fileServerName = '{{ fileServerName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND shareName = '{{ shareName }}'
AND subscriptionId = '{{ subscriptionId }}';