deleted_accounts
Creates, updates, deletes, gets or lists a deleted_accounts resource.
Overview
| Name | deleted_accounts |
| Type | Resource |
| Id | azure.storage.deleted_accounts |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
creationTime | string | Creation time of the deleted account. |
deletionTime | string | Deletion time of the deleted account. |
location | string | Location of the deleted account. |
restoreReference | string | Can be used to attempt recovering this deleted account via PutStorageAccount API. |
storageAccountResourceId | string | Full resource id of the original storage account. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
creationTime | string | Creation time of the deleted account. |
deletionTime | string | Deletion time of the deleted account. |
location | string | Location of the deleted account. |
restoreReference | string | Can be used to attempt recovering this deleted account via PutStorageAccount API. |
storageAccountResourceId | string | Full resource id of the original storage account. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | deleted_account_name, location, subscription_id | Get properties of specified deleted account resource. | |
list | select | subscription_id | Lists deleted accounts under the subscription. |
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.
| Name | Datatype | Description |
|---|---|---|
deleted_account_name | string | Name of the deleted storage account. Required. |
location | string | The name of the Azure region. Required. |
subscription_id | string |
SELECT examples
- get
- list
Get properties of specified deleted account resource.
SELECT
id,
name,
creationTime,
deletionTime,
location,
restoreReference,
storageAccountResourceId,
systemData,
type
FROM azure.storage.deleted_accounts
WHERE deleted_account_name = '{{ deleted_account_name }}' -- required
AND location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists deleted accounts under the subscription.
SELECT
id,
name,
creationTime,
deletionTime,
location,
restoreReference,
storageAccountResourceId,
systemData,
type
FROM azure.storage.deleted_accounts
WHERE subscription_id = '{{ subscription_id }}' -- required
;