StorageAccountsOperations.ListKeys(String, String, CancellationToken) Method

Definition

Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account.

public virtual Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccountListKeysResult> ListKeys (string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListKeys : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccountListKeysResult>
override this.ListKeys : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Storage.Models.StorageAccountListKeysResult>
Public Overridable Function ListKeys (resourceGroupName As String, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of StorageAccountListKeysResult)

Parameters

resourceGroupName
System.String

The name of the resource group within the user's subscription. The name is case insensitive.

accountName
System.String

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<StorageAccountListKeysResult>

Applies to