Interface StorageAccount
- All Superinterfaces:
GroupableResource<com.microsoft.azure.management.storage.implementation.StorageManager,
,com.microsoft.azure.management.storage.implementation.StorageAccountInner> HasId
,HasInner<com.microsoft.azure.management.storage.implementation.StorageAccountInner>
,HasManager<com.microsoft.azure.management.storage.implementation.StorageManager>
,HasName
,HasResourceGroup
,Indexable
,Refreshable<StorageAccount>
,Resource
,Updatable<StorageAccount.Update>
public interface StorageAccount
extends GroupableResource<com.microsoft.azure.management.storage.implementation.StorageManager,com.microsoft.azure.management.storage.implementation.StorageAccountInner>, Refreshable<StorageAccount>, Updatable<StorageAccount.Update>
An immutable client-side representation of an Azure storage account.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Container interface for all the definitions that need to be implemented.static interface
Grouping of all the storage account definition stages.static interface
The template for a storage account update operation, containing all the settings that can be modified.static interface
Grouping of all the storage account update stages.Nested classes/interfaces inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
-
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.azure.management.storage.implementation.AccountStatuses
boolean
Checks storage account can be accessed from applications running on azure.boolean
Checks storage log entries can be read from any network.boolean
Checks storage metrics can be read from any network.org.joda.time.DateTime
Deprecated.getKeys()
Fetch the up-to-date access keys from Azure for this storage account.rx.Observable<List<StorageAccountKey>>
Fetch the up-to-date access keys from Azure for this storage account asynchronously.com.microsoft.rest.ServiceFuture<List<StorageAccountKey>>
getKeysAsync
(com.microsoft.rest.ServiceCallback<List<StorageAccountKey>> callback) Fetch the up-to-date access keys from Azure for this storage account asynchronously.boolean
boolean
Checks whether Aad Integration is enabled for files on this storage account.boolean
Checks whether blob public access is allowed.boolean
Checks whether Hns is enabled on this storage account.boolean
Checks whether storage account only allow HTTPS traffic.boolean
Checks whether large file shares enabled on this storage account.kind()
org.joda.time.DateTime
regenerateKey
(String keyName) Regenerates the access keys for this storage account.rx.Observable<List<StorageAccountKey>>
regenerateKeyAsync
(String keyName) Regenerates the access keys for this storage account asynchronously.com.microsoft.rest.ServiceFuture<List<StorageAccountKey>>
regenerateKeyAsync
(String keyName, com.microsoft.rest.ServiceCallback<List<StorageAccountKey>> callback) Regenerates the access keys for this storage account asynchronously.sku()
Deprecated.useskuType()
instead.skuType()
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Method Details
-
accountStatuses
com.microsoft.azure.management.storage.implementation.AccountStatuses accountStatuses()- Returns:
- the status indicating whether the primary and secondary location of the storage account is available or unavailable. Possible values include: 'Available', 'Unavailable'
-
sku
Deprecated.useskuType()
instead.- Returns:
- the sku of this storage account.
-
skuType
- Returns:
- the sku of this storage account.
-
kind
Kind kind()- Returns:
- the kind of the storage account. Possible values are 'Storage', 'BlobStorage'.
-
creationTime
org.joda.time.DateTime creationTime()- Returns:
- the creation date and time of the storage account in UTC
-
customDomain
CustomDomain customDomain()- Returns:
- the user assigned custom domain assigned to this storage account
-
lastGeoFailoverTime
org.joda.time.DateTime lastGeoFailoverTime()- 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()- Returns:
- the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'
-
endPoints
PublicEndpoints endPoints()- 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
-
encryption
Deprecated.useencryptionKeySource()
,encryptionStatuses()
instead.- Returns:
- the encryption settings on the account.
-
encryptionKeySource
StorageAccountEncryptionKeySource encryptionKeySource()- Returns:
- the source of the key used for encryption.
-
encryptionStatuses
Map<StorageService,StorageAccountEncryptionStatus> encryptionStatuses()- Returns:
- the encryption statuses indexed by storage service type.
-
accessTier
AccessTier accessTier()- 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
- Returns:
- the Managed Service Identity specific Active Directory tenant ID assigned to the storage account.
-
systemAssignedManagedServiceIdentityPrincipalId
- Returns:
- the Managed Service Identity specific Active Directory service principal ID assigned to the storage account.
-
isAccessAllowedFromAllNetworks
@Beta(V1_5_0) boolean isAccessAllowedFromAllNetworks()- 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
- Returns:
- the list of resource id of virtual network subnet having access to the storage account.
-
ipAddressesWithAccess
- Returns:
- the list of ip addresses having access to the storage account.
-
ipAddressRangesWithAccess
- Returns:
- the list of ip address ranges having access to the storage account.
-
canReadLogEntriesFromAnyNetwork
@Beta(V1_5_0) boolean canReadLogEntriesFromAnyNetwork()Checks storage log entries can be read from any network.- Returns:
- true if storage log entries can be read from any network, false otherwise
-
canReadMetricsFromAnyNetwork
@Beta(V1_5_0) 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
@Beta(V1_5_0) 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
@Beta boolean isAzureFilesAadIntegrationEnabled()Checks whether Aad Integration is enabled for files on this storage account.- Returns:
- true if Aad integration is enabled, false otherwise
-
isHnsEnabled
@Beta boolean isHnsEnabled()Checks whether Hns is enabled on this storage account.- Returns:
- true if Hns is enabled, false otherwise
-
minimumTlsVersion
MinimumTlsVersion minimumTlsVersion()- 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
rx.Observable<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
-
getKeysAsync
com.microsoft.rest.ServiceFuture<List<StorageAccountKey>> getKeysAsync(com.microsoft.rest.ServiceCallback<List<StorageAccountKey>> callback) Fetch the up-to-date access keys from Azure for this storage account asynchronously.- Parameters:
callback
- the callback to call on success or failure, with access keys as parameter.- Returns:
- a handle to cancel the request
-
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
-
regenerateKeyAsync
com.microsoft.rest.ServiceFuture<List<StorageAccountKey>> regenerateKeyAsync(String keyName, com.microsoft.rest.ServiceCallback<List<StorageAccountKey>> callback) Regenerates the access keys for this storage account asynchronously.- Parameters:
keyName
- if the key namecallback
- the callback to call on success or failure, with access keys as parameter.- Returns:
- a handle to cancel the request
-
encryptionKeySource()
,encryptionStatuses()
instead.