Share via


StorageAccountOperationsExtensions.GetKeysAsync Method (IStorageAccountOperations, String)

 

Asynchronously retrieves the primary and secondary access keys for a storage account.

Namespace:   Microsoft.WindowsAzure.Management.Storage
Assembly:  Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)

Syntax

public static Task<StorageAccountGetKeysResponse> GetKeysAsync(
    this IStorageAccountOperations operations,
    string accountName
)
public:
[ExtensionAttribute]
static Task<StorageAccountGetKeysResponse^>^ GetKeysAsync(
    IStorageAccountOperations^ operations,
    String^ accountName
)
static member GetKeysAsync : 
        operations:IStorageAccountOperations *
        accountName:string -> Task<StorageAccountGetKeysResponse>
<ExtensionAttribute>
Public Shared Function GetKeysAsync (
    operations As IStorageAccountOperations,
    accountName As String
) As Task(Of StorageAccountGetKeysResponse)

Parameters

  • serviceName
    The name of the storage account for which keys should be retrieved.

Return Value

Type: System.Threading.Tasks.Task<StorageAccountGetKeysResponse>

The StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.

Remarks

For more information about retrieving access keys, see the following resources:

See Also

StorageAccountOperationsExtensions Class
Microsoft.WindowsAzure.Management.Storage Namespace

Return to top