storage_accounts
Creates, updates, deletes, gets or lists a storage_accounts
resource.
Overview
Name | storage_accounts |
Type | Resource |
Id | azure.data_box_edge.storage_accounts |
Fields
- vw_storage_accounts
- storage_accounts
Name | Datatype | Description |
---|---|---|
id | text | The path ID that uniquely identifies the object. |
name | text | The object name. |
description | text | field from the properties object |
blob_endpoint | text | field from the properties object |
container_count | text | field from the properties object |
data_policy | text | field from the properties object |
deviceName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storageAccountName | text | field from the properties object |
storage_account_credential_id | text | field from the properties object |
storage_account_status | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The hierarchical type of the object. |
Name | Datatype | Description |
---|---|---|
id | string | The path ID that uniquely identifies the object. |
name | string | The object name. |
properties | object | The storage account properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The hierarchical type of the object. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deviceName, resourceGroupName, storageAccountName, subscriptionId | |
list_by_data_box_edge_device | SELECT | deviceName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | deviceName, resourceGroupName, storageAccountName, subscriptionId, data__properties | |
delete | DELETE | deviceName, resourceGroupName, storageAccountName, subscriptionId | Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device. |
SELECT
examples
- vw_storage_accounts
- storage_accounts
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 }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.data_box_edge.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.data_box_edge.storage_accounts (
deviceName,
resourceGroupName,
storageAccountName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ deviceName }}',
'{{ resourceGroupName }}',
'{{ storageAccountName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: description
value: string
- name: storageAccountStatus
value: string
- name: dataPolicy
value: string
- name: storageAccountCredentialId
value: string
- name: blobEndpoint
value: string
- name: containerCount
value: integer
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
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 }}';