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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
blobEndpointstringBlobEndpoint of Storage Account.
containerCountintegerThe Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
dataPolicystringData policy of the storage Account. Required. Known values are: "Cloud" and "Local". (Cloud, Local)
descriptionstringDescription for the storage Account.
storageAccountCredentialIdstringStorage Account Credential Id.
storageAccountStatusstringCurrent status of the storage account. Known values are: "OK", "Offline", "Unknown", "Updating", and "NeedsAttention". (OK, Offline, Unknown, Updating, NeedsAttention)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdevice_name, storage_account_name, resource_group_name, subscription_idGets a StorageAccount by name. Gets a StorageAccount by name.
list_by_data_box_edge_deviceselectdevice_name, resource_group_name, subscription_idLists all the StorageAccounts in a Data Box Edge/Data Box Gateway device. Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device.
create_or_updateinsertdevice_name, storage_account_name, resource_group_name, subscription_id, propertiesCreates a new StorageAccount or updates an existing StorageAccount on the device. Creates a new StorageAccount or updates an existing StorageAccount on the device.
create_or_updatereplacedevice_name, storage_account_name, resource_group_name, subscription_id, propertiesCreates a new StorageAccount or updates an existing StorageAccount on the device. Creates a new StorageAccount or updates an existing StorageAccount on the device.
deletedeletedevice_name, storage_account_name, resource_group_name, subscription_idDeletes the StorageAccount on the Data Box Edge/Data Box Gateway device.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
device_namestringThe device name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_account_namestringThe storage account name. Required.
subscription_idstring

SELECT examples

Gets a StorageAccount by name. Gets a StorageAccount by name.

SELECT
id,
name,
blobEndpoint,
containerCount,
dataPolicy,
description,
storageAccountCredentialId,
storageAccountStatus,
systemData,
type
FROM azure.data_box_edge.storage_accounts
WHERE device_name = '{{ device_name }}' -- required
AND storage_account_name = '{{ storage_account_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new StorageAccount or updates an existing StorageAccount on the device. Creates a new StorageAccount or updates an existing StorageAccount on the device.

INSERT INTO azure.data_box_edge.storage_accounts (
properties,
device_name,
storage_account_name,
resource_group_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ device_name }}',
'{{ storage_account_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates a new StorageAccount or updates an existing StorageAccount on the device. Creates a new StorageAccount or updates an existing StorageAccount on the device.

REPLACE azure.data_box_edge.storage_accounts
SET
properties = '{{ properties }}'
WHERE
device_name = '{{ device_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.

DELETE FROM azure.data_box_edge.storage_accounts
WHERE device_name = '{{ device_name }}' --required
AND storage_account_name = '{{ storage_account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;