Sdílet prostřednictvím


HciExtensions.GetHciClusters Method

Definition

Overloads

GetHciClusters(SubscriptionResource, CancellationToken)

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
GetHciClusters(ResourceGroupResource)

Gets a collection of HciClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetHciClusters() instead.

GetHciClusters(SubscriptionResource, CancellationToken)

Source:
HciExtensions.cs
Source:
HciExtensions.cs

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetHciClusters(ResourceGroupResource)

Source:
HciExtensions.cs
Source:
HciExtensions.cs

Gets a collection of HciClusterResources in the ResourceGroupResource. MockingTo mock this method, please mock GetHciClusters() instead.

public static Azure.ResourceManager.Hci.HciClusterCollection GetHciClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.HciClusterCollection
<Extension()>
Public Function GetHciClusters (resourceGroupResource As ResourceGroupResource) As HciClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of HciClusterResources and their operations over a HciClusterResource.

Exceptions

resourceGroupResource is null.

Applies to