Dela via


StorageSubscriptionMockingExtension.GetStorageAccounts 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
public virtual Azure.Pageable<Azure.ResourceManager.Storage.StorageAccountResource> GetStorageAccounts (System.Threading.CancellationToken cancellationToken = default);
abstract member GetStorageAccounts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Storage.StorageAccountResource>
override this.GetStorageAccounts : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Storage.StorageAccountResource>
Public Overridable Function GetStorageAccounts (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of StorageAccountResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to