Condividi tramite


ServiceFabricExtensions.GetServiceFabricClusters Method

Definition

Overloads

GetServiceFabricClusters(ResourceGroupResource)

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

GetServiceFabricClusters(SubscriptionResource, CancellationToken)

Gets all Service Fabric cluster resources created or in the process of being created in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters
  • Operation Id: Clusters_List
  • Default Api Version: 2023-11-01-preview
  • Resource: ServiceFabricClusterResource

GetServiceFabricClusters(ResourceGroupResource)

Source:
ServiceFabricExtensions.cs
Source:
ServiceFabricExtensions.cs

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

public static Azure.ResourceManager.ServiceFabric.ServiceFabricClusterCollection GetServiceFabricClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetServiceFabricClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ServiceFabric.ServiceFabricClusterCollection
<Extension()>
Public Function GetServiceFabricClusters (resourceGroupResource As ResourceGroupResource) As ServiceFabricClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ServiceFabricClusterResources and their operations over a ServiceFabricClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetServiceFabricClusters(SubscriptionResource, CancellationToken)

Source:
ServiceFabricExtensions.cs
Source:
ServiceFabricExtensions.cs

Gets all Service Fabric cluster resources created or in the process of being created in the subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ServiceFabric/clusters
  • Operation Id: Clusters_List
  • Default Api Version: 2023-11-01-preview
  • Resource: ServiceFabricClusterResource
public static Azure.Pageable<Azure.ResourceManager.ServiceFabric.ServiceFabricClusterResource> GetServiceFabricClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetServiceFabricClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ServiceFabric.ServiceFabricClusterResource>
<Extension()>
Public Function GetServiceFabricClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ServiceFabricClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to