共用方式為


StorageExtensions.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 static Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource> GetStorageAccountsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageAccountsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource>
<Extension()>
Public Function GetStorageAccountsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StorageAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to