Share via


StorageAccountOperationsExtensions.GetKeys Method

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)

Usage

'Usage
Dim operations As IStorageAccountOperations
Dim accountName As String
Dim returnValue As StorageAccountGetKeysResponse

returnValue = StorageAccountOperationsExtensions.GetKeys(operations, accountName)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetKeys ( _
    operations As IStorageAccountOperations, _
    accountName As String _
) As StorageAccountGetKeysResponse
[ExtensionAttribute] 
public static StorageAccountGetKeysResponse GetKeys (
    IStorageAccountOperations operations,
    string accountName
)
[ExtensionAttribute] 
public:
static StorageAccountGetKeysResponse^ GetKeys (
    IStorageAccountOperations^ operations, 
    String^ accountName
)
/** @attribute ExtensionAttribute() */ 
public static StorageAccountGetKeysResponse GetKeys (
    IStorageAccountOperations operations, 
    String accountName
)
ExtensionAttribute 
public static function GetKeys (
    operations : IStorageAccountOperations, 
    accountName : String
) : StorageAccountGetKeysResponse

Parameters

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

Return Value

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:

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

StorageAccountOperationsExtensions Class
StorageAccountOperationsExtensions Members
Microsoft.WindowsAzure.Management.Storage Namespace