Interface StorageAccount
- All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource<StorageManager, StorageAccountInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasId, com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel<StorageAccountInner>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<StorageManager>, com.azure.resourcemanager.resources.fluentcore.arm.models.HasName, com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup, com.azure.resourcemanager.resources.fluentcore.model.Indexable, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<StorageAccount>, com.azure.resourcemanager.resources.fluentcore.arm.models.Resource, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource, com.azure.resourcemanager.resources.fluentcore.collection.SupportsUpdatingPrivateEndpointConnection, com.azure.resourcemanager.resources.fluentcore.model.Updatable<StorageAccount.Update>
public interface StorageAccount
extends com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource<StorageManager, StorageAccountInner>, com.azure.resourcemanager.resources.fluentcore.model.Refreshable<StorageAccount>, com.azure.resourcemanager.resources.fluentcore.model.Updatable<StorageAccount.Update>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection, com.azure.resourcemanager.resources.fluentcore.collection.SupportsUpdatingPrivateEndpointConnection
An immutable client-side representation of an Azure storage account.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContainer interface for all the definitions that need to be implemented.static interfaceGrouping of all the storage account definition stages.static interfaceThe template for a storage account update operation, containing all the settings that can be modified.static interfaceGrouping of all the storage account update stages.Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.DefinitionWithRegion<T>, com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.DefinitionWithTags<T>, com.azure.resourcemanager.resources.fluentcore.arm.models.Resource.UpdateWithTags<T> -
Field Summary
Fields inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
DUMMY -
Method Summary
Modifier and TypeMethodDescriptionGets access tier used for billing.Gets the status indicating whether the primary and secondary location of the storage account is available or unavailable.booleanChecks storage account can be accessed from applications running on azure.booleanChecks whether storage log entries can be read from any network.booleanChecks storage metrics can be read from any network.Gets the creation date and time of the storage account in UTC.Gets the user assigned custom domain assigned to this storage account.The source of the key used for encryption.Gets the encryption statuses indexed by storage service type.Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.getKeys()Fetch the up-to-date access keys from Azure for this storage account.Fetch the up-to-date access keys from Azure for this storage account asynchronously.Type of the Managed Service Identity used to access KeyVault for encryption.booleanChecks whether infrastructure encryption for Azure Storage data is enabled.Gets the list of ip addresses having access to the storage account.Gets the list of ip address ranges having access to the storage account.booleanChecks whether authenticated application from any network is allowed to access the storage account.booleanChecks whether cross tenant replication is allowed.booleanChecks whether Aad Integration is enabled for files on this storage account.booleanChecks whether blob public access is allowed.booleanChecks whether default to oauth authentication is allowed.booleanChecks whether Hns is enabled on this storage account.booleanChecks whether storage account only allow HTTPS traffic.booleanChecks whether large file shares enabled on this storage account.booleanChecks whether shared key access is allowed.kind()Gets the kind of the storage account.Gets the timestamp of the most recent instance of a failover to the secondary location.Gets the minimum TLS version for HTTPS traffic.Gets the list of resource id of virtual network subnet having access to the storage account.Gets the status of the storage account.Whether the storage account can be accessed from public network.regenerateKey(String keyName) Regenerates the access keys for this storage account.regenerateKeyAsync(String keyName) Regenerates the access keys for this storage account asynchronously.skuType()Gets the sku of this storage account.Gets the Managed Service Identity specific Active Directory service principal ID assigned to the storage account.Gets the Managed Service Identity specific Active Directory tenant ID assigned to the storage account.User-assigned Managed Service Identity ID to access the KeyVault for encryption.Gets the resource ids of User Assigned Managed Service Identities associated with the storage account.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasId
idMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupNameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Indexable
keyMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, typeMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection
listPrivateEndpointConnections, listPrivateEndpointConnectionsAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource
listPrivateLinkResources, listPrivateLinkResourcesAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsUpdatingPrivateEndpointConnection
approvePrivateEndpointConnection, approvePrivateEndpointConnectionAsync, rejectPrivateEndpointConnection, rejectPrivateEndpointConnectionAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Updatable
update
-
Method Details
-
accountStatuses
AccountStatuses accountStatuses()Gets the status indicating whether the primary and secondary location of the storage account is available or unavailable.- Returns:
- the status indicating whether the primary and secondary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable'
-
skuType
StorageAccountSkuType skuType()Gets the sku of this storage account.- Returns:
- the sku of this storage account.
-
kind
Kind kind()Gets the kind of the storage account.- Returns:
- the kind of the storage account. Possible values are 'Storage', 'BlobStorage'.
-
creationTime
OffsetDateTime creationTime()Gets the creation date and time of the storage account in UTC.- Returns:
- the creation date and time of the storage account in UTC
-
customDomain
CustomDomain customDomain()Gets the user assigned custom domain assigned to this storage account.- Returns:
- the user assigned custom domain assigned to this storage account
-
lastGeoFailoverTime
OffsetDateTime lastGeoFailoverTime()Gets the timestamp of the most recent instance of a failover to the secondary location.- Returns:
- 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 StandardGRS or StandardRAGRS
-
provisioningState
ProvisioningState provisioningState()Gets the status of the storage account.- Returns:
- the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'
-
endPoints
PublicEndpoints endPoints()Gets the URLs that are used to perform a retrieval of a public blob, queue or table object.- Returns:
- the URLs that are used to perform a retrieval of a public blob, queue or table object. Note that StandardZRS and PremiumLRS accounts only return the blob endpoint
-
encryptionKeySource
StorageAccountEncryptionKeySource encryptionKeySource()The source of the key used for encryption.StorageAccountEncryptionKeySource.MICROSOFT_STORAGEmeans that the Storage Account is encrypted using Microsoft-managed Key.StorageAccountEncryptionKeySource.MICROSOFT_KEYVAULTmeans that the Storage Account is encrypted using Customer-managed Key.- Returns:
- the source of the key used for encryption.
-
encryptionStatuses
Map<StorageService, StorageAccountEncryptionStatus> encryptionStatuses()Gets the encryption statuses indexed by storage service type.- Returns:
- the encryption statuses indexed by storage service type.
-
infrastructureEncryptionEnabled
boolean infrastructureEncryptionEnabled()Checks whether infrastructure encryption for Azure Storage data is enabled.- Returns:
- whether infrastructure encryption for Azure Storage data is enabled.
-
accessTier
AccessTier accessTier()Gets access tier used for billing.- Returns:
- access tier used for billing. Access tier cannot be changed more than once every 7 days (168 hours). Access tier cannot be set for StandardLRS, StandardGRS, StandardRAGRS, or PremiumLRS account types. Possible values include: 'Hot', 'Cool'.
-
systemAssignedManagedServiceIdentityTenantId
String systemAssignedManagedServiceIdentityTenantId()Gets the Managed Service Identity specific Active Directory tenant ID assigned to the storage account.- Returns:
- the Managed Service Identity specific Active Directory tenant ID assigned to the storage account.
-
systemAssignedManagedServiceIdentityPrincipalId
String systemAssignedManagedServiceIdentityPrincipalId()Gets the Managed Service Identity specific Active Directory service principal ID assigned to the storage account.- Returns:
- the Managed Service Identity specific Active Directory service principal ID assigned to the storage account.
-
userAssignedManagedServiceIdentityIds
-
isAccessAllowedFromAllNetworks
boolean isAccessAllowedFromAllNetworks()Checks whether authenticated application from any network is allowed to access the storage account.- Returns:
- true if authenticated application from any network is allowed to access the storage account, false if only application from whitelisted network (subnet, ip address, ip address range) can access the storage account.
-
networkSubnetsWithAccess
-
ipAddressesWithAccess
-
ipAddressRangesWithAccess
-
canReadLogEntriesFromAnyNetwork
boolean canReadLogEntriesFromAnyNetwork()Checks whether storage log entries can be read from any network.- Returns:
- true if storage log entries can be read from any network, false otherwise
-
canReadMetricsFromAnyNetwork
boolean canReadMetricsFromAnyNetwork()Checks storage metrics can be read from any network.- Returns:
- true if storage metrics can be read from any network, false otherwise
-
canAccessFromAzureServices
boolean canAccessFromAzureServices()Checks storage account can be accessed from applications running on azure.- Returns:
- true if storage can be accessed from application running on azure, false otherwise
-
isAzureFilesAadIntegrationEnabled
boolean isAzureFilesAadIntegrationEnabled()Checks whether Aad Integration is enabled for files on this storage account.- Returns:
- true if Aad integration is enabled, false otherwise
-
isHnsEnabled
boolean isHnsEnabled()Checks whether Hns is enabled on this storage account.- Returns:
- true if Hns is enabled, false otherwise
-
minimumTlsVersion
MinimumTlsVersion minimumTlsVersion()Gets the minimum TLS version for HTTPS traffic.- Returns:
- the minimum TLS version for HTTPS traffic.
-
isHttpsTrafficOnly
boolean isHttpsTrafficOnly()Checks whether storage account only allow HTTPS traffic.- Returns:
- true if only allow HTTPS traffic, false otherwise
-
isBlobPublicAccessAllowed
boolean isBlobPublicAccessAllowed()Checks whether blob public access is allowed.- Returns:
- true if blob public access is allowed, false otherwise
-
getKeys
List<StorageAccountKey> getKeys()Fetch the up-to-date access keys from Azure for this storage account.- Returns:
- the access keys for this storage account
-
getKeysAsync
Mono<List<StorageAccountKey>> getKeysAsync()Fetch the up-to-date access keys from Azure for this storage account asynchronously.- Returns:
- a representation of the deferred computation of this call, returning the access keys
-
regenerateKey
Regenerates the access keys for this storage account.- Parameters:
keyName- if the key name- Returns:
- the generated access keys for this storage account
-
regenerateKeyAsync
Regenerates the access keys for this storage account asynchronously.- Parameters:
keyName- if the key name- Returns:
- a representation of the deferred computation of this call, returning the regenerated access key
-
isAllowCrossTenantReplication
boolean isAllowCrossTenantReplication()Checks whether cross tenant replication is allowed.- Returns:
- true if cross tenant replication is enabled, false otherwise
-
isDefaultToOAuthAuthentication
boolean isDefaultToOAuthAuthentication()Checks whether default to oauth authentication is allowed.- Returns:
- true if default to oauth authentication is enabled, false otherwise
-
identityTypeForCustomerEncryptionKey
IdentityType identityTypeForCustomerEncryptionKey()Type of the Managed Service Identity used to access KeyVault for encryption.This property only makes sense when the storage account is encrypted using Customer-managed keys, meaning
encryptionKeySource()isStorageAccountEncryptionKeySource.MICROSOFT_KEYVAULT.- Returns:
- type of the Managed Service Identity used to access KeyVault for encryption,
nullifencryptionKeySource()isStorageAccountEncryptionKeySource.MICROSOFT_STORAGE
-
userAssignedIdentityIdForCustomerEncryptionKey
String userAssignedIdentityIdForCustomerEncryptionKey()User-assigned Managed Service Identity ID to access the KeyVault for encryption.This property only makes sense when the storage account is encrypted using Customer-managed keys, meaning
encryptionKeySource()isStorageAccountEncryptionKeySource.MICROSOFT_KEYVAULTandidentityTypeForCustomerEncryptionKey()isIdentityType.USER_ASSIGNED.- Returns:
- user-assigned identity ID used to access KeyVault for encryption,
null if
encryptionKeySource()isStorageAccountEncryptionKeySource.MICROSOFT_STORAGEoridentityTypeForCustomerEncryptionKey()is notIdentityType.USER_ASSIGNED
-
publicNetworkAccess
PublicNetworkAccess publicNetworkAccess()Whether the storage account can be accessed from public network.- Returns:
- whether the storage account can be accessed from public network.
-