Skip to main content

storage_accounts

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

Overview

Namestorage_accounts
TypeResource
Idazure.data_box_edge.storage_accounts

Fields

NameDatatypeDescription
idtextThe path ID that uniquely identifies the object.
nametextThe object name.
descriptiontextfield from the properties object
blob_endpointtextfield from the properties object
container_counttextfield from the properties object
data_policytextfield from the properties object
deviceNametextfield from the properties object
resourceGroupNametextfield from the properties object
storageAccountNametextfield from the properties object
storage_account_credential_idtextfield from the properties object
storage_account_statustextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe hierarchical type of the object.

Methods

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

SELECT examples

SELECT
id,
name,
description,
blob_endpoint,
container_count,
data_policy,
deviceName,
resourceGroupName,
storageAccountName,
storage_account_credential_id,
storage_account_status,
subscriptionId,
system_data,
type
FROM azure.data_box_edge.vw_storage_accounts
WHERE deviceName = '{{ deviceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified storage_accounts resource.

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