Skip to main content

shares

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

Overview

Nameshares
TypeResource
Idazure.data_box_edge.shares

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe object name.
descriptiontextfield from the properties object
access_protocoltextfield from the properties object
azure_container_infotextfield from the properties object
client_access_rightstextfield from the properties object
data_policytextfield from the properties object
deviceNametextfield from the properties object
monitoring_statustextfield from the properties object
refresh_detailstextfield from the properties object
resourceGroupNametextfield from the properties object
share_mappingstextfield from the properties object
share_statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe hierarchical type of the object.
user_access_rightstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeviceName, name, resourceGroupName, subscriptionId
list_by_data_box_edge_deviceSELECTdeviceName, resourceGroupName, subscriptionId
create_or_updateINSERTdeviceName, name, resourceGroupName, subscriptionId, data__properties
deleteDELETEdeviceName, name, resourceGroupName, subscriptionIdDeletes the share on the Data Box Edge/Data Box Gateway device.
refreshEXECdeviceName, name, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
description,
access_protocol,
azure_container_info,
client_access_rights,
data_policy,
deviceName,
monitoring_status,
refresh_details,
resourceGroupName,
share_mappings,
share_status,
subscriptionId,
system_data,
type,
user_access_rights
FROM azure.data_box_edge.vw_shares
WHERE deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_box_edge.shares (
deviceName,
name,
resourceGroupName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified shares resource.

/*+ delete */
DELETE FROM azure.data_box_edge.shares
WHERE deviceName = '{{ deviceName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';