Udostępnij za pośrednictwem


StorageAccountOperationsExtensions.GetKeysAsync Method

Definition

The Get Storage Keys operation returns the primary and secondary access keys for the specified storage account. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460785.aspx for more information)

public static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountGetKeysResponse> GetKeysAsync (this Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations operations, string accountName);
static member GetKeysAsync : Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations * string -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountGetKeysResponse>
<Extension()>
Public Function GetKeysAsync (operations As IStorageAccountOperations, accountName As String) As Task(Of StorageAccountGetKeysResponse)

Parameters

operations
IStorageAccountOperations

Reference to the Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations.

accountName
String

Required. The name of the desired storage account.

Returns

The primary and secondary access keys for a storage account.

Applies to