Interface StorageAccounts
- All Superinterfaces:
HasInner<com.microsoft.azure.management.storage.implementation.StorageAccountsInner>
,HasManager<com.microsoft.azure.management.storage.implementation.StorageManager>
,SupportsBatchCreation<StorageAccount>
,SupportsBatchDeletion
,SupportsCreating<StorageAccount.DefinitionStages.Blank>
,SupportsDeletingById
,SupportsDeletingByResourceGroup
,SupportsGettingById<StorageAccount>
,SupportsGettingByResourceGroup<StorageAccount>
,SupportsListing<StorageAccount>
,SupportsListingByResourceGroup<StorageAccount>
public interface StorageAccounts
extends SupportsListing<StorageAccount>, SupportsCreating<StorageAccount.DefinitionStages.Blank>, SupportsDeletingById, SupportsListingByResourceGroup<StorageAccount>, SupportsGettingByResourceGroup<StorageAccount>, SupportsGettingById<StorageAccount>, SupportsDeletingByResourceGroup, SupportsBatchCreation<StorageAccount>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.storage.implementation.StorageManager>, HasInner<com.microsoft.azure.management.storage.implementation.StorageAccountsInner>
Entry point for storage accounts management API.
-
Method Summary
Modifier and TypeMethodDescriptioncheckNameAvailability
(String name) Checks that account name is valid and is not in use.rx.Observable<CheckNameAvailabilityResult>
Checks that account name is valid and is not in use asynchronously.com.microsoft.rest.ServiceFuture<CheckNameAvailabilityResult>
checkNameAvailabilityAsync
(String name, com.microsoft.rest.ServiceCallback<CheckNameAvailabilityResult> callback) Checks that account name is valid and is not in use asynchronously.createSasToken
(String resourceGroupName, String accountName, ServiceSasParameters parameters) Creates an Sas token for the storage account.rx.Observable<String>
createSasTokenAsync
(String resourceGroupName, String accountName, ServiceSasParameters parameters) Creates an Sas token for the storage account asynchronously.void
Sets a failover request that can be triggered for a storage account in case of availability issues.rx.Completable
failoverAsync
(String resourceGroupName, String accountName) Sets a failover request asynchronously that can be triggered for a storage account in case of availability issues.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.collection.SupportsBatchCreation
create, create, createAsync, createAsync, createAsync, createAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating
define
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById
deleteById, deleteByIdAsync, deleteByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById
getById, getByIdAsync, getByIdAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing
list, listAsync
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup
listByResourceGroup, listByResourceGroupAsync
-
Method Details
-
checkNameAvailability
Checks that account name is valid and is not in use.- Parameters:
name
- the account name to check- Returns:
- whether the name is available and other info if not
-
checkNameAvailabilityAsync
Checks that account name is valid and is not in use asynchronously.- Parameters:
name
- the account name to check- Returns:
- a representation of the deferred computation of this call, returning whether the name is available and other info if not
-
checkNameAvailabilityAsync
com.microsoft.rest.ServiceFuture<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name, com.microsoft.rest.ServiceCallback<CheckNameAvailabilityResult> callback) Checks that account name is valid and is not in use asynchronously.- Parameters:
name
- the account name to checkcallback
- the callback to call on success or failure- Returns:
- a handle to cancel the request
-
createSasToken
String createSasToken(String resourceGroupName, String accountName, ServiceSasParameters parameters) Creates an Sas token for the storage account.- Parameters:
resourceGroupName
- the name of the account's resource groupaccountName
- the account name to checkparameters
- the parameters to list service SAS credentials of a specific resource- Returns:
- the created Sas token
-
createSasTokenAsync
rx.Observable<String> createSasTokenAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters) Creates an Sas token for the storage account asynchronously.- Parameters:
resourceGroupName
- the name of the account's resource groupaccountName
- the account name to checkparameters
- the parameters to list service SAS credentials of a specific resource- Returns:
- an observable of the created Sas token
-
failover
Sets a failover request that can be triggered for a storage account in case of availability issues.- Parameters:
resourceGroupName
- the resource group name of the storage accountaccountName
- the account name to check
-
failoverAsync
Sets a failover request asynchronously that can be triggered for a storage account in case of availability issues.- Parameters:
resourceGroupName
- the resource group name of the storage accountaccountName
- the account name to check- Returns:
- a completable
-