StorageAccountsOperations.ListByResourceGroup(String, CancellationToken) Method

Definition

Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.

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

Parameters

resourceGroupName
System.String

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

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<StorageAccount>

Exceptions

System.ArgumentNullException

resourceGroupName is null.

Applies to