StorageAccountOperationsExtensions.GetKeys Method (IStorageAccountOperations, String)
Retrieves the primary and secondary access keys for a storage account.
Assembly: Microsoft.WindowsAzure.Management.Storage (in Microsoft.WindowsAzure.Management.Storage.dll)
public static StorageAccountGetKeysResponse GetKeys( this IStorageAccountOperations operations, string accountName )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Storage.IStorageAccountOperations
The IStorageAccountOperations object that specifies the storage account operations.
- serviceName
The name of the storage account for which keys should be retrieved.
Return Value
Type: Microsoft.WindowsAzure.Management.Storage.Models.StorageAccountGetKeysResponseThe StorageAccountGetKeysResponse object that contains the primary and secondary access keys for the storage account.
For more information about retrieving access keys, see the following resources:
Show: