public interface StorageAccountOperations
| Modifier and Type | Method and Description |
|---|---|
StorageAccountCreateResponse |
beginCreate(String resourceGroupName,
String accountName,
StorageAccountCreateParameters parameters)
Asynchronously creates a new storage account with the specified
parameters.
|
Future<StorageAccountCreateResponse> |
beginCreateAsync(String resourceGroupName,
String accountName,
StorageAccountCreateParameters parameters)
Asynchronously creates a new storage account with the specified
parameters.
|
CheckNameAvailabilityResponse |
checkNameAvailability(String accountName)
Checks that account name is valid and is not in use.
|
Future<CheckNameAvailabilityResponse> |
checkNameAvailabilityAsync(String accountName)
Checks that account name is valid and is not in use.
|
StorageAccountCreateResponse |
create(String resourceGroupName,
String accountName,
StorageAccountCreateParameters parameters)
Asynchronously creates a new storage account with the specified
parameters.
|
Future<StorageAccountCreateResponse> |
createAsync(String resourceGroupName,
String accountName,
StorageAccountCreateParameters parameters)
Asynchronously creates a new storage account with the specified
parameters.
|
OperationResponse |
delete(String resourceGroupName,
String accountName)
Deletes a storage account in Microsoft Azure.
|
Future<OperationResponse> |
deleteAsync(String resourceGroupName,
String accountName)
Deletes a storage account in Microsoft Azure.
|
StorageAccountGetPropertiesResponse |
getProperties(String resourceGroupName,
String accountName)
Returns the properties for the specified storage account including but
not limited to name, account type, location, and account status.
|
Future<StorageAccountGetPropertiesResponse> |
getPropertiesAsync(String resourceGroupName,
String accountName)
Returns the properties for the specified storage account including but
not limited to name, account type, location, and account status.
|
StorageAccountListResponse |
list()
Lists all the storage accounts available under the subscription.
|
Future<StorageAccountListResponse> |
listAsync()
Lists all the storage accounts available under the subscription.
|
StorageAccountListResponse |
listByResourceGroup(String resourceGroupName)
Lists all the storage accounts available under the given resource group.
|
Future<StorageAccountListResponse> |
listByResourceGroupAsync(String resourceGroupName)
Lists all the storage accounts available under the given resource group.
|
StorageAccountListKeysResponse |
listKeys(String resourceGroupName,
String accountName)
Lists the access keys for the specified storage account.
|
Future<StorageAccountListKeysResponse> |
listKeysAsync(String resourceGroupName,
String accountName)
Lists the access keys for the specified storage account.
|
StorageAccountRegenerateKeyResponse |
regenerateKey(String resourceGroupName,
String accountName,
String regenerateKey)
Regenerates the access keys for the specified storage account.
|
Future<StorageAccountRegenerateKeyResponse> |
regenerateKeyAsync(String resourceGroupName,
String accountName,
String regenerateKey)
Regenerates the access keys for the specified storage account.
|
StorageAccountUpdateResponse |
update(String resourceGroupName,
String accountName,
StorageAccountUpdateParameters parameters)
Updates the account type or tags for a storage account.
|
Future<StorageAccountUpdateResponse> |
updateAsync(String resourceGroupName,
String accountName,
StorageAccountUpdateParameters parameters)
Updates the account type or tags for a storage account.
|
StorageAccountCreateResponse beginCreate(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to provide for the created
account.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<StorageAccountCreateResponse> beginCreateAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to provide for the created
account.CheckNameAvailabilityResponse checkNameAvailability(String accountName) throws IOException, ServiceException
accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<CheckNameAvailabilityResponse> checkNameAvailabilityAsync(String accountName)
accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.StorageAccountCreateResponse create(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters) throws InterruptedException, ExecutionException, IOException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to provide for the created
account.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.Future<StorageAccountCreateResponse> createAsync(String resourceGroupName, String accountName, StorageAccountCreateParameters parameters)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to provide for the created
account.OperationResponse delete(String resourceGroupName, String accountName) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<OperationResponse> deleteAsync(String resourceGroupName, String accountName)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.StorageAccountGetPropertiesResponse getProperties(String resourceGroupName, String accountName) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<StorageAccountGetPropertiesResponse> getPropertiesAsync(String resourceGroupName, String accountName)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.StorageAccountListResponse list() throws IOException, ServiceException, URISyntaxException
IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<StorageAccountListResponse> listAsync()
StorageAccountListResponse listByResourceGroup(String resourceGroupName) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group within
the user's subscription.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<StorageAccountListResponse> listByResourceGroupAsync(String resourceGroupName)
resourceGroupName - Required. The name of the resource group within
the user's subscription.StorageAccountListKeysResponse listKeys(String resourceGroupName, String accountName) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group.accountName - Required. The name of the storage account.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<StorageAccountListKeysResponse> listKeysAsync(String resourceGroupName, String accountName)
resourceGroupName - Required. The name of the resource group.accountName - Required. The name of the storage account.StorageAccountRegenerateKeyResponse regenerateKey(String resourceGroupName, String accountName, String regenerateKey) throws IOException, ServiceException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.regenerateKey - Required. Specifies name of the key which should be
regenerated. key1 or key2 for the default keysIOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.Future<StorageAccountRegenerateKeyResponse> regenerateKeyAsync(String resourceGroupName, String accountName, String regenerateKey)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.regenerateKey - Required. Specifies name of the key which should be
regenerated. key1 or key2 for the default keysStorageAccountUpdateResponse update(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters) throws IOException, ServiceException, URISyntaxException
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to update on the account. Note
that only one property can be changed at a time using this API.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<StorageAccountUpdateResponse> updateAsync(String resourceGroupName, String accountName, StorageAccountUpdateParameters parameters)
resourceGroupName - Required. The name of the resource group within
the user's subscription.accountName - Required. The name of the storage account within the
specified resource group. Storage account names must be between 3 and 24
characters in length and use numbers and lower-case letters only.parameters - Required. The parameters to update on the account. Note
that only one property can be changed at a time using this API./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/