Skip to main content

storage_accounts

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

Overview

Namestorage_accounts
TypeResource
Idazure_stack.storage_admin.storage_accounts

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource Name.
access_tiertextfield from the properties object
accountIdtextfield from the properties object
account_idtextfield from the properties object
account_statustextfield from the properties object
account_typetextfield from the properties object
creation_timetextfield from the properties object
deleted_timetextfield from the properties object
encryptiontextfield from the properties object
fault_domaintextfield from the properties object
health_statetextfield from the properties object
kindtextThe kind of storage account
locationtextResource Location.
primary_endpointstextfield from the properties object
primary_locationtextfield from the properties object
provisioning_statetextfield from the properties object
status_of_primarytextfield from the properties object
subscriptionIdtextfield from the properties object
supports_https_traffic_onlytextfield from the properties object
tagstextResource tags.
tenant_resource_group_nametextfield from the properties object
tenant_storage_account_nametextfield from the properties object
tenant_subscription_idtextfield from the properties object
tenant_view_idtextfield from the properties object
typetextResource Type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountId, location, subscriptionIdReturns the requested storage account.
listSELECTlocation, subscriptionIdReturns a list of storage accounts.
reclaim_storage_capacityEXEClocation, subscriptionIdStart reclaim storage capacity on deleted storage objects.
undeleteEXECaccountId, location, subscriptionIdUndelete a deleted storage account with new account name if the a new name is provided.

SELECT examples

Returns a list of storage accounts.

SELECT
id,
name,
access_tier,
accountId,
account_id,
account_status,
account_type,
creation_time,
deleted_time,
encryption,
fault_domain,
health_state,
kind,
location,
primary_endpoints,
primary_location,
provisioning_state,
status_of_primary,
subscriptionId,
supports_https_traffic_only,
tags,
tenant_resource_group_name,
tenant_storage_account_name,
tenant_subscription_id,
tenant_view_id,
type
FROM azure_stack.storage_admin.vw_storage_accounts
WHERE location = '{{ location }}'
AND subscriptionId = '{{ subscriptionId }}';