MockableHciSubscriptionResource.GetHciClustersAsync(CancellationToken) Method

Definition

List all HCI clusters in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters
  • Operation Id: Clusters_ListBySubscription
  • Default Api Version: 2024-04-01
  • Resource: HciClusterResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Hci.HciClusterResource> GetHciClustersAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciClustersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.HciClusterResource>
override this.GetHciClustersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.HciClusterResource>
Public Overridable Function GetHciClustersAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HciClusterResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to