共用方式為


ElasticSanExtensions.GetElasticSansAsync Method

Definition

Gets a list of ElasticSans in a subscription

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans
  • Operation Id: ElasticSans_ListBySubscription
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanResource
public static Azure.AsyncPageable<Azure.ResourceManager.ElasticSan.ElasticSanResource> GetElasticSansAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetElasticSansAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ElasticSan.ElasticSanResource>
<Extension()>
Public Function GetElasticSansAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ElasticSanResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to