Dela via


MockableStorageSubscriptionResource.GetStorageAccountsAsync Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts
  • Operation Id: StorageAccounts_List
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource> GetStorageAccountsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetStorageAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource>
override this.GetStorageAccountsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource>
Public Overridable Function GetStorageAccountsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StorageAccountResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of StorageAccountResource that may take multiple service requests to iterate over.

Applies to