StorageAccount Class
The storage account.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.storage.v2020_08_01_preview.models._models_py3.TrackedResourceStorageAccount
Constructor
StorageAccount(*, location: str, tags: Optional[Dict[str, str]] = None, identity: Optional[azure.mgmt.storage.v2020_08_01_preview.models._models_py3.Identity] = None, extended_location: Optional[azure.mgmt.storage.v2020_08_01_preview.models._models_py3.ExtendedLocation] = None, azure_files_identity_based_authentication: Optional[azure.mgmt.storage.v2020_08_01_preview.models._models_py3.AzureFilesIdentityBasedAuthentication] = None, enable_https_traffic_only: Optional[bool] = None, is_hns_enabled: Optional[bool] = None, large_file_shares_state: Optional[Union[str, azure.mgmt.storage.v2020_08_01_preview.models._storage_management_client_enums.LargeFileSharesState]] = None, routing_preference: Optional[azure.mgmt.storage.v2020_08_01_preview.models._models_py3.RoutingPreference] = None, allow_blob_public_access: Optional[bool] = None, minimum_tls_version: Optional[Union[str, azure.mgmt.storage.v2020_08_01_preview.models._storage_management_client_enums.MinimumTlsVersion]] = None, allow_shared_key_access: Optional[bool] = None, **kwargs)
Variables
- id
- str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- str
The name of the resource.
- type
- str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- location
- str
Required. The geo-location where the resource lives.
- sku
- Sku
Gets the SKU.
Gets the Kind. Possible values include: "Storage", "StorageV2", "BlobStorage", "FileStorage", "BlockBlobStorage".
- identity
- Identity
The identity of the resource.
- extended_location
- ExtendedLocation
The extendedLocation of the resource.
- provisioning_state
- str or ProvisioningState
Gets the status of the storage account at the time the operation was called. Possible values include: "Creating", "ResolvingDNS", "Succeeded".
- primary_endpoints
- Endpoints
Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.
- primary_location
- str
Gets the location of the primary data center for the storage account.
- status_of_primary
- str or AccountStatus
Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: "available", "unavailable".
- last_geo_failover_time
- datetime
Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.
- secondary_location
- str
Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.
- status_of_secondary
- str or AccountStatus
Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: "available", "unavailable".
- creation_time
- datetime
Gets the creation date and time of the storage account in UTC.
- custom_domain
- CustomDomain
Gets the custom domain the user assigned to this storage account.
- secondary_endpoints
- Endpoints
Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.
- encryption
- Encryption
Gets the encryption settings on the account. If unspecified, the account is unencrypted.
- access_tier
- str or AccessTier
Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: "Hot", "Cool".
- azure_files_identity_based_authentication
- AzureFilesIdentityBasedAuthentication
Provides the identity based authentication settings for Azure Files.
- enable_https_traffic_only
- <xref:enable_https_traffic_only>)<xref: >(bool
Allows https traffic only to storage service if sets to true.
- network_rule_set
- NetworkRuleSet
Network rule set.
- is_hns_enabled
- bool
Account HierarchicalNamespace enabled if sets to true.
- geo_replication_stats
- GeoReplicationStats
Geo Replication Stats.
- failover_in_progress
- bool
If the failover is in progress, the value will be true, otherwise, it will be null.
- large_file_shares_state
- str or LargeFileSharesState
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: "Disabled", "Enabled".
- private_endpoint_connections
- list[PrivateEndpointConnection]
List of private endpoint connection associated with the specified storage account.
- routing_preference
- RoutingPreference
Maintains information about the network routing choice opted by the user for data transfer.
- blob_restore_status
- BlobRestoreStatus
Blob restore status.
- allow_blob_public_access
- bool
Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.
- minimum_tls_version
- str or MinimumTlsVersion
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: "TLS1_0", "TLS1_1", "TLS1_2".
- allow_shared_key_access
- bool
Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.
Feedback
Submit and view feedback for