你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 server.
- Inheritance
-
azure.mgmt.storage.v2021_02_01.models._models_py3.TrackedResourceStorageAccount
Constructor
StorageAccount(*, location: str, tags: Dict[str, str] | None = None, identity: _models.Identity | None = None, extended_location: _models.ExtendedLocation | None = None, azure_files_identity_based_authentication: _models.AzureFilesIdentityBasedAuthentication | None = None, enable_https_traffic_only: bool | None = None, is_hns_enabled: bool | None = None, large_file_shares_state: str | _models.LargeFileSharesState | None = None, routing_preference: _models.RoutingPreference | None = None, allow_blob_public_access: bool | None = None, minimum_tls_version: str | _models.MinimumTlsVersion | None = None, allow_shared_key_access: bool | None = None, enable_nfs_v3: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
tags
|
Resource tags. |
location
|
The geo-location where the resource lives. Required. |
identity
|
The identity of the resource. |
extended_location
|
The extendedLocation of the resource. |
azure_files_identity_based_authentication
|
Provides the identity based authentication settings for Azure Files. |
enable_https_traffic_only
|
Allows https traffic only to storage service if sets to true. |
is_hns_enabled
|
Account HierarchicalNamespace enabled if sets to true. |
large_file_shares_state
|
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". |
routing_preference
|
Maintains information about the network routing choice opted by the user for data transfer. |
allow_blob_public_access
|
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
|
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", and "TLS1_2". |
allow_shared_key_access
|
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. |
enable_nfs_v3
|
NFS 3.0 protocol support enabled if set to true. |
Variables
Name | Description |
---|---|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long |
name
|
The name of the resource. |
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
tags
|
Resource tags. |
location
|
The geo-location where the resource lives. Required. |
sku
|
Gets the SKU. |
kind
|
Gets the Kind. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". |
identity
|
The identity of the resource. |
extended_location
|
The extendedLocation of the resource. |
provisioning_state
|
Gets the status of the storage account at the time the operation was called. Known values are: "Creating", "ResolvingDNS", and "Succeeded". |
primary_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
|
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. Known values are: "available" and "unavailable". |
last_geo_failover_time
|
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
|
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. Known values are: "available" and "unavailable". |
creation_time
|
Gets the creation date and time of the storage account in UTC. |
custom_domain
|
Gets the custom domain the user assigned to this storage account. |
sas_policy
|
SasPolicy assigned to the storage account. |
key_policy
|
KeyPolicy assigned to the storage account. |
key_creation_time
|
Storage account keys creation time. |
secondary_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
|
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. Known values are: "Hot" and "Cool". |
azure_files_identity_based_authentication
|
Provides the identity based authentication settings for Azure Files. |
enable_https_traffic_only
|
Allows https traffic only to storage service if sets to true. |
network_rule_set
|
Network rule set. |
is_hns_enabled
|
Account HierarchicalNamespace enabled if sets to true. |
geo_replication_stats
|
Geo Replication Stats. |
failover_in_progress
|
If the failover is in progress, the value will be true, otherwise, it will be null. |
large_file_shares_state
|
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". |
private_endpoint_connections
|
List of private endpoint connection associated with the specified storage account. |
routing_preference
|
Maintains information about the network routing choice opted by the user for data transfer. |
blob_restore_status
|
Blob restore status. |
allow_blob_public_access
|
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
|
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", and "TLS1_2". |
allow_shared_key_access
|
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. |
enable_nfs_v3
|
NFS 3.0 protocol support enabled if set to true. |