Udostępnij za pośrednictwem


StorageAccountOperationsExtensions.GetKeys 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 Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountGetKeysResponse GetKeys (this Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations operations, string accountName);
static member GetKeys : Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations * string -> Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountGetKeysResponse
<Extension()>
Public Function GetKeys (operations As IStorageAccountOperations, accountName As String) As 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